/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: #333;
}

/* CONTENEDOR */
.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* HEADER */
.header {
    background: rgba(255, 255, 255, 0.85); /* Efecto Glass */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 10px 0; /* Más compacto para compensar el logo */
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: 0.4s;
}

.header.scrolled {
    padding: 10px 0;
    background: rgba(255, 255, 255, 0.95);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 70px; /* Tamaño optimizado */
    width: auto;
    border-radius: 50%;
    background: white;
    padding: 3px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: 0.3s;
    object-fit: contain;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.logo-text {
    font-weight: 700;
    color: #222;
    font-size: 1.3rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: block;
}

.logo:hover {
    transform: scale(1.08);
}

.menu {
    list-style: none;
    display: flex;
    gap: 25px;
}

.menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: 0.3s;
}

.menu a:hover {
    color: #d32f2f;
}

/* HAMBURGER */
.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    color: #333;
    cursor: pointer;
    transition: 0.3s;
    position: relative;
    z-index: 2005;
    padding: 5px;
    display: none;
    align-items: center;
    justify-content: center;
}

.hamburger:hover {
    color: #d32f2f;
}


/* ESPACIADO PARA PÁGINAS SECUNDARIAS */
.pt-header {
    padding-top: 140px !important; /* Espacio extra para que no pegue con el menú */
}
.section {
    padding: 70px 0; /* Espaciado más compacto y dinámico */
    position: relative;
    overflow: hidden;
}

.section h2 {
    text-align: center;
    margin-bottom: 40px; /* Reducción de margen para títulos */
}

.bg-light {
    background: #f9f9f9;
}

/* HERO */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.4)), url('../images/hero.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    position: relative;
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 25px;
    letter-spacing: -1.5px;
    line-height: 1.1;
    text-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.hero p {
    font-size: 1.5rem;
    max-width: 700px;
    margin: 0 auto 40px;
    opacity: 0.95;
    line-height: 1.6;
}

.btn {
    display: inline-block;
    background: #d32f2f;
    color: white;
    padding: 14px 35px;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: 0.3s;
    border: none;
}

.btn:hover {
    background: #b71c1c;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(211, 47, 47, 0.3);
}

.btn-outline {
    display: inline-block;
    padding: 14px 35px;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: 0.3s;
    border: 2px solid white;
    color: white;
    background: transparent;
}

.btn-outline:hover {
    background: white;
    color: #222;
    transform: translateY(-2px);
}

.btn-outline {
    display: inline-block;
    padding: 14px 35px;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: 0.3s;
    border: 2px solid white;
    color: white;
    background: transparent;
}

.btn-outline:hover {
    background: white;
    color: #222;
    transform: translateY(-2px);
}



/* DISEÑO PREMIUM MINIMALISTA */
.premium-card {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 60px 40px;
    border-radius: 30px;
    box-shadow: 0 15px 45px rgba(0,0,0,0.06);
    border-top: 5px solid #d32f2f;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.premium-card.border-blue {
    border-top-color: #1976d2;
}

.elegant-text p {
    font-size: 1.25rem;
    line-height: 1.9;
    color: #444;
    font-weight: 300;
    margin-bottom: 0;
}

.card-footer-line {
    width: 60px;
    height: 4px;
    background: #d32f2f;
    margin: 40px auto 0;
    border-radius: 2px;
}

.card-footer-line.blue {
    background: #1976d2;
}




/* CARDS */
.cards {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.card-icon {
    font-size: 3rem;
    color: #d32f2f;
    margin-bottom: 20px;
    display: inline-block;
    transition: transform 0.3s ease;
}

.card:hover .card-icon {
    transform: scale(1.1);
}

.card {
    flex: 1;
    min-width: 280px;
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-top: 4px solid #d32f2f;
    display: flex;
    flex-direction: column;
}

.card-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
    font-size: 0.95rem;
    color: #555;
    line-height: 1.5;
}

.card-list li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 20px;
}

.card-list li::before {
    content: "•";
    color: #d32f2f;
    position: absolute;
    left: 0;
    font-weight: bold;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.12);
}

/* GALERÍA */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    cursor: pointer;
    height: 250px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-cta {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 10px;
}

/* LIGHTBOX */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.lightbox-content {
    max-width: 90%;
    max-height: 85vh;
    border-radius: 10px;
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
    animation: zoomIn 0.3s ease;
}

.close-lightbox:hover {
    color: #d32f2f;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
}

