/* public/assets/css/style.css */

/* ============================================
   ESTILOS GENERALES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--color-texto, #333);
    background-color: #f8f9fa;
    overflow-x: hidden;
}

a {
    color: var(--color-primario);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--color-secundario);
}

/* ============================================
   HEADER
   ============================================ */
.header {
    position: relative;
    z-index: 1000;
}

.top-bar {
    font-size: 13px;
    border-bottom: 2px solid rgba(255,255,255,0.1);
}

.top-bar a {
    transition: all 0.3s ease;
}

.top-bar a:hover {
    color: var(--color-secundario) !important;
}

.navbar-brand .brand-text {
    font-size: 1.1rem;
    line-height: 1.2;
    margin-left: 10px;
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 10px 18px !important;
    color: #333 !important;
    position: relative;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background-color: var(--color-primario);
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 70%;
}

.navbar-nav .nav-link:hover {
    color: var(--color-primario) !important;
}

.navbar-nav .nav-link.active {
    color: var(--color-primario) !important;
    font-weight: 600;
}

/* ============================================
   SLIDER PRINCIPAL
   ============================================ */
.slider-principal {
    position: relative;
    overflow: hidden;
}

.slider-principal .slide-item {
    position: relative;
    height: 600px;
    background-size: cover;
    background-position: center;
}

.slider-principal .slide-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.7));
    z-index: 1;
}

.slider-principal .slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 2;
    width: 80%;
    max-width: 800px;
}

.slider-principal .slide-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.slider-principal .slide-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.slider-principal .slide-content .btn {
    padding: 12px 35px;
    font-weight: 600;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.slider-principal .slick-dots {
    bottom: 30px;
}

.slider-principal .slick-dots li button:before {
    color: white;
    font-size: 12px;
    opacity: 0.5;
}

.slider-principal .slick-dots li.slick-active button:before {
    color: var(--color-secundario);
    opacity: 1;
}

.slider-principal .slick-arrow {
    width: 50px;
    height: 50px;
    z-index: 10;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.slider-principal .slick-arrow:hover {
    background: rgba(255,255,255,0.4);
}

.slider-principal .slick-arrow:before {
    font-size: 25px;
    color: white;
}

/* ============================================
   SECCIONES
   ============================================ */
.section-padding {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--color-primario);
    margin-bottom: 15px;
}

.section-title .line {
    width: 80px;
    height: 4px;
    background: var(--color-secundario);
    margin: 0 auto;
    border-radius: 2px;
}

.section-title .subtitle {
    color: #666;
    font-size: 1.1rem;
    margin-top: 15px;
}

/* ============================================
   TARJETAS
   ============================================ */
.card-hover {
    transition: all 0.3s ease;
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.card-hover:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.card-hover .card-img-top {
    height: 250px;
    object-fit: cover;
    transition: all 0.3s ease;
}

.card-hover:hover .card-img-top {
    transform: scale(1.05);
}

.card-hover .card-body {
    padding: 25px;
}

.card-hover .card-title {
    font-weight: 600;
    color: var(--color-primario);
}

.card-hover .card-text {
    color: #666;
    line-height: 1.6;
}

.card-hover .btn-ver-mas {
    padding: 8px 25px;
    border-radius: 50px;
    background-color: var(--color-primario);
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
}

.card-hover .btn-ver-mas:hover {
    background-color: var(--color-secundario);
    color: var(--color-primario);
    transform: translateX(5px);
}

/* ============================================
   ESTADÍSTICAS
   ============================================ */
.stats-section {
    background: linear-gradient(135deg, var(--color-primario), #5a0000);
    padding: 60px 0;
    color: white;
}

.stat-item {
    text-align: center;
    padding: 20px;
}

.stat-item .icon {
    font-size: 3rem;
    color: var(--color-secundario);
    margin-bottom: 15px;
}

.stat-item .number {
    font-size: 2.8rem;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
    display: block;
}

.stat-item .label {
    font-size: 1rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================
   GALERÍA
   ============================================ */
.galeria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.galeria-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
}

.galeria-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: all 0.5s ease;
}

.galeria-item .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 30px 20px 20px;
    transform: translateY(100%);
    transition: all 0.4s ease;
}

.galeria-item:hover .overlay {
    transform: translateY(0);
}

.galeria-item:hover img {
    transform: scale(1.1);
}

.galeria-item .overlay h5 {
    color: white;
    font-weight: 600;
    margin-bottom: 5px;
}

.galeria-item .overlay p {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
    margin: 0;
}

/* ============================================
   BLOG
   ============================================ */
.blog-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.blog-card .blog-image {
    height: 220px;
    overflow: hidden;
}

.blog-card .blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-card .blog-content {
    padding: 25px;
}

.blog-card .blog-content .meta {
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 10px;
}

.blog-card .blog-content .meta i {
    margin-right: 5px;
}

.blog-card .blog-content h5 {
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--color-primario);
}

