/* CSS for IVA Landing */

.banner-campana {
    /*width: 100%;*/
    /* Reducido para mostrar parte de la siguiente sección */
    display: flex;
    flex-direction: column;
    /*align-items: center;*/
    text-align: center;
    box-sizing: border-box;
    /*background-image: url(../images/slider1.jpg);*/
    /* Al usar 100% 100% forzamos a que abarque todo el ancho y todo el alto, sin recortar, aunque se estirará un poco */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.banner-logo {
    width: 100%;
    max-width: 200px;
    /* Un poco más pequeño que antes */
    margin-top: 20px;
    margin-bottom: auto;
}

@media (max-width: 1200px) {
    .banner-logo {
        max-width: 150px;
        /* Un poco más pequeño que antes */
        margin-top: 15px;
        margin-bottom: auto;
    }
}

 .banner-image2 {
        display: none;
    }

@media (max-width: 768px) {
    .banner-image1 {
        display: none;
    }
    .banner-image2 {
        display: block;
    }
    .banner-campana {
        /*background-image: url(../images/slider2.jpg);*/
        height: auto;
        background-size: contain !important;
        min-height: 500px;
        width: auto;
        /* Lo hacemos más alto en móvil (casi cuadrado) */
        background-size: 100% 100%;
        /* Sigue forzándose para no recortar texto */
        padding-top: 25px;
    }

    .banner-logo {
        max-width: 130px;
        /* Reducido en celular también para que sea proporcional */
    }
}

@media (max-width: 430px) {
    .banner-logo {
        max-width: 100px;
        margin-top: -15px;
    }

}

.banner-texto {
    font-family: Arial, sans-serif;
    color: #999;
    font-weight: 400;
    font-size: 1.5rem;
    margin-bottom: auto;
    /* Mantiene el texto equilibrado en el centro del espacio sobrante */
}

/* 1. Header Banner */
.iva-banner-hero {
    background-color: #005cb9;
    padding: 3rem 0 1rem 0;
    color: white;
    font-family: Montserrat, sans-serif;
}

.banner-top-text {
    margin-bottom: 2rem;
}

.iva-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 0.2rem;
}

.iva-subtitle {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
}

.iva-paragraph {
    font-size: 0.85rem;
    line-height: 1.6;
    font-weight: 500;
    text-align: left;
    margin-bottom: 0;
}

/* 2. Video Container (overlaps banner) */
.banner-row {
    margin-bottom: -150px;
    z-index: 10;
    position: relative;
}

.spacer-video {
    height: 180px;
    background: transparent;
}

.video-container-wrapper {
    display: flex;
    justify-content: center;
}

.video-placeholder {
    width: 280px;
    height: 480px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 2rem;
}

