/* ============================================
   VARIABLES Y RESET
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-dark: #0F172A;
    --gold: #D4AF37;
    --white: #FFFFFF;
    --light-gray: #F5F5F5;
    --dark-gray: #2D3748;
    --text-color: #333333;
    --border-color: #E0E0E0;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ============================================
   NAVBAR
   ============================================ */

.navbar {
    background: var(--primary-dark);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    max-width: 90%;
    width: 100%;
    padding: 0 8px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-right: auto;
}

.logo {
    height: 60px;
    width: auto;
}

.brand-name {
    color: var(--gold);
    font-size: 1.3rem;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 4rem;
    margin-left: auto;
}

.nav-menu a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.nav-menu a:hover {
    color: var(--gold);
    border-bottom: 2px solid var(--gold);
    padding-bottom: 5px;
}

.navbar-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 768px) {
    .navbar-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--primary-dark);
        padding: 1rem;
        gap: 1rem;
    }

    .nav-menu.active {
        display: flex;
    }
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    min-height: 100vh;
    background-color: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background-image: url("../img/imagen-principal.png");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    background-attachment: scroll;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: var(--white);
    animation: fadeInUp 1s ease;
    padding: 2rem;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--gold);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--light-gray);
}



@media (max-width: 1024px) {
    .hero {
        min-height: 80vh;
        background-size: cover;
        background-position: center center;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero p {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 70vh;
        background-size: cover;
        background-position: center center;
    }

    .hero-content {
        padding: 1rem;
    }

    .hero h1 {
        font-size: 2.5rem;
        margin-bottom: 0.75rem;
    }

    .hero p {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        padding: 1.25rem 1.5rem;
        align-items: stretch;
    }
}

@media (max-width: 540px) {
    .hero {
        min-height: 60vh;
        background-size: cover;
        background-position: center center;
    }

    .hero h1 {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    
}

/* ============================================
   BOTONES
   ============================================ */

.btn {
    padding: 12px 30px;
    border: 2px solid var(--gold);
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s ease, color 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    font-size: 1rem;
    white-space: nowrap;
    box-sizing: border-box;
}


.btn:focus,
.btn:active,
.btn:focus-visible {
    outline: none;
    box-shadow: none;
}

.btn-primary {
    background: var(--gold);
    color: var(--primary-dark);
}

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

.btn-secondary {
    background: transparent;
    color: var(--white);
}

.btn-secondary:hover {
    background: var(--gold);
    color: var(--primary-dark);
    transform: translateY(-2px);
}

/* ============================================
   SECCIÓN SOBRE NOSOTROS
   ============================================ */

.about {
    padding: 30px 0;
    background: var(--light-gray);
}

.about h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    text-align: center;
    color: var(--primary-dark);
    margin-bottom: 2rem;
    border-bottom: 3px solid var(--gold);
    padding-bottom: 1rem;
    display: inline-block;
    width: 100%;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.1s;
}

.about-content {
    display: grid;
    gap: 2rem;
}

.about-top {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

.about-bottom {
    display: grid;
    gap: 1.5rem;
}

.about-values-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

.about-card {
    background: var(--white);
    padding: 1.6rem;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border-left: 5px solid var(--gold);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, opacity 0.3s ease;
}

.about-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.15);
    border-left-color: var(--primary-dark);
}

/* Reveal animation classes (manejadas por IntersectionObserver) */
.about-card.reveal,
.service-card.reveal,
.team-card.reveal,
.testimonial-card.reveal,
.faq-item.reveal,
.contact-form.reveal,
.contact-info.reveal {
    opacity: 0;
    transform: translateY(30px);
}

.about-card.visible,
.service-card.visible,
.team-card.visible,
.testimonial-card.visible,
.faq-item.visible,
.contact-form.visible,
.contact-info.visible {
    opacity: 1;
    transform: translateY(0);
}

.about-card--values {
    padding-bottom: 1rem;
    max-width: 100%;
}

@media (max-width: 1024px) {
    .about-values-row {
        grid-template-columns: 1fr;
    }

    .about-top {
        grid-template-columns: 1fr;
    }

    .about-bottom {
        grid-template-columns: 1fr;
    }
}

.about-card h4 {
    color: var(--primary-dark);
    margin-bottom: 0.85rem;
    font-size: 1.2rem;
}

.about-card p {
    color: var(--text-color);
    margin-bottom: 0.9rem;
    line-height: 1.7;
}

