:root {
    --primary: #1ca6e8;
    --primary-hover: #158bc2;
    --dark-blue: #0b2545;
    --bg-light: #e5e5e5;
    --footer-bg: #1f232c;
    --text-dark: #333;
    --text-light: #fff;
    --font-main: 'Inter', sans-serif;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-main);
    color: var(--text-dark);
    -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
a { text-decoration: none; color: inherit; }

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

.text-center { text-align: center; }
.text-white { color: var(--text-light); }

/* Buttons */
.btn-primary, .btn-large {
    display: inline-block;
    background-color: var(--primary);
    color: var(--text-light);
    padding: 12px 24px;
    border-radius: 5px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}
.btn-primary:hover, .btn-large:hover { background-color: var(--primary-hover); }
.btn-large {
    padding: 15px 40px;
    font-size: 1.1rem;
    border-radius: 8px;
}
.btn-large span { margin-left: 10px; }

/* Header */
.site-header {
    background: #fff;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    width: 100%;
}
/* Las filas del header se extienden de borde a borde pero el contenido tiene padding lateral */
.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;   /* padding lateral fijo, no usa .container */
    border-bottom: 1px solid #d1d9e0;
}
.header-social {
    display: flex;
    gap: 12px;
    align-items: center;
}
.header-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;          /* todos los iconos con la misma caja */
}
.header-social a svg {
    width: 32px;
    height: 32px;
    display: block;
}
.header-bottom {
    display: flex;
    justify-content: flex-end;
    padding: 30px 40px;
}
.logo img {
    height: 95px;
    width: auto;
}
.main-nav ul {
    list-style: none;
    display: flex;
    gap: 40px;
    margin: 0;
    padding: 0;
}
.main-nav a {
    font-size: 0.9rem;
    font-weight: 500;      /* más delgado, como en el diseño original */
    color: var(--dark-blue);
    display: flex;
    align-items: center;
    gap: 5px;
    letter-spacing: 0.01em;
    transition: color 0.2s;
}
.main-nav a:hover,
.main-nav a.nav-active {
    color: var(--primary);
}

/* Hero Section */
.hero-section {
    background-size: cover;
    background-position: center;
    padding: 100px 0;
    position: relative;
}
.hero-section::before {
    content: '';
    position: absolute;
    top:0; left:0; width:100%; height:100%;
    background: rgba(0,0,0,0.4);
}
.hero-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
    flex-wrap: wrap;
    gap: 40px;
}
.hero-content h1 {
    font-size: 3.8rem;
    font-weight: 800;
    color: var(--text-light);
    margin: 0 0 20px;
    line-height: 1.05;
    max-width: 550px;
}
.hero-content p {
    color: var(--text-light);
    font-size: 1rem;
    font-weight: 700;
    max-width: 480px;
    line-height: 1.5;
}
/* Tarjeta del formulario del Hero */
.hero-form-card {
    width: 100%;
    max-width: 340px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
    flex-shrink: 0;
    background-color: #222831; /* Fondo gris oscuro para el cuerpo */
    padding: 0;
}
.hero-form-card > h3 {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    padding: 24px 20px;
    text-align: center;
    line-height: 1.3;
    background-color: #133761; /* Azul corporativo exacto */
}
/* Form padding inside card */
.hero-form-card .wpcf7,
.hero-form-card form.mts-form {
    padding: 20px 22px;
}
/* Form inside Hero */
.mts-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
/* Labels encima de los campos */
.mts-field label {
    display: block;
    color: #c0cfe0;
    font-size: 0.75rem;       /* más pequeño */
    font-weight: 600;
    margin-bottom: 3px;
}
.mts-field input[type="text"],
.mts-field input[type="tel"],
.mts-field input[type="email"],
.mts-field textarea {
    width: 100%;
    padding: 7px 16px;        /* menos alto */
    border: none;
    border-radius: 50px;
    background: #fff;
    font-family: var(--font-main);
    font-size: 0.82rem;
    color: #333;
    outline: none;
    box-sizing: border-box;
    display: block;
}
.mts-field textarea {
    border-radius: 8px;
    resize: vertical;
    min-height: 60px;         /* menos alto */
    padding: 8px 12px;
    font-size: 0.82rem;
}
/* Select personalizado */
.mts-select-wrap {
    position: relative;
    background: #fff;
    border-radius: 50px;
    overflow: hidden;
}
.mts-select-wrap select {
    width: 100%;
    padding: 7px 36px 7px 16px;   /* más compacto */
    border: none;
    background: transparent;
    font-family: var(--font-main);
    font-size: 0.82rem;
    color: #555;
    appearance: none;
    -webkit-appearance: none;
    outline: none;
    cursor: pointer;
}
.mts-select-wrap::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 18px;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #555;
    pointer-events: none;
}
/* Checkbox */
.mts-checkbox > label {
    display: block;
    color: #c0cfe0;
    font-size: 0.72rem;       /* más pequeño */
    font-weight: 600;
    margin-bottom: 4px;
}
.mts-checkbox-row {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}
.mts-checkbox-row input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: var(--primary);
    width: 13px;
    height: 13px;
    cursor: pointer;
}
.mts-checkbox-row span:not(.wpcf7-list-item), 
.mts-checkbox-row .wpcf7-list-item-label {
    color: #a0b4c8;
    font-size: 0.68rem;       /* más pequeño */
    line-height: 1.3;
}
.wpcf7-list-item { margin: 0; }
.wpcf7-form-control-wrap { display: block; }
.wpcf7 form .wpcf7-response-output { margin: 1em 0 0; font-size: 0.8rem; border-radius: 4px; }
/* Submit button */
.btn-form-submit {
    width: 100%;
    padding: 11px;
    background-color: #133761;
    color: #fff;
    font-family: var(--font-main);
    font-size: 0.88rem;
    font-weight: 700;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 4px;
    letter-spacing: 0.01em;
}
.btn-form-submit:hover {
    background-color: var(--primary-hover);
}
.form-footer-note {
    color: #7a8fa0;
    font-size: 0.55rem;
    text-align: center;
    margin: -8px 0 0; /* Contrarresta el gap de flexbox para pegarlo al botón */
    line-height: 1.4;
}

