/*
Theme Name: Estrada Real Estate
Theme URI: https://estradarealestate.es
Description: Tema inmobiliario premium para Estrada Real Estate.
Author: Marina Berenguer
Version: 1.0
*/


body {
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #262626;
    background: #ffffff;
}

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

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

/* Layout genérico */

.estrada-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem 4rem;
}

/* HEADER */

.estrada-header {
    position: sticky;
    top: 0;
    z-index: 900;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid #f0e4d7;
}

.estrada-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.9rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.estrada-logo img {
    height: 40px;
}

.estrada-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
    font-size: 0.9rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.estrada-nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

.estrada-nav a {
    position: relative;
    padding-bottom: 0.2rem;
}

.estrada-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    background: #c79b6b;
    transition: width 0.2s ease;
}

.estrada-nav a:hover::after,
.estrada-nav .current-menu-item > a::after {
    width: 100%;
}

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

.estrada-btn-outline {
    border-radius: 999px;
    border: 1px solid #c79b6b;
    padding: 0.5rem 1.4rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    background: transparent;
    cursor: pointer;
}

.estrada-btn-outline:hover {
    background: #c79b6b;
    color: #ffffff;
}

/* HERO HOME */

.estrada-hero {
    padding: 5rem 1rem 4rem;
}

.estrada-hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 3rem;
    align-items: center;
}

.estrada-hero-kicker {
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #c79b6b;
    margin-bottom: 0.75rem;
}

.estrada-hero h1 {
    font-size: 2.4rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin: 0 0 1rem;
}
fid
.estrada-hero p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #666;
    max-width: 32rem;
}

.estrada-hero-secondary {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #999;
    margin-top: 1.5rem;
}

.estrada-hero-card {
    border-radius: 24px;
    background: #f6eee4;
    padding: 2rem;
    box-shadow: 0 14px 30px rgba(0,0,0,0.06);
}

/* GRID de ventajas home */

.estrada-highlights {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem 3rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.estrada-highlight-card {
    border-radius: 18px;
    background: #faf6f0;
    padding: 1.5rem 1.6rem;
}

.estrada-highlight-card h3 {
    font-size: 0.9rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin: 0 0 0.7rem;
}

.estrada-highlight-card p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

/* FILTROS LISTADO */

.estrada-page-title {
    font-size: 1.4rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.estrada-filters {
    background: #f5ebdf;
    border-radius: 16px;
    padding: 1.5rem;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    align-items: flex-end;
    margin-bottom: 2rem;
}

.estrada-filters label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: #777;
    display: block;
    margin-bottom: 0.4rem;
}

.estrada-filters select {
    width: 100%;
    border-radius: 999px;
    border: 1px solid #e2d4c3;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    background: #fff;
}

.estrada-filters button[type="submit"] {
    width: 100%;
    border-radius: 999px;
    background: #c79b6b;
    border: none;
    color: #fff;
    padding: 0.7rem 1.4rem;
    font-size: 0.85rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    cursor: pointer;
    font-weight: 600;
}

/* fila chips */

.estrada-filters-chips {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
    margin-top: 0.5rem;
}

.estrada-filters-chips-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: #777;
    margin-right: 0.5rem;
}

.estrada-chip {
    display: inline-flex;
    align-items: center;
}

.estrada-chip input {
    display: none;
}

.estrada-chip span {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    border-radius: 999px;
    padding: 0.25rem 0.7rem;
    font-size: 0.8rem;
    background: #fdf7f0;
    border: 1px solid #e2d4c3;
    cursor: pointer;
}

.estrada-chip i {
    font-size: 0.8rem;
}

.estrada-chip input:checked + span {
    background: #c79b6b;
    border-color: #c79b6b;
    color: #fff;
}

/* Cards inmuebles */

.estrada-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.estrada-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}

.estrada-card img {
    width: 100%;
    height: 230px;
    object-fit: cover;
}

.estrada-card-body {
    padding: 1.25rem 1.5rem 1.4rem;
}

.estrada-card-title {
    font-size: 1rem;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    margin-bottom: 0.35rem;
}

.estrada-card-location {
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 0.7rem;
}

.estrada-card-price {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.9rem;
}

.estrada-features-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.4rem;
}

.estrada-feature-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: #f5f5f5;
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
}

.estrada-feature-pill i {
    margin-right: 0.25rem;
}

/* Paginación sencilla */

.estrada-pagination {
    margin-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
}

.estrada-pagination a,
.estrada-pagination span {
    margin: 0 0.25rem;
}

/* Single inmueble */

.single-inmueble-main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1rem 4rem;
}

.single-inmueble-header {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1.5rem;
}

.single-inmueble-header h1 {
    font-size: 1.6rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin: 0;
}

.single-inmueble-meta {
    font-size: 0.9rem;
    color: #777;
}

.single-inmueble-price {
    font-size: 1.4rem;
    font-weight: 700;
    margin-top: 0.5rem;
}

.single-inmueble-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.1fr);
    gap: 2rem;
}

/* Galería slider single inmueble */
/* Galería slider single inmueble */
.single-inmueble-gallery {
    position: relative;
    margin-bottom: 0.75rem;   /* igual que antes */
}

/* Contenedor de las imágenes: mismo ancho, con el borde redondeado */
.single-inmueble-slider {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
}

/* Por defecto las slides no se ven */
.single-inmueble-slide {
    display: none;
}