.about-accordion-toggle {
    width: 100%;
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    cursor: default;
    padding: 0;
}

.about-accordion-toggle h4 {
    margin-bottom: 0.85rem;
}

.about-accordion-toggle i {
    display: none;
}

.about-accordion-content {
    max-height: none;
    overflow: visible;
}

@media (max-width: 768px) {
    .about h2 {
        font-size: 1.8rem;
    }

    .about-content {
        gap: 1.5rem;
    }

    .about-accordion-toggle {
        cursor: pointer;
        align-items: center;
        min-height: 32px;
    }

    .about-accordion-toggle h4 {
        margin-bottom: 0;
        line-height: 1.3;
    }

    .about-card--values {
        padding: 1.2rem;
    }

    .about-accordion-toggle i {
        display: inline-block;
        color: var(--primary-dark);
        transition: transform 0.3s ease;
    }

    .about-accordion-content {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease;
    }

    .about-accordion-item.active .about-accordion-content {
        max-height: 900px;
    }

    .about-accordion-item.active .about-accordion-toggle i {
        transform: rotate(180deg);
    }

    .about-accordion-item.active .about-accordion-content p:first-child {
        margin-top: 0.85rem;
    }

    .about-accordion-item.active .about-accordion-content p:last-child {
        margin-bottom: 0;
    }
}

/* ============================================
   SECCIÓN PROPUESTAS
   ============================================ */

.propuestas {
    padding: 30px 0;
    background: var(--light-gray);
}

.propuestas h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    text-align: center;
    color: var(--primary-dark);
    margin-bottom: 3rem;
    border-bottom: 3px solid var(--gold);
    padding-bottom: 1rem;
    display: inline-block;
    width: 100%;
}

.propuestas-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.propuestas-toggle i {
    display: none;
}

.propuestas-lista {
    max-width: 900px;
    margin: 0 auto;
}

.propuestas-banner {
    width: 100vw;
    max-width: none;
    margin: 0 0 1.5rem;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.propuestas-banner img {
    display: block;
    width: 100%;
    height: 420px;
    object-fit: cover;
}

.propuesta-fila {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.4rem 0;
    border-bottom: 1px solid var(--border-color);
    gap: 1rem;
    transition: var(--transition);
}

.propuesta-fila:first-child {
    border-top: 1px solid var(--border-color);
}

.propuesta-fila:hover {
    border-bottom-color: var(--gold);
    padding-left: 0.75rem;
}

.propuesta-izquierda {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.propuesta-izquierda i {
    font-size: 1.6rem;
    color: var(--gold);
    flex-shrink: 0;
}

.propuesta-nombre {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: var(--primary-dark);
    font-weight: 700;
}

.propuesta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.4rem;
    border: 2px solid var(--gold);
    border-radius: 6px;
    background: transparent;
    color: var(--primary-dark);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
    flex-shrink: 0;
}

.propuesta-btn:hover {
    background: var(--gold);
    color: var(--primary-dark);
}

@media (max-width: 768px) {

    .propuestas h2 {
        font-size: 1.8rem;
    }

    .propuestas-toggle {
        cursor: pointer;
        justify-content: space-between;
        text-align: left;
    }

    .propuestas-toggle i {
        display: inline-block;
        color: var(--primary-dark);
        font-size: 0.95rem;
        transition: transform 0.3s ease;
    }

    .propuestas-lista {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease;
    }

    .propuestas.active .propuestas-lista {
        max-height: 2600px;
    }

    .propuestas.active .propuestas-toggle i {
        transform: rotate(180deg);
    }

    .propuestas-banner {
        margin-bottom: 1.2rem;
        border-radius: 0;
    }

    .propuestas-banner img {
        height: 760px;
    }

    .propuesta-fila {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        padding: 1.25rem 0;
    }

    .propuesta-nombre {
        font-size: 1rem;
    }

    .propuesta-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   SECCIÓN SERVICIOS
   ============================================ */

.services {
    padding: 10px 20px;
    background: var(--white);
}

.services h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    text-align: center;
    color: var(--primary-dark);
    margin-bottom: 3rem;
    border-bottom: 3px solid var(--gold);
    padding-bottom: 1rem;
    display: inline-block;
    width: 100%;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--light-gray);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: var(--transition);
    border-top: 4px solid var(--gold);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    background: var(--white);
    border-top-color: var(--primary-dark);
}