/* Oficinas Section */
.oficinas-section {
    background-color: var(--dark-blue);
    padding: 60px 0 40px;
    text-align: center;
}
.oficinas-section .section-heading {
    padding: 0 20px;
    margin-bottom: 40px;
}
/* Locales Section */
.locales-section {
    background-color: #c5cdd4;
    padding: 60px 0 40px;
    text-align: center;
}
.locales-section .section-heading {
    padding: 0 20px;
    margin-bottom: 40px;
}
.locales-section .section-heading h2 { color: var(--dark-blue); }
.locales-section .section-heading p  { color: #444; }

/* Carousel slides: efecto de superposición (escala controlada por JS) */
.swiper-oficinas,
.swiper-locales {
    width: 100%;
    overflow: visible;
    padding: 80px 0;      /* espacio vertical generoso para el slide escalado */
    position: relative;
}
/* El wrapper también debe permitir el desbordamiento vertical */
.swiper-oficinas .swiper-wrapper,
.swiper-locales  .swiper-wrapper {
    overflow: visible;
    align-items: center;  /* centra verticalmente todos los slides */
}

.swiper-oficinas .swiper-slide,
.swiper-locales  .swiper-slide {
    width: 360px !important;
    transition: transform 0.45s ease, opacity 0.45s ease;
    position: relative;
}

.swiper-oficinas .swiper-slide img,
.swiper-locales  .swiper-slide img {
    width: 100%;
    height: 260px;            /* altura base; JS la sobreescribe por slide */
    object-fit: cover;
    display: block;
    border-radius: 14px;
    pointer-events: none;
    transition: height 0.45s ease, box-shadow 0.45s ease;
}
.swiper-oficinas .swiper-slide-active img,
.swiper-locales  .swiper-slide-active img {
    box-shadow: 0 14px 45px rgba(0,0,0,0.5);
}

/* Panel de info debajo del carousel */
.carousel-info {
    padding: 28px 20px 10px;
    text-align: center;
    color: #fff;
}
.carousel-info h4 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 10px;
    color: #fff;
    line-height: 1.4;
}
.carousel-info p {
    font-size: 0.88rem;
    color: #ccd6e0;
    margin: 0 auto 18px;
    max-width: 500px;
    line-height: 1.6;
}
.locales-section .carousel-info h4 { color: var(--dark-blue); }
.locales-section .carousel-info p   { color: #555; }

/* Botón Ver más del carousel */
.btn-carousel {
    display: inline-block;
    background-color: var(--primary);
    color: #fff;
    padding: 12px 40px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    transition: background 0.3s;
}
.btn-carousel:hover { background-color: var(--primary-hover); }

/* Features Section */
.features-section {
    padding: 70px 0 60px;
    background: #fff;
}
/* Las líneas azules van en el GRID, no en cada item, para que siempre sean de altura completa */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
    margin-bottom: 50px;
    background-image:
        linear-gradient(#29b5e8, #29b5e8),
        linear-gradient(#29b5e8, #29b5e8),
        linear-gradient(#29b5e8, #29b5e8);
    background-position: 25% 0px, 50% 0px, 75% 0px;
    background-repeat: no-repeat;
    background-size: 1.5px 270px;
}
.feature-item {
    padding: 0px 20px 0px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0px;
}
/* Ya no necesitamos border-left en los items individuales */
.feature-item--sep {
    border-left: none;
}
.icon-circle {
    width: 100%;
    height: 270px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.icon-circle img {
    width: 90px;
    height: auto;
    object-fit: contain;       /* la imagen se ajusta sin recortarse */
    display: block;
}
.feature-item p {
    font-size: 0.88rem;
    font-weight: 700;
    color: #333;
    line-height: 1.6;
    margin: 0;
    text-align: center;
}

/* Botón CTA features */
.btn-cta-features {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--primary);
    color: #fff;
    padding: 16px 48px;
    border-radius: 50px;
    font-size: 1.05rem;
    font-weight: 700;
    transition: background 0.3s, transform 0.2s;
    text-decoration: none;
}
.btn-cta-features span {
    font-size: 2.2rem;
    font-weight: 400;
    line-height: 1;
    color: #000;
}
.btn-cta-features:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}
.cta-container {
    text-align: center;
    padding-top: 10px;
}

/* Footer */
.site-footer {
    background-color: var(--footer-bg);
    color: #fff;
    padding: 40px 0;
}
.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}
.footer-logo img {
    height: 140px;
    width: auto;
}
.footer-social { text-align: right; }
.footer-social p { margin: 0 0 10px; font-size: 1rem; font-weight: 700; opacity: 1; }
.social-icons {
    display: flex;
    gap: 16px;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 15px;
}
.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.75);
    transition: color 0.3s;
}
.social-icons a svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}
.social-icons a:hover { color: #fff; }
.footer-link a { color: #fff; font-weight: 700; }

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    background-color: rgba(100, 100, 100, 0.65);
    width: 75px;
    height: 80px;
    border-radius: 12px 0 0 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: width 0.3s;
}
.whatsapp-float:hover {
    width: 76px;
    transform: translateY(-50%);
}
.whatsapp-float img,
.whatsapp-float svg { width: 54px; height: 54px; }

/* Responsive */
@media (max-width: 768px) {
    .header-top, .header-bottom { padding-left: 20px; padding-right: 20px; }
    .header-bottom { flex-direction: column; gap: 15px; padding: 20px; }
    .main-nav ul { flex-wrap: wrap; justify-content: center; gap: 15px; }
    .hero-content h1 { font-size: 2.5rem; }
    .features-grid { 
        grid-template-columns: repeat(2, 1fr); 
        background: none; /* Remove vertical lines on mobile to avoid overlap */
    }
    .footer-inner { flex-direction: column; text-align: center; }
    .footer-social { text-align: center; }
    .social-icons { justify-content: center; }
    
    /* WhatsApp Mobile */
    .whatsapp-float { width: 55px; height: 60px; border-radius: 8px 0 0 8px; }
    .whatsapp-float:hover { width: 56px; }
    .whatsapp-float img, .whatsapp-float svg { width: 38px; height: 38px; }
}
@media (max-width: 480px) {
    .features-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════
   INTERNA OFICINAS
═══════════════════════════════════════ */

/* Hero */
.ofi-hero {
    background-color: #fff;
    color: var(--dark-blue);
    padding: 60px 0 50px;
    text-align: center;
}
.ofi-hero .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.ofi-hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin: 0 0 10px;
    line-height: 1.2;
    color: var(--dark-blue);
}
.ofi-hero p {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-blue);
    max-width: 900px;
    line-height: 1.6;
    margin: 0;
}

