:root {
    /* Colors */
    --c-dark-blue: #0c4577;
    --c-light-blue: #70ADC8;
    --c-bg-light: #ddf2f8;
    --c-orange: #ef7645;
    --c-yellow: #ffd348;
    --c-green: #a6d149;
    --c-teal: #5ccbcf;
    --c-white: #FFFFFF;
    --c-cream: #fbf3df;
    --c-text: #4A4A4A;

    /* Typography */
    --f-main: 'Quicksand', sans-serif;

    /* Curves & Shadows */
    --radius-blob-1: 60% 40% 30% 70% / 60% 30% 70% 40%;
    --radius-blob-2: 40% 60% 70% 30% / 40% 50% 60% 50%;
    --radius-blob-3: 50% 50% 30% 70% / 60% 40% 60% 40%;
    --radius-blob-4: 70% 30% 50% 50% / 40% 60% 40% 60%;

    --shadow-card: 0 4px 12px rgba(0, 0, 0, 0.06);
    --shadow-btn: 0 8px 15px rgba(0, 0, 0, 0.1);

    /* Transitions */
    --t-fast: 0.3s ease;
    --t-smooth: 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--f-main);
    color: var(--c-text);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--c-white);
}

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

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--f-main);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 15px;
    font-weight: 500;
    font-size: 1.35rem;
    /* Increased globally */
}

.text-dark-blue {
    color: var(--c-dark-blue);
}

.text-light-blue {
    color: var(--c-light-blue);
    font-weight: 500;
}

.text-white {
    color: var(--c-white);
}

.text-center {
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: all var(--t-fast);
    border: none;
    font-size: 1rem;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-btn);
}

.btn-primary {
    background-color: var(--c-orange);
    color: var(--c-white);
}

.btn-yellow {
    background-color: var(--c-yellow);
    color: var(--c-dark-blue);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--c-dark-blue);
    color: var(--c-dark-blue);
}

.btn-outline:hover {
    background-color: var(--c-dark-blue);
    color: var(--c-white);
}

/* Background Helpers */
.bg-yellow {
    background-color: var(--c-yellow);
}

.bg-green {
    background-color: var(--c-green);
}

.bg-teal {
    background-color: var(--c-teal);
}

.bg-orange {
    background-color: var(--c-orange);
}

.bg-light-blue {
    background-color: var(--c-light-blue);
}

/* Organic Blobs */
.blob-image {
    border-radius: var(--radius-blob-1);
    overflow: hidden;
    transition: border-radius var(--t-smooth);
    position: relative;
    aspect-ratio: 4/3;
    width: 100%;
}

.blob-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--t-smooth);
}

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

.blob-image-2 {
    border-radius: var(--radius-blob-2);
}

.blob-image-3 {
    border-radius: var(--radius-blob-3);
}

.blob-image-4 {
    border-radius: var(--radius-blob-4);
}

/* HEADER */
.header {
    background: var(--c-white);
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-container {
    display: flex;
    align-items: center;
}

.logo {
    margin-right: auto;
}

.logo img {
    height: 80px;
}

.menu-toggle {
    display: none;
    font-size: 1.8rem;
    color: var(--c-dark-blue);
    background: none;
    border: none;
    cursor: pointer;
}

.nav-wrapper {
    display: flex;
    align-items: center;
}

.nav {
    margin-right: 30px;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-list a {
    font-weight: 600;
    color: var(--c-dark-blue);
    font-size: 1.1rem;
    position: relative;
    transition: color var(--t-fast);
}

.nav-list a:hover,
.nav-list a.active {
    color: var(--c-orange);
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--c-orange);
    transition: width var(--t-fast);
}

.nav-list a:hover::after,
.nav-list a.active::after {
    width: 100%;
}

/* HERO SECTION */
.hero {
    position: relative;
    padding: 180px 0 150px;
    background-color: var(--c-bg-light);
    overflow: hidden;
}

.hero-bottom-shape {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.hero-bottom-shape svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 10vw;
    min-height: 60px;
    max-height: 140px;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero-content h1 {
    margin-bottom: 25px;
}

/* WHY CHOOSE US */
.why-choose {
    padding: 60px 0 120px;
}

.why-choose-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    margin-bottom: 100px;
}

.feature-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
    margin-top: -30px;
}

.card {
    background: var(--c-white);
    padding: 50px 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-card);
    text-align: center;
    transition: transform var(--t-smooth);
}

.card:hover {
    transform: translateY(-10px);
}

.card-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 25px;
    font-size: 2rem;
    color: var(--c-white);
}