.service-card i {
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 1rem;
}


/* ============================================
   SECCIÓN EQUIPO
   ============================================ */

.team {
    padding: 20px 0;
    background: var(--light-gray);
    margin-top: 35px;
}

.team h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    text-align: center;
    color: var(--primary-dark);
    margin-bottom: 3rem;
    border-bottom: 3px solid var(--gold);
    padding-bottom: 1rem;
    display: inline-block;
    width: 100%;
}

.team-slider-container {
    display: flex;
    align-items: center;
    justify-content: center;
    
    gap: 0.85rem;
}

.team-slider {
    flex: 1 1 0;
    min-width: 0;
    overflow: hidden;
    border-radius: 16px;
    padding: 2px;
}

.team-slider-track {
    display: flex;
    align-items: stretch;
    gap: 1rem;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    touch-action: pan-y;
    cursor: grab;
}

.team-slider-track.dragging {
    cursor: grabbing;
    transition: none;
}

.team-card {
    
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    text-align: center;
    position: relative;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    height: 560px;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(212, 175, 55, 0.25);
}

.team-card img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.team-card-body {
    position: relative;
    padding: 1.1rem 1.4rem 1.25rem;
    margin-top: -52px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    flex: 1;
}

.team-card h3 {
    font-size: 1.2rem;
    color: var(--primary-dark);
    margin-bottom: 0.45rem;
    padding-top: 3rem;
}

.team-card .specialty {
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 0.35rem;
    font-size: 0.95rem;
}

.team-card .specialty:last-of-type {
    margin-bottom: 1rem;
}



.team-card .description:empty {
    display: none;
}

.team-profile-btn {
    
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 8px;
    background: var(--primary-dark);
    color: var(--white);
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    font-size: 0.95rem;
    margin-top: auto;
}

.team-profile-btn:hover {
    background: var(--gold);
    color: var(--primary-dark);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .team h2 {
        font-size: 1.8rem;
    }

    .team-slider-container {
        gap: 0.5rem;
        flex-direction: row;
        align-items: center;
    }

    .team-slider {
        padding: 0;
    }

    .team-slider-track {
        gap: 0.7rem;
    }

    .team-card img {
        height: 280px;
    }

    .team-card {
        height: 520px;
    }

    .team-card-body {
        margin-top: -50px;
    }

    .team-card h3 {
        font-size: 1rem;
        line-height: 1.2;
        text-wrap: balance;
    }

}

@media (max-width: 540px) {
    .team-slider-container {
        gap: 0.5rem;
    }

    .team-card h3 {
        font-size: 0.95rem;
        line-height: 1.15;
    }

    .team-card {
        height: 520px;
    }
}
/* ============================================
   SECCIÓN CEO
   ============================================ */

.ceo {
    padding: 20px 0 50px 0;
    background: var(--white);
}

.ceo-content {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 3rem;
}

.ceo-tag {
    display: inline-block;
    color: var(--gold);
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}
.ceo h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    text-align: center;
    color: var(--primary-dark);
    margin-bottom: 3rem;
    border-bottom: 3px solid var(--gold);
    padding-bottom: 1rem;
    display: inline-block;
    width: 100%;
}

.ceo-text h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: var(--primary-dark);
    margin-bottom: 0.25rem;
}

.ceo-role {
    color: var(--gold);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
}

.ceo-description {
    color: var(--text-color);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.ceo-signature {
    border-left: 4px solid var(--gold);
    padding-left: 1rem;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: var(--primary-dark);
    font-size: 1.05rem;
}

.ceo-image {
    position: relative;
}

.ceo-image::before {
    content: '';
    position: absolute;
    top: -16px;
    left: -16px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--gold);
    border-radius: 12px;
    z-index: 0;
}

.ceo-image img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 480px;
    object-fit: cover;
    object-position: center top;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

@media (max-width: 900px) {
    .ceo-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .ceo-image {
        order: -1;
    }

    .ceo-image img {
        height: 360px;
    }

    .ceo-text h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .ceo {
        padding: 40px 0;
    }

    .ceo-image::before {
        top: -10px;
        left: -10px;
    }

    .ceo-image img {
        height: 300px;
    }
}

/* ============================================
   MODAL EQUIPO
   ============================================ */

.team-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}

.team-modal.active {
    display: flex;
}

.team-modal-content {
    width: 100%;
    max-width: 660px;
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    animation: slideIn 0.3s ease;
    overflow-y: auto;
    max-height: 88vh;
}