/* Listings section */
.ofi-listings {
    padding: 0;
    background: transparent;
}

/* Individual property card wrapper */
.ofi-prop {
    padding: 60px 0;
    display: block;
}

/* Alternate Background Colors */
.ofi-prop:nth-child(odd) {
    background: var(--dark-blue);
    color: #fff;
}
.ofi-prop:nth-child(odd) .ofi-prop__title,
.ofi-prop:nth-child(odd) .ofi-prop__desc,
.ofi-prop:nth-child(odd) .ofi-prop__meta,
.ofi-prop:nth-child(odd) .ofi-meta-item strong {
    color: #fff;
}

.ofi-prop:nth-child(even) {
    background: #d9d9d9;
    color: #333;
}
.ofi-prop:nth-child(even) .ofi-prop__title,
.ofi-prop:nth-child(even) .ofi-meta-item strong {
    color: var(--dark-blue);
}
.ofi-prop:nth-child(even) .ofi-prop__desc {
    color: #444;
}

/* The grid container inside the full-width wrapper */
.ofi-prop .container {
    display: grid;
    grid-template-columns: 7fr 3fr;
    gap: 50px;
    align-items: center;
}

/* Reversing layout for odd/even rows */
.ofi-prop--reverse .container {
    direction: rtl;
}
.ofi-prop--reverse .container > * {
    direction: ltr;
}