.play-icon-container {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

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

.video-text-content h3 {
    margin: 0;
    font-size: 1.3rem;
    color: #333;
    font-weight: 700;
}

.video-text-content h3 span {
    color: #005cb9;
    font-style: italic;
    font-weight: 700;
}

.video-text-content p {
    margin: 5px 0 0 0;
    color: #999;
    font-size: 1rem;
    font-weight: 500;
}

@media (max-width: 768px) {
    .banner-row {
        margin-bottom: 0;
    }

    .video-container-wrapper {
        margin-bottom: 2rem;
    }

    .spacer-video {
        height: 2rem;
    }

    .iva-paragraph {
        text-align: center;
        margin-bottom: 2rem;
        padding: 0 1rem;
    }
}

/* Títulos Principales */
.faq-title {
    color: #0056b3;
    font-weight: 700;
    font-size: 36px;
    text-align: center;
}

.faq-subtitle {
    color: #333;
    letter-spacing: 1.5px;
    font-weight: 600;
    font-size: 20px;
    text-align: center;
}

/* Contenedor del Acordeón Limpio */
.accordion-clean {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid #eee;
    /* Línea divisoria fina como en la imagen */
    padding: 10px 0;
}

.faq-button {
    width: 100%;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    padding: 15px 0;
    color: #333;
    /* Color por defecto */
    font-weight: 700;
    font-size: 1.05rem;
    transition: color 0.3s ease;
    outline: none !important;
}

/* Cuando está abierto (NO tiene la clase .collapsed) */
.faq-button:not(.collapsed) {
    color: #0056b3;
    /* Azul cuando está activo */
}

.faq-button:hover {
    text-decoration: none;
    color: #0056b3;
}

/* Flechas (Iconos) */
.toggle-icon {
    font-size: 0.9rem;
    color: #0056b3;
    transition: transform 0.3s ease;
}

/* Rotación de flecha cuando la pregunta está abierta */
.faq-button:not(.collapsed) .toggle-icon {
    transform: rotate(180deg);
}

/* Transiciones de apertura/cierre usando CSS Grid */
.collapse {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s ease-in-out;
    overflow: hidden;
}

.collapse.show {
    grid-template-rows: 1fr;
}

/* Cuerpo de la respuesta */
.collapse .faq-body {
    min-height: 0;
    padding: 0 0 0 22px;
    /* Alineado con el texto de la pregunta numerada */
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
    transition: padding 0.3s ease-in-out;
}

.collapse.show .faq-body {
    padding-bottom: 20px;
}

.iva-projects-header {
    padding: 3rem 1rem 1rem 1rem;
    text-align: center;
    font-family: Montserrat, sans-serif;
}

.iva-projects-header h2 {
    color: #005cb9;
    font-weight: 700;
    font-size: 1.8rem;
    margin-bottom: 0;
}

.iva-projects-header p {
    color: #333;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 2rem;
    letter-spacing: 1px;
}

/* Contenedor principal de la cabecera */
.iva-projects-header h2 {
    color: #004a99;
    font-weight: 800;
    margin-bottom: 10px;
}

.iva-projects-header .subtitle {
    color: #777;
    font-size: 14px;
    letter-spacing: 1px;
    margin-bottom: 30px;
}

/* El "fondo" de la barra de filtros */
.region-pills-container {
    display: flex;
    justify-content: center;
    padding: 10px;
}

.region-pills {
    background-color: #e9f2f9;
    /* Celeste muy claro de fondo */
    border-radius: 50px;
    padding: 5px;
    display: inline-flex;
    gap: 5px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.03);
}

/* Estilo de cada botón (Pill) */
.region-pill {
    border: none;
    background: transparent;
    padding: 10px 25px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    color: #444;
    transition: all 0.3s ease;
    cursor: pointer;
    text-transform: uppercase;
}

/* Estilo del botón ACTIVO (el azul de la foto) */
.region-pill.active {
    background-color: #0056b3;
    /* Azul Pocuro */
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 86, 179, 0.3);
}

.region-pill:hover:not(.active) {
    background-color: rgba(0, 0, 0, 0.05);
}

.region-select-mobile {
    display: none;
}

/* Responsive para celulares (Ocultamos botones y mostramos select) */
@media (max-width: 768px) {
    .desktop-pills {
        display: none !important;
    }

    .region-select-mobile {
        display: block;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }

    .custom-region-select {
        width: 100%;
        padding: 12px 40px 12px 20px;
        border-radius: 50px;
        background-color: #e9f2f9;
        border: none;
        color: #0056b3;
        font-weight: 700;
        font-size: 14px;
        font-family: 'Montserrat', sans-serif;
        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;
        background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%230056b3%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
        background-repeat: no-repeat;
        background-position: right 15px center;
        background-size: 12px auto;
        box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.03);
        outline: none;
        text-transform: uppercase;
        cursor: pointer;
    }
}

.proyecto-item {
    transition: opacity 0.4s ease;
}

/* ===== PROJECT CARDS ===== */