.team-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: var(--light-gray);
    color: var(--primary-dark);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.team-modal-close:hover {
    background: var(--gold);
    color: var(--white);
    transform: rotate(90deg);
}

.team-modal-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 2px solid var(--gold);
}

.team-modal-header img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    border: 3px solid var(--gold);
    flex-shrink: 0;
}

.team-modal-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: var(--primary-dark);
    margin-bottom: 0.25rem;
}

.team-modal-header p {
    color: var(--gold);
    font-weight: 600;
    font-size: 0.95rem;
    margin: 0;
}

.team-modal-body {
    color: var(--text-color);
    line-height: 1.8;
}

.team-modal-body .modal-section {
    margin-bottom: 1.5rem;
}

.team-modal-body .modal-section h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 0.6rem;
    padding-left: 0.75rem;
    border-left: 4px solid var(--gold);
}

.team-modal-body .modal-section p {
    font-size: 0.93rem;
    line-height: 1.75;
    margin-bottom: 0.5rem;
}

.team-modal-body .modal-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.team-modal-body .modal-section ul li {
    font-size: 0.93rem;
    padding: 0.45rem 0;
    padding-left: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    position: relative;
}

.team-modal-body .modal-section ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--gold);
    font-weight: 700;
}

@media (max-width: 768px) {
    .team-modal-content {
        padding: 1.5rem;
    }

    .team-modal-header {
        flex-direction: column;
        text-align: center;
    }
}

/* ============================================
   SECCIÓN FAQ
   ============================================ */

.faq {
    padding: 50px 0;
    background: var(--white);
}

.faq h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    text-align: center;
    color: var(--primary-dark);
    margin-bottom: 3rem;
    border-bottom: 3px solid var(--gold);
    padding-bottom: 1rem;
    display: inline-block;
    width: 100%;
}

.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    background: var(--light-gray);
    border: none;
    text-align: left;
    cursor: pointer;
    font-weight: 600;
    color: var(--primary-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
    font-size: 17px;
}

.faq-question:hover {
    background: var(--gold);
    color: var(--white);
}

.faq-question i {
    transition: var(--transition);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: var(--white);
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding: 1.5rem;
}

.faq-answer p {
    color: var(--text-color);
    line-height: 1.8;
}

@media (max-width: 768px) {
    .faq h2 {
        font-size: 1.8rem;
    }

    .faq-question {
        padding: 1rem;
        font-size: 0.95rem;
    }
}

/* ============================================
   SECCIÓN CONTACTO
   ============================================ */

.contact {
    padding: 50px 0;
    background: var(--primary-dark);
    color: var(--white);
}

.contact h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    text-align: center;
    color: var(--gold);
    margin-bottom: 3rem;
    border-bottom: 3px solid var(--gold);
    padding-bottom: 1rem;
    display: inline-block;
    width: 100%;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-form h3,
.contact-info h3 {
    font-size: 1.5rem;
    color: var(--gold);
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--gold);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-family: 'Inter', sans-serif;
    transition: var(--transition);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--white);
}

.info-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    align-items: flex-start;
}

.info-item i {
    color: var(--gold);
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 0.3rem;
}

.info-item p {
    margin: 0;
}

.info-item a {
    color: var(--gold);
    text-decoration: none;
    transition: var(--transition);
}

.info-item a:hover {
    text-decoration: underline;
    color: var(--white);
}

@media (max-width: 768px) {
    .contact h2 {
        font-size: 1.8rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }
}


/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: var(--primary-dark);
    color: var(--white);
    padding: 40px 0 20px;
    border-top: 3px solid var(--gold);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--gold);
    margin-bottom: 1rem;
}

.footer-logo {
    height: 130px;
    width: auto;
    margin-bottom: 1rem;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--gold);
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--gold);
    color: var(--primary-dark);
    border-radius: 50%;
    font-size: 1.2rem;
}

.social-links a:hover {
    background: var(--white);
    transform: scale(1.1);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.footer-links a {
    color: var(--gold);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
}
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 2rem;
}

.info-col {
    display: flex;
    flex-direction: column;
}

@media (max-width: 600px) {
    .info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}
/* ============================================
   TABLET FIX - CEO e EQUIPO (768px - 1024px)
   ============================================ */