.blog-card .blog-content p {
    color: #666;
    line-height: 1.6;
}

/* ============================================
   CONTACTO
   ============================================ */
.contact-info {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

.contact-info .info-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.contact-info .info-item:last-child {
    border-bottom: none;
}

.contact-info .info-item .icon {
    width: 50px;
    height: 50px;
    background: var(--color-primario);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.contact-info .info-item .text h6 {
    font-weight: 600;
    margin-bottom: 2px;
}

.contact-info .info-item .text p {
    color: #666;
    margin: 0;
}

.form-contact {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.form-contact .form-control {
    border-radius: 10px;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.form-contact .form-control:focus {
    border-color: var(--color-primario);
    box-shadow: 0 0 0 0.2rem rgba(var(--color-primario-rgb), 0.25);
}

.form-contact .btn-submit {
    padding: 12px 40px;
    border-radius: 50px;
    background: var(--color-primario);
    color: white;
    font-weight: 600;
    border: none;
    transition: all 0.3s ease;
}

.form-contact .btn-submit:hover {
    background: var(--color-secundario);
    color: var(--color-primario);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    margin-top: 60px;
}

.footer h5 {
    font-weight: 600;
    position: relative;
    padding-bottom: 15px;
}

.footer h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--color-secundario);
}

.footer ul li a {
    transition: all 0.3s ease;
}

.footer ul li a:hover {
    color: var(--color-secundario) !important;
    padding-left: 10px;
}

.footer .social-links a {
    display: inline-block;
    transition: all 0.3s ease;
}

.footer .social-links a:hover {
    transform: translateY(-3px);
    color: var(--color-secundario) !important;
}

/* ============================================
   BOTONES
   ============================================ */
.btn-primary-custom {
    background: var(--color-primario);
    color: white;
    padding: 10px 30px;
    border-radius: 50px;
    font-weight: 500;
    border: 2px solid var(--color-primario);
    transition: all 0.3s ease;
}

.btn-primary-custom:hover {
    background: transparent;
    color: var(--color-primario);
}

.btn-secondary-custom {
    background: var(--color-secundario);
    color: var(--color-primario);
    padding: 10px 30px;
    border-radius: 50px;
    font-weight: 500;
    border: 2px solid var(--color-secundario);
    transition: all 0.3s ease;
}

.btn-secondary-custom:hover {
    background: transparent;
    color: var(--color-secundario);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 992px) {
    .slider-principal .slide-item {
        height: 400px;
    }
    
    .slider-principal .slide-content h1 {
        font-size: 2.5rem;
    }
    
    .section-title h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .top-bar {
        display: none;
    }
    
    .slider-principal .slide-item {
        height: 300px;
    }
    
    .slider-principal .slide-content h1 {
        font-size: 1.8rem;
    }
    
    .slider-principal .slide-content p {
        font-size: 1rem;
    }
    
    .section-padding {
        padding: 50px 0;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .stat-item .number {
        font-size: 2rem;
    }
    
    .form-contact {
        padding: 20px;
    }
}

@media (max-width: 576px) {
    .slider-principal .slide-item {
        height: 250px;
    }
    
    .slider-principal .slide-content h1 {
        font-size: 1.5rem;
    }
    
    .galeria-grid {
        grid-template-columns: 1fr;
    }
}
/* ============================================
   SECCIÓN DE BIENVENIDA - OPTIMIZADA
   ============================================ */
.welcome-section {
    padding: 40px 0;
    background: transparent;
}

.welcome-section h2 {
    font-size: 2.2rem;
    color: var(--color-primario);
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    margin-bottom: 10px;
}

.welcome-section .subtitle {
    color: #666;
    font-size: 0.95rem;
    font-weight: 500;
}

.welcome-section .description {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 15px;
}

.welcome-logo {
    max-height: 180px;
    width: auto;
    opacity: 0.85;
    transition: opacity 0.3s ease;
}

.welcome-logo:hover {
    opacity: 1;
}

@media (max-width: 768px) {
    .welcome-section h2 {
        font-size: 1.8rem;
    }
    .welcome-logo {
        max-height: 120px;
    }
}