.property-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    overflow: visible;
    max-width: 380px;
    height: calc(100% - 45px);
    /* Ensure uniform height across all cards */
    margin: 0 auto 45px auto;
    /* Aumenté el margen inferior para los botones que flotan */
    font-family: 'Montserrat', sans-serif;
    display: flex;
    flex-direction: column;
}

.card-image img {
    width: 100%;
    height: 230px;
    /* Fixed height to standardize images */
    object-fit: cover;
    /* Ensures the image fills the space without distortion */
    border-radius: 12px;
    /* Rounded corners considering the padding around it */
    display: block;
}

.card-content {
    padding: 25px 20px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.location {
    font-size: 14px;
    letter-spacing: 1px;
    color: #777;
    margin: 0;
    text-transform: uppercase;
}

.project-name {
    color: #004a99;
    font-size: 24px;
    font-weight: 800;
    margin: 5px 0 20px;
    text-transform: uppercase;
}

.details {
    font-size: 14px;
    color: #444;
    margin-bottom: 25px;
}

.separator {
    margin: 0 10px;
    color: #ccc;
}

.price-container {
    margin-bottom: 30px;
    margin-top: auto;
}

.price-label {
    font-size: 11px;
    font-weight: bold;
    color: #004a99;
    vertical-align: middle;
}

.price-value {
    font-size: 28px;
    font-weight: 800;
    color: #004a99;
    margin-left: 10px;
}

.card-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: -45px;
    /* Los botones sobresalen hacia abajo */
    padding: 0 20px;
}

.btn-pocuro {
    flex: 1 1 50% !important;
    width: 100% !important;
    padding: 14px 5px !important;
    border-radius: 30px !important;
    text-decoration: none !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    transition: transform 0.2s;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

.btn-pocuro:hover {
    transform: translateY(-2px);
    color: #fff;
}

.btn-primary-custom {
    background-color: #0052a5;
    color: #fff;
}

.btn-secondary-custom {
    background-color: #7fb4e3;
    color: #fff;
}

/* Ajuste para que el contenedor de la fila no corte los botones que flotan */
.row-proyectos {
    padding-bottom: 60px;
}

/* Nuevos estilos Cyber */
.badge-dcto {
    position: absolute;
    top: 35px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #0056b3;
    color: white;
    font-weight: 800;
    font-size: 15px;
    padding: 6px 15px;
    border-radius: 20px;
    z-index: 2;
    white-space: nowrap;
}

.price-container-cyber {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    margin-top: auto;
    padding: 0 5px;
}

.price-antes {
    text-align: center;
    display: flex;
    flex-direction: column;
}

.price-label-antes {
    font-size: 11px;
    font-weight: 700;
    color: #555;
    text-decoration: line-through;
    margin-bottom: -3px;
}

.price-value-antes {
    font-size: 22px;
    font-weight: 800;
    color: #000;
    text-decoration: line-through;
}

.price-cyber {
    text-align: center;
    display: flex;
    flex-direction: column;
}

.price-label-cyber {
    font-size: 12px;
    font-weight: 800;
    color: #0056b3;
    margin-bottom: -3px;
}

.price-value-cyber {
    font-size: 28px;
    font-weight: 800;
    color: #0056b3;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.info-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 16px;
    height: 16px;
    background-color: #0056b3;
    color: white;
    border-radius: 50%;
    font-size: 11px;
    font-weight: bold;
    font-style: italic;
    font-family: serif;
}

/* Cyber Footer overrides */
.cyber-footer {
    background-color: #005cb9;
    padding: 30px 20px;
    margin-top: 30px;
}

.footer-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.footer-logo {
    height: 35px;
    width: auto;
}

.footer-text {
    color: #ffffff;
    font-size: 12px;
    margin: 0;
    text-align: left;
}

.footer-text a {
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
}

.footer-text a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        gap: 15px;
    }
    .footer-text {
        text-align: center;
    }
}