/* Gallery side */
.ofi-prop {
    position: relative; /* Para posicionar el badge al borde */
}
.ofi-prop__gallery {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.ofi-badge {
    position: absolute;
    top: 0;
    left: 0;
    background: #25a244;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 6px 16px;
    border-radius: 0 4px 4px 0;
    z-index: 5;
    text-transform: uppercase;
}

.ofi-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    width: 100%;
}
.ofi-grid-item {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 12px;
}
.ofi-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.ofi-gallery-pagination {
    position: relative;
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 8px;
}
.swiper-oficinas-galeria .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
    opacity: 0.5;
    margin: 0 !important;
}
.ofi-prop:nth-child(even) .swiper-oficinas-galeria .swiper-pagination-bullet {
    background: var(--dark-blue);
}
.swiper-oficinas-galeria .swiper-pagination-bullet-active {
    opacity: 1;
}


/* Info side */
.ofi-prop__info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Text alignment */
.ofi-prop:nth-child(odd) .ofi-prop__info {
    text-align: right;
    align-items: flex-end;
}
.ofi-prop:nth-child(odd) .btn-ofi-cta {
    align-self: flex-end;
}
.ofi-prop:nth-child(even) .ofi-prop__info {
    text-align: left;
    align-items: flex-start;
}
.ofi-prop__title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--dark-blue);
    margin: 0;
    line-height: 1.3;
}
.ofi-prop__desc {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.7;
}
.ofi-prop__desc p { margin: 0 0 10px; }
.ofi-prop__meta {
    display: flex;
    flex-direction: column; /* Stack vertically like the design */
    gap: 4px;
    font-size: 1.1rem;
    font-weight: 500;
}
.ofi-meta-item strong { 
    color: var(--dark-blue); 
    font-weight: 800;
}
.ofi-prop:nth-child(odd) .ofi-meta-item strong {
    color: var(--primary); /* Cyan highlights */
}

.btn-ofi-cta {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    font-weight: 800;
    font-size: 1.2rem;
    padding: 16px 40px;
    border-radius: 6px;
    text-decoration: none;
    align-self: flex-start;
    transition: background 0.3s;
    margin-top: 10px;
    white-space: nowrap;
    text-align: center;
}
.btn-ofi-cta:hover { background: var(--primary-hover); }

/* Responsive */
@media (max-width: 900px) {
    .ofi-prop .container {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .ofi-prop--reverse { direction: ltr; }
}
@media (max-width: 600px) {
    .ofi-hero h1 { font-size: 1.8rem; }
    .ofi-thumb { width: calc(33.33% - 6px); }
}