/* Solo la slide activa se muestra */
.single-inmueble-slide.is-active {
    display: block;
}

/* La imagen como siempre: ancho completo, alto automático */
.single-inmueble-slide img {
    width: 100%;
    height: auto;
    display: block;
}


/* La imagen se comporta como antes: ancho completo, alto automático */
.single-inmueble-slide img {
    width: 100%;
    height: auto;
    display: block;
}

/* Flechas de navegación, pegadas a la foto */
.single-inmueble-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: rgba(0,0,0,0.45);
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    z-index: 5;
}

.single-inmueble-nav:hover {
    background: rgba(0,0,0,0.7);
}

.single-inmueble-nav-prev {
    left: 10px;
}

.single-inmueble-nav-next {
    right: 10px;
}

/* Puntos pegados a la parte baja de la foto */
.single-inmueble-dots {
    position: absolute;
    left: 50%;
    bottom: 10px;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 5;
}

.single-inmueble-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    border: none;
    background: rgba(255,255,255,0.5);
    padding: 0;
    cursor: pointer;
}

.single-inmueble-dot.is-active {
    background: #ffffff;
    width: 12px;
}

/* Flechas navegación */
.single-inmueble-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: rgba(0,0,0,0.45);
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    z-index: 5;
}

.single-inmueble-nav:hover {
    background: rgba(0,0,0,0.7);
}

.single-inmueble-nav-prev {
    left: 12px;
}

.single-inmueble-nav-next {
    right: 12px;
}

/* Puntos inferiores */
.single-inmueble-dots {
    position: absolute;
    left: 50%;
    bottom: 12px;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 5;
}

.single-inmueble-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    border: none;
    background: rgba(255,255,255,0.5);
    padding: 0;
    cursor: pointer;
}

.single-inmueble-dot.is-active {
    background: #ffffff;
    width: 16px;
}


.single-inmueble-section-title {
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.single-inmueble-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

/* Formulario contacto inmueble */

.estrada-contact-box {
    border-radius: 16px;
    background: #faf6f0;
    padding: 1.5rem 1.6rem;
}

.estrada-contact-box h2 {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    margin-top: 0;
    margin-bottom: 0.8rem;
}

.estrada-contact-box p {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 1rem;
}

.estrada-form-group {
    margin-bottom: 0.75rem;
}

.estrada-form-group label {
    display: block;
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
}

.estrada-form-group input,
.estrada-form-group textarea {
    width: 100%;
    border-radius: 10px;
    border: 1px solid #ddd0c3;
    padding: 0.55rem 0.7rem;
    font-size: 0.9rem;
    font-family: inherit;
}

.estrada-form-group textarea {
    min-height: 80px;
}

.estrada-btn-primary {
    border-radius: 999px;
    border: none;
    background: #c79b6b;
    color: #fff;
    padding: 0.65rem 1.6rem;
    font-size: 0.85rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    cursor: pointer;
    font-weight: 600;
}

.estrada-alert {
    padding: 0.7rem 0.9rem;
    border-radius: 10px;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.estrada-alert-success {
    background: #e5f7ed;
    color: #25633d;
}

.estrada-alert-error {
    background: #fdeceb;
    color: #b04239;
}

/* FOOTER */

.estrada-footer {
    border-top: 1px solid #f0e4d7;
    padding: 2rem 1rem;
    background: #ffffff;
}

.estrada-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #777;
}

.estrada-footer-col strong {
    font-weight: 600;
}

/* RESPONSIVE */

@media (max-width: 980px) {
    .estrada-hero-inner,
    .single-inmueble-layout {
        grid-template-columns: 1fr;
    }
    .estrada-highlights {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .estrada-header-inner {
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 0.8rem;
    }
    .estrada-nav {
        flex-wrap: wrap;
        gap: 1rem;
    }
    .estrada-nav ul {
        gap: 1rem;
        flex-wrap: wrap;
    }
    .estrada-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .estrada-highlights {
        grid-template-columns: 1fr;
    }
}
/* ===========================
   ARREGLOS RESPONSIVE MÓVIL
   =========================== */

@media (max-width: 768px) {

    .estrada-filters {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 20px;
    }

    .estrada-filters select {
        color: #000 !important;
        font-size: 15px;
        padding: 12px 14px;
        border-radius: 40px;
        border: 1px solid #d6c4b3;
        background: #fff;
    }

    .estrada-filters button {
        width: 100%;
        padding: 14px 24px;
        font-size: 16px;
        border-radius: 40px;
        background: #c49d75;
        color: white;
        border: none;
        display: block;
        text-align: center;
    }

    .estrada-filters button span,
    .estrada-filters button {
        white-space: nowrap;
    }
} /* ← ESTA ES LA LLAVE QUE FALTABA */

/* ============================
   HERO VIDEO ESTRADA
============================ */

.estrada-video-hero {
    position: relative;
    width: 100%;
    height: 75vh;
    overflow: hidden;
}

.estrada-video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.estrada-video-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    z-index: 2;
}

/* ============================
   HERO VIDEO LOGO VERSION
============================ */

.estrada-video-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    text-align: center;
}

.estrada-video-logo img {
    width: 420px;    /* puedes ajustar */
    max-width: 85%;
    height: auto;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.4));
}

@media (max-width: 768px) {
    .estrada-video-logo img {
        width: 260px;
    }
}


@media (max-width: 768px) {
    .estrada-video-text {
        font-size: 1.8rem;
        padding: 0 20px;
    }
}