.card h3 {
    color: var(--c-dark-blue);
    font-size: 1.4rem;
}

/* PHILOSOPHY */
.philosophy {
    background-color: var(--c-cream);
    padding: 120px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.philosophy-container {
    max-width: 900px;
    position: relative;
    z-index: 2;
    margin: 0 auto;
}

/* SERVICES ACCORDION */
.services {
    padding: 100px 0;
}

.accordion-container {
    display: flex;
    width: 100%;
    height: 500px;
    overflow: hidden;
    background: var(--c-white);
    box-shadow: var(--shadow-card);
    border-radius: 20px;
}

.item {
    display: flex;
    flex: 1;
    min-width: 70px;
    transition: flex 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    overflow: hidden;
    cursor: pointer;
    background-color: var(--c-white);
    position: relative;
}

.item.active {
    flex: 18;
    cursor: default;
}

.strip {
    width: 70px;
    min-width: 70px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding-bottom: 50px;
    position: relative;
    z-index: 20;
    border-right: 1px solid rgba(255, 255, 255, 0.6);
    flex-shrink: 0;
    background-color: inherit;
}

.vertical-text {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    white-space: nowrap;
    color: var(--c-white);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.strip::after {
    content: "• • •";
    position: absolute;
    bottom: 15px;
    left: 0;
    width: 100%;
    text-align: center;
    color: var(--c-white);
    font-size: 10px;
    opacity: 0.8;
    pointer-events: none;
}

.expanded-content {
    flex-grow: 1;
    height: 100%;
    padding-left: 0;
    background-size: cover;
    background-position: center center;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.4s ease 0.1s;
    min-width: 0;
    position: relative;
    filter: brightness(0.9);
}

.item.active .expanded-content {
    opacity: 1;
}

.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 60px;
    padding-right: 20px;
    z-index: 10;
}

.text-block {
    color: var(--c-white);
    width: 33.333%;
    /* Approx 1/3 of the expanded container */
    min-width: 280px;
    /* Prevents text from being too squished */
    max-width: 380px;
    /* Noticeably narrower than original 480px */
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease 0.3s;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.item.active .text-block {
    opacity: 1;
    transform: translateY(0);
}

.text-block h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.1;
    text-transform: uppercase;
    color: var(--c-white);
}

.text-block p {
    line-height: 1.6;
    font-weight: 500;
}

/* Colours - using brand CSS vars */
.item-orange .strip {
    background-color: var(--c-orange);
}

.item-orange .gradient-overlay {
    background: linear-gradient(90deg, rgba(167, 82, 48, 0.95) 0%, rgba(167, 82, 48, 0.95) 30%, rgba(167, 82, 48, 0.7) 60%, rgba(167, 82, 48, 0) 90%);
}

.item-green .strip {
    background-color: var(--c-green);
}

.item-green .gradient-overlay {
    background: linear-gradient(90deg, rgba(116, 146, 51, 0.95) 0%, rgba(116, 146, 51, 0.95) 30%, rgba(116, 146, 51, 0.7) 60%, rgba(116, 146, 51, 0) 90%);
}

.item-teal .strip {
    background-color: var(--c-teal);
}

.item-teal .gradient-overlay {
    background: linear-gradient(90deg, rgba(64, 142, 144, 0.95) 0%, rgba(64, 142, 144, 0.95) 30%, rgba(64, 142, 144, 0.7) 60%, rgba(64, 142, 144, 0) 90%);
}

.item-yellow .strip {
    background-color: var(--c-yellow);
    border-right: 1px solid rgba(255, 255, 255, 0.6);
}

.item-yellow .gradient-overlay {
    background: linear-gradient(90deg, rgba(178, 147, 50, 0.95) 0%, rgba(178, 147, 50, 0.95) 30%, rgba(178, 147, 50, 0.7) 60%, rgba(178, 147, 50, 0) 90%);
}

.item-light-blue .strip {
    background-color: var(--c-light-blue);
}

.item-light-blue .gradient-overlay {
    background: linear-gradient(90deg, rgba(78, 121, 140, 0.95) 0%, rgba(78, 121, 140, 0.95) 30%, rgba(78, 121, 140, 0.7) 60%, rgba(78, 121, 140, 0) 90%);
}

/* VIDEOS */
.videos {
    padding: 100px 0 120px;
}

.videos-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.video-thumbnail {
    position: relative;
    margin-bottom: 25px;
    cursor: pointer;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: none;
    color: var(--c-white);
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform var(--t-fast);
    z-index: 10;
}

.play-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

/* VIDEO MODAL */
.video-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.video-modal-content {
    position: relative;
    margin: 10% auto;
    padding: 0;
    width: 80%;
    max-width: 900px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    animation-name: animatetop;
    animation-duration: 0.4s;
    border-radius: 10px;
    overflow: hidden;
}

@keyframes animatetop {
    from {
        top: -300px;
        opacity: 0
    }

    to {
        top: 0;
        opacity: 1
    }
}

.close-modal {
    color: white;
    position: absolute;
    top: -40px;
    right: 0;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.close-modal:hover,
.close-modal:focus {
    color: var(--c-light-blue);
    text-decoration: none;
    cursor: pointer;
}

.video-iframe-container {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 ratio */
    height: 0;
    overflow: hidden;
}

.video-iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-thumbnail:hover .play-btn {
    transform: translate(-50%, -50%) scale(1.1);
}

/* MENU PAGE Specifics */
.menu-intro-section {
    padding: 60px 0 20px;
}

.menu-carousel-section {
    padding: 60px 0;
}

.carousel-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.carousel-btn {
    background: var(--c-white);
    border: 2px solid var(--c-light-blue);
    color: var(--c-dark-blue);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--t-fast);
    flex-shrink: 0;
}

.carousel-btn:hover {
    background: var(--c-light-blue);
    color: var(--c-white);
    transform: scale(1.1);
}

.carousel-content {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.menu-img-placeholder {
    max-width: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    /* Optional: Limit max height to keep it proportional on huge screens */
    max-height: 500px;
    object-fit: contain;
}

.important-notes-section {
    padding: 40px 0 100px;
}

.important-box {
    background-color: #f7eedb;
    /* Pale yellow from reference */
    border-radius: 20px;
    padding: 40px 60px;
}

.important-box h3 {
    margin-bottom: 20px;
    font-size: 1.5rem;
    font-weight: 700;
}

.important-box p {
    margin-bottom: 25px;
}

.important-box p:last-child {
    margin-bottom: 0;
}

.video-caption {
    text-align: center;
    font-size: 1.25rem;
    font-weight: 700;
}

/* ======================================================= */
/* QUIÉNES SOMOS PAGE STYLES */
/* ======================================================= */

.page-title-section {
    padding: 180px 0 60px;
    background-color: var(--c-bg-light);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.text-orange {
    color: var(--c-orange);
}

.info-section {
    padding: 100px 0;
}

.info-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    margin-bottom: 120px;
}

.info-row:last-child {
    margin-bottom: 0;
}

.areas-clave {
    padding: 60px 0 100px;
    position: relative;
    z-index: 1;
}

.areas-clave::before {
    content: '';
    position: absolute;
    top: 155px;
    /* Halfway through the title-banner */
    left: 0;
    width: 100%;
    bottom: 0;
    background-color: #f9f9f9;
    z-index: -1;
}

.title-banner {
    background: var(--c-dark-blue);
    border-radius: 20px;
    padding: 50px 40px;
    text-align: center;
    position: relative;
    max-width: 900px;
    margin: 0 auto 100px;
    box-shadow: var(--shadow-card);
}

.title-banner h2 {
    color: var(--c-white);
    margin-bottom: 15px;
}

.banner-point {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
    border-top: 30px solid var(--c-dark-blue);
}

.areas-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    position: relative;
}

/* Connecting lines (desktop) */
.areas-grid::before {
    content: '';
    position: absolute;
    top: 45px;
    left: 10%;
    right: 10%;
    height: 2px;
    background-color: rgba(27, 67, 101, 0.1);
    z-index: 0;
}

.area-item.bottom-item:nth-last-child(2)::after {
    content: '';
    position: absolute;
    top: 45px;
    /* Center of icon */
    left: 50%;
    width: 100%;
    height: 2px;
    background-color: rgba(12, 69, 119, 0.1);
    z-index: -1;
}

.area-item {
    width: calc(33.333% - 40px);
    text-align: center;
    position: relative;
    z-index: 1;
}

.area-item.bottom-item {
    width: calc(40% - 40px);
    margin-top: 40px;
}

.area-icon {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2.2rem;
    border: 3px solid;
    background: var(--c-white);
    transition: transform var(--t-smooth);
}

.area-item:hover .area-icon {
    transform: scale(1.1);
}

.text-yellow {
    color: var(--c-yellow);
}

.border-yellow {
    border-color: var(--c-yellow);
}

.border-green {
    border-color: var(--c-green);
}

.text-green {
    color: var(--c-green);
}

.border-light-blue {
    border-color: var(--c-light-blue);
}

.border-orange {
    border-color: var(--c-orange);
}

.text-teal {
    color: var(--c-teal);
}

.border-teal {
    border-color: var(--c-teal);
}

.founder-section {
    padding: 60px 0 140px;
    position: relative;
    background-color: #f9f9f9;
}

.founder-wrapper {
    position: relative;
    width: 100%;
    max-width: 1360px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    padding: 180px 0;
    /* Padding inside the blob for text */
}

.founder-bg-svg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: auto;
    z-index: 0;
    pointer-events: none;
    overflow: visible;
}