@media (min-width: 768px) and (max-width: 1024px) {

    /* CEO imagen */
    .ceo-image img {
        object-position: center center;
        height: 400px;
    }

    /* Equipo tarjetas - mismo recorte que en el resto de breakpoints */
    .team-card img {
        object-fit: cover;
        object-position: center top;
        height: 320px;
    }

    .team-card-body {
        margin-top: -52px;
    }
}

/* ============================================
   ANIMACIONES
   ============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

section {
    animation: fadeInUp 0.6s ease;
}

/* ============================================
   SLIDER SERVICIOS
   ============================================ */

.services-slider-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.slider-arrow {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--primary-dark);
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
}

.slider-arrow:hover {
    background: var(--primary-dark);
    color: var(--gold);
    transform: scale(1.05);
}

.services-slider {
    flex: 1 1 0;
    min-width: 0;
    overflow: hidden;
    border-radius: 15px;
    padding: 20px;
}

.slider-track {
    display: flex;
    align-items: stretch;
    gap: 2rem;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    touch-action: pan-y;
    cursor: grab;
}

.slider-track.dragging {
    cursor: grabbing;
    transition: none;
}

.service-slide {
    flex-shrink: 0;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    gap: 1.25rem;
    box-sizing: border-box;
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    min-height: 0;
}

.service-slide i {
    font-size: 3rem;
    color: var(--gold);
}

.service-slide h3 {
    font-size: 1.5rem;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.service-slide .short-description {
    color: var(--text-color);
    line-height: 1.7;
    max-width: 100%;
    flex: 1;
}

.read-more-btn {
    padding: 0.95rem 2rem;
    border: none;
    border-radius: 8px;
    background: var(--primary-dark);
    color: var(--white);
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
    width: 100%;
}

.read-more-btn:hover {
    background: var(--gold);
    color: var(--primary-dark);
    transform: translateY(-2px);
}

/* Modal Servicios */
.service-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}

.service-modal.active {
    display: flex;
}

.modal-content {
    width: 100%;
    max-width: 640px;
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 18);
    animation: slideIn 0.3s ease;
    overflow-y: auto;
    max-height: 85vh;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: var(--light-gray);
    color: var(--primary-dark);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--gold);
    color: var(--white);
    transform: rotate(90deg);
}

#modalTitle {
    font-family: 'Playfair Display', serif;
    font-size: 1.9rem;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.modal-body {
    color: var(--text-color);
    line-height: 1.8;
}

.modal-body h4 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--gold);
}

.modal-body ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.modal-body ul li {
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    position: relative;
    padding-left: 1.7rem;
}

.modal-body ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0.85rem;
    color: var(--gold);
    font-weight: 700;
}

/* ============================================
   SLIDER - RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
    .services-slider {
        padding: 0.9rem;
    }

    .slider-track {
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .services-slider-container {
        gap: 0.75rem;
        flex-direction: row;
        align-items: center;
    }

    .slider-arrow {
        display: flex;
        width: 38px;
        height: 38px;
        font-size: 0.9rem;
        flex-shrink: 0;
    }

    .services-slider {
        padding: 0.75rem;
        flex: 1 1 0;
        min-width: 0;
    }

    .slider-track {
        gap: 1rem;
    }

    .service-slide {
        padding: 1.25rem;
        gap: 0.85rem;
        min-height: 0;
    }

    .service-slide i {
        font-size: 2.25rem;
    }

    .service-slide h3 {
        font-size: 1.2rem;
    }

    .service-slide .short-description {
        font-size: 0.92rem;
        line-height: 1.6;
    }

    .read-more-btn {
        padding: 0.8rem 1rem;
        font-size: 0.95rem;
    }

    .modal-content {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .services-slider-container {
        gap: 0.5rem;
    }

    .slider-arrow {
        width: 34px;
        height: 34px;
        font-size: 0.8rem;
    }

    .services-slider {
        padding: 0.65rem;
    }

    .service-slide {
        padding: 1rem;
        gap: 0.75rem;
    }

    .service-slide i {
        font-size: 2rem;
    }

    .service-slide h3 {
        font-size: 1.1rem;
    }

    .service-slide .short-description {
        font-size: 0.88rem;
    }

    .read-more-btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 380px) {
    .team-card {
        height: 480px;
    }

    .team-card img {
        height: 240px;
    }

    .team-card-body {
        margin-top: -40px;
    }

    .service-slide {
        padding: 0.85rem;
    }

    .service-slide i {
        font-size: 1.8rem;
    }
}