.lightbox-nav:hover {
    background: rgba(211, 47, 47, 0.8);
}

.prev-btn {
    left: 40px;
}

.next-btn {
    right: 40px;
}

@media (max-width: 768px) {
    .lightbox-nav {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    .prev-btn { left: 10px; }
    .next-btn { right: 10px; }
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}


/* DOCUMENTOS TARJETAS */
.docs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.doc-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    transition: 0.3s;
    border: 1px solid #f0f0f0;
}

.doc-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border-color: #d32f2f;
}

.doc-icon {
    font-size: 2.5rem;
    color: #d32f2f;
}

.doc-info h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: #222;
}

.doc-info p {
    font-size: 0.85rem !important;
    color: #888;
    margin: 0 !important;
    text-align: left !important;
}

.btn-download {
    margin-left: auto;
    background: #1976d2;
    color: white;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: 0.3s;
}

.btn-download:hover {
    background: #1565c0;
}

.docs-cta {
    text-align: center;
    margin-top: 40px;
}

/* Espaciado adicional para subtítulos */
.section-subtitle {
    margin-bottom: 40px !important;
}



/* CONTACTO ELEGANTE */
.section-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 50px !important;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.info-item {
    display: flex;
    gap: 20px;
}

.info-item i {
    width: 50px;
    height: 50px;
    background: rgba(211, 47, 47, 0.1);
    color: #d32f2f;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.2rem;
}

.info-item h4 {
    margin-bottom: 5px;
    color: #222;
}

.info-item p {
    margin: 0 !important;
    text-align: left !important;
    font-size: 0.95rem !important;
}

.contact-form-card {
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

.elegant-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.elegant-form input, 
.elegant-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #eee;
    background: #fdfdfd;
    border-radius: 10px;
    font-family: inherit;
    transition: 0.3s;
}

.elegant-form input:focus, 
.elegant-form textarea:focus {
    outline: none;
    border-color: #d32f2f;
    background: #fff;
    box-shadow: 0 5px 15px rgba(211,47,47,0.05);
}

.btn-block {
    width: 100%;
    border: none;
    cursor: pointer;
    font-weight: 600;
}

/* El diseño responsivo de estas secciones se ha consolidado al final del archivo */


/* FOOTER PREMIUM */
.footer {
    background: #111;
    color: #eee;
    padding: 80px 0 30px;
    font-size: 0.95rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col h3 {
    margin-bottom: 15px;
    color: white;
}

.footer-col h4 {
    color: white;
    margin-bottom: 25px;
    font-size: 1.2rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background: #d32f2f;
}

.footer-logo {
    height: 60px;
    margin-bottom: 20px;
}

.footer-col p {
    line-height: 1.8;
    color: #bbb;
    margin-bottom: 20px;
}

/* Redes Sociales */
.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: #222;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: 0.3s;
}

.social-links a:hover {
    background: #d32f2f;
    transform: translateY(-5px);
}

/* Links del Footer */
.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #bbb;
    text-decoration: none;
    transition: 0.3s;
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

/* Contacto Footer */
.footer-contact {
    list-style: none;
}

.footer-contact li {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    color: #bbb;
}

.footer-contact li i {
    color: #d32f2f;
    margin-top: 5px;
}

/* Bottom Footer */
.footer-bottom {
    text-align: center;
}

.footer-bottom hr {
    border: 0;
    border-top: 1px solid #333;
    margin-bottom: 30px;
}

.footer-bottom p {
    color: #777;
    font-size: 0.9rem;
}

/* RESPONSIVE FOOTER */
@media (max-width: 768px) {
    .footer-col {
        text-align: center;
    }

    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .social-links {
        justify-content: center;
    }

    .footer-contact li {
        justify-content: center;
    }
}


/* RESPONSIVE */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .menu {
        position: fixed;
        top: 70px; /* Ajustado al header scrolled */
        right: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: white;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 30px;
        transition: 0.4s ease;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        z-index: 999;
    }

    .menu.active {
        right: 0;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-info, .contact-form-card {
        padding: 25px;
    }

    .form-row {
        flex-direction: column;
        gap: 20px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }
}


.whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25D366;
    color: white;
    font-size: 32px;
    width: 65px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
    transition: 0.3s;
    z-index: 2000;
    animation: pulse-whatsapp 2s infinite;
}

.whatsapp:hover {
    transform: scale(1.1);
    background: #20ba5a;
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.5);
}

@keyframes pulse-whatsapp {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}


html {
    scroll-behavior: smooth;
}