.relative-z {
    position: relative;
    z-index: 2;
    padding: 0 40px;
}

.founder-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 80px;
    align-items: center;
}

.founder-img {
    border-radius: var(--radius-blob-2);
    /* Reuse blob shapes */
    aspect-ratio: 1;
}

.founder-subtitle {
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    display: inline-block;
}

/* ======================================================= */
/* FOOTER */
/* ======================================================= */
.footer {
    background-color: var(--c-dark-blue);
    color: var(--c-white);
    padding: 80px 0 0;
}

.footer-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    padding-bottom: 60px;
}

.contact-list {
    list-style: none;
    margin-bottom: 40px;
}

.contact-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-list i {
    color: var(--c-yellow);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--c-white);
    transition: all var(--t-fast);
}

.social-btn.whatsapp {
    background: #25D366;
    border-color: #25D366;
}

.social-btn:hover {
    transform: translateY(-3px);
}

.footer-form-wrapper {
    background-color: #21517a;
    /* Lighter than main footer #1b4365 */
    padding: 40px;
    border-radius: 20px;
    box-sizing: border-box;
    width: 100%;
}

.footer-form-wrapper h3 {
    margin-bottom: 5px;
}

.footer-form-wrapper p {
    margin-bottom: 25px;
    opacity: 0.9;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px 20px;
    border-radius: 8px;
    border: none;
    font-family: var(--f-main);
    font-size: 1.1rem;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
    /* Forzamos una sola línea en escritorio */
    white-space: nowrap !important; 
    width: 100%;
}
.checkbox-wrapper label {
    font-size: 0.95rem; /* Tamaño normal para que se lea bien en PC */
    cursor: pointer;
    line-height: 1;
}
.checkbox-wrapper input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0; /* Evita que el cuadrito se aplaste */
}

.submit-btn {
    align-self: flex-end;
    margin-top: 10px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
}

.footer-bottom-container {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    opacity: 0.8;
}

@media (max-width: 900px) {
    .container {
        padding: 0 20px;
    }

    .logo {
        margin: 0;
    }

    .hero {
        padding: 160px 0 120px;
    }

    .hero-content,
    .why-text {
        text-align: center;
    }

    .hero-bottom-shape svg {
        height: 100px;
    }

    .hero-container,
    .why-choose-top,
    .feature-cards,
    .videos-container,
    .footer-container {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .why-choose-top {
        margin-bottom: 60px;
    }

    .header-container {
        flex-direction: row;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 0;
    }

    .logo img {
        height: 60px;
    }

    .menu-toggle {
        display: block;
    }

    .nav-wrapper {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: var(--c-white);
        position: absolute;
        top: 100px;
        /* Below the header */
        left: 0;
        padding: 20px 0 40px;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.05);
        text-align: center;
        gap: 20px;
    }

    .header.menu-open .nav-wrapper {
        display: flex;
    }

    .nav {
        margin-right: 0;
    }

    .nav-list {
        flex-direction: column;
        justify-content: center;
        gap: 20px;
    }

    h1 {
        font-size: 2.5rem;
    }

    /* ACORDEON MOBILE */
    .accordion-container {
        flex-direction: column;
        height: auto;
        /* Let it grow naturally */
        border-radius: 15px;
    }

    .item {
        display: grid;
        grid-template-rows: 60px 0fr;
        transition: grid-template-rows 0.6s cubic-bezier(0.25, 1, 0.5, 1);
        min-width: 0;
        width: 100%;
        border-left: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.6);
        height: auto;
        flex: none;
        /* Prevents inheriting flex-grow from desktop which created fake spacing */
    }

    .item.active {
        grid-template-rows: 60px 1fr;
    }

    .strip {
        width: 100%;
        height: 60px;
        min-height: 60px;
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        padding: 0 20px;
        border-right: none;
        flex-shrink: 0;
    }

    .strip::after {
        display: none;
    }

    .vertical-text {
        writing-mode: horizontal-tb;
        transform: none;
        font-size: 1.1rem;
        letter-spacing: 1px;
    }

    .expanded-content {
        overflow: hidden;
        min-height: 0;
        width: 100%;
        padding-left: 0;
        background-clip: border-box;
        background-origin: padding-box;
        background-size: cover;
        background-position: center;
        filter: none;
        position: relative;
        display: flex;
        flex-direction: column;
    }



    .item.active .expanded-content::before {
        content: "";
        width: 100%;
        min-height: 250px;
        display: block;
    }

    .gradient-overlay {
        position: relative;
        top: auto;
        left: auto;
        height: auto;
        width: 100%;
        margin-top: auto;
        /* Pushes the solid color to the absolute bottom */
        padding: 30px 20px;
        justify-content: flex-start;
        align-items: center;
        text-align: center;
        overflow-y: visible;
    }

    .item-orange .gradient-overlay {
        background: rgba(167, 82, 48, 0.95);
    }

    .item-green .gradient-overlay {
        background: rgba(116, 146, 51, 0.95);
    }

    .item-teal .gradient-overlay {
        background: rgba(64, 142, 144, 0.95);
    }

    .item-yellow .gradient-overlay {
        background: rgba(178, 147, 50, 0.95);
    }

    .item-light-blue .gradient-overlay {
        background: rgba(78, 121, 140, 0.95);
    }

    .text-block {
        width: 100%;
        max-width: 100%;
        text-shadow: none;
        padding-left: 0;
        transform: none;
    }

    .text-block h2 {
        font-size: 1.8rem;
        margin-top: 10px;
    }



    .footer-form-wrapper {
        padding: 30px 20px;
    }

    .checkbox-wrapper {
        font-size: 0.85rem;
    }

    /* Quiénes somos responsive */
    .page-title-section {
        padding: 160px 0 50px;
    }

    .info-row {
        grid-template-columns: 1fr;
        gap: 50px;
        margin-bottom: 80px;
    }

    .info-row.reverse .info-image {
        grid-row: 2;
        /* Move image under text on mobile */
    }

    .info-row.reverse .info-text {
        grid-row: 1;
    }

    .areas-grid::before,
    .areas-grid::after {
        display: none;
    }

    .area-item,
    .area-item.bottom-item {
        width: 100%;
        margin-top: 0;
        margin-bottom: 40px;
    }

    .founder-wrapper {
        padding: 120px 0;
    }

    .founder-bg-svg {
        display: none;
    }

    .relative-z {
        padding: 0 20px;
    }

    .founder-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* Menu responsive */
    .menu-intro-section {
        padding: 40px 0;
    }

    .carousel-container {
        gap: 15px;
    }

    .carousel-btn {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }

    .important-box {
        padding: 30px 20px;
    }
}
/* --- REPARACIÓN GLOBAL PARA MÓVILES (Saint Mary) --- */
@media (max-width: 900px) {
    /* 1. Prohibir el movimiento hacia los lados en todo el sitio */
    html, body {
        width: 100vw;
        overflow-x: hidden !important;
        position: relative;
    }
    /* 2. Reducir los títulos que son MUY grandes y empujan la pantalla */
    h1 { font-size: 2.2rem !important; }
    h2 { font-size: 1.8rem !important; }
    /* 3. Forzar que todos los contenedores se ajusten al ancho del celular */
    .container, .info-row, .areas-grid, .footer-container {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
    /* 4. Arreglar el formulario definitivamente */
   	.checkbox-wrapper {
        white-space: nowrap !important; /* Intentamos una sola línea */
        overflow: hidden;
        text-overflow: ellipsis; 
    }
    
     .checkbox-wrapper label {
        font-size: 0.72rem !important;
		letter-spacing: -0.3px;
    }
}

/* ---- FORZAR ESTILOS PARA CONTACT FORM 7 ---- */
.wpcf7-form p,
.wpcf7-list-item {
    margin: 0 !important;
}

/* Campos de texto blancos limpios */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea {
    width: 100%;
    padding: 15px 20px;
    border-radius: 8px;
    border: none;
    font-family: inherit;
    font-size: 1.1rem;
    box-sizing: border-box;
    margin-bottom: 15px; /* Espacio entre cuadros */
}

/* Cajita de aceptación y su texto */
.checkbox-wrapper .wpcf7-list-item-label {
    font-size: 0.95rem;
    cursor: pointer;
    line-height: 1.4;
    color: white;
}

/* El botón amarillo */
.wpcf7-submit {
    background-color: #ffd348 !important; /* Nuestro amarillo */
    color: #0c4577 !important; /* Texto azul oscuro */
    padding: 12px 30px !important;
    border-radius: 50px !important;
    font-weight: 700 !important;
    border: none !important;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    align-self: flex-end !important;
}

.wpcf7-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}
