html,
body {
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
}

/* Parche para evitar desbordamientos de elementos hijos */
section,
.hero,
.info-container,
.gallery-container,
.planos-container {
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
    /* Esto corta las animaciones que vienen de los lados */
    box-sizing: border-box;
}

/* Animaciones de carga */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Estado inicial para elementos que se animarán */
[class*="animate-"] {
    opacity: 0;
}

/* Hero section se anima inmediatamente */
.hero [class*="animate-"] {
    opacity: 1;
}

/* Activar animaciones solo cuando son visibles */
.is-visible.animate-fadeInUp {
    animation: fadeInUp 0.8s ease-out;
    animation-fill-mode: both;
}

.is-visible.animate-fadeInLeft {
    animation: fadeInLeft 0.8s ease-out;
    animation-fill-mode: both;
}

.is-visible.animate-fadeInRight {
    animation: fadeInRight 0.8s ease-out;
    animation-fill-mode: both;
}

.is-visible.animate-fadeIn {
    animation: fadeIn 0.8s ease-out;
    animation-fill-mode: both;
}

.is-visible.animate-scaleIn {
    animation: scaleIn 0.6s ease-out;
    animation-fill-mode: both;
}

.is-visible.animate-slideDown {
    animation: slideDown 0.7s ease-out;
    animation-fill-mode: both;
}

/* Delays para efectos en cascada */
.is-visible.delay-100 {
    animation-delay: 0.1s;
}

.is-visible.delay-200 {
    animation-delay: 0.2s;
}

.is-visible.delay-300 {
    animation-delay: 0.3s;
}

.is-visible.delay-400 {
    animation-delay: 0.4s;
}

.is-visible.delay-500 {
    animation-delay: 0.5s;
}

.is-visible.delay-600 {
    animation-delay: 0.6s;
}

.is-visible.delay-700 {
    animation-delay: 0.7s;
}

.is-visible.delay-800 {
    animation-delay: 0.8s;
}

/* Respetar preferencias de movimiento reducido */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Mejorar rendimiento de animaciones */
.animate-fadeInUp,
.animate-fadeInLeft,
.animate-fadeInRight,
.animate-fadeIn,
.animate-scaleIn,
.animate-slideDown {
    will-change: transform, opacity;
}

/* Etiqueta flotante para los campos del formulario */
.form__label {
    font-family: 'Montserrat', Arial, sans-serif;
    color: #667366;
    font-size: 0.75rem;
    font-weight: 600;
    position: absolute;
    top: 8px;
    left: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s;
    pointer-events: none;
}

.form-group {
    position: relative;
    width: 100%;
}

.cotiza-form input,
.cotiza-form textarea,
.cotiza-form select {
    font-size: 0.95rem;
    padding: 24px 0 8px 0;
    border: none;
    border-bottom: 1.5px solid #667366;
    border-radius: 0;
    outline: none;
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 500;
    background: transparent;
    color: #334436;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 0;
    box-shadow: none;
    transition: border-color 0.2s;
}

.cotiza-form select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23334436' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0 center;
    background-size: 20px;
    padding-right: 25px;
}

.cotiza-form select option {
    padding: 12px 16px;
    background-color: #ffffff;
    color: #334436;
    font-size: 0.95rem;
    font-weight: 500;
    font-family: 'Montserrat', Arial, sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cotiza-form select option:hover {
    background-color: #f0f4f0;
    color: #334436;
}

.cotiza-form select option:checked {
    background-color: #334436;
    color: #ffffff;
    font-weight: 600;
}

.cotiza-form select option[value=""][disabled] {
    display: none;
}

/* Custom Select Styles */
.custom-select {
    position: relative;
    width: 100%;
}

.custom-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.95rem;
    padding: 24px 0 8px 0;
    border: none;
    border-bottom: 1.5px solid #667366;
    cursor: pointer;
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 500;
    color: #334436;
    background: transparent;
    transition: border-color 0.2s;
    user-select: none;
}

.custom-select-trigger:hover {
    border-bottom-color: #334436;
}

.custom-select.active .custom-select-trigger {
    border-bottom: 2px solid #334436;
}

.custom-select-trigger span {
    flex: 1;
    color: #334436;
}

.custom-select-trigger span:empty::before {
    content: '';
    display: inline-block;
}

.custom-select-trigger svg {
    flex-shrink: 0;
    transition: transform 0.3s ease;
    color: #334436;
}

.custom-select.active .custom-select-trigger svg {
    transform: rotate(180deg);
}

.custom-select-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    z-index: 100;
    transition: all 0.3s ease;
    margin-top: 8px;
}

.custom-select.active .custom-select-options {
    max-height: 200px;
    overflow-y: auto;
    opacity: 1;
}

.custom-option {
    padding: 14px 16px;
    font-size: 0.95rem;
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 500;
    color: #334436;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
}

.custom-option:last-child {
    border-bottom: none;
}

.custom-option:hover {
    background-color: #f0f4f0;
    color: #334436;
}

.custom-option.selected {
    background-color: #334436;
    color: white;
    font-weight: 600;
}

.custom-select.has-value ~ .form__label {
    transform: translateY(-8px);
    font-size: 0.7rem;
    color: #334436;
}

.cotiza-form input:focus,
.cotiza-form textarea:focus,
.cotiza-form select:focus,
.custom-select.active {
    border-bottom: 2px solid #334436;
}

.cotiza-form input:focus+.form__label,
.cotiza-form textarea:focus+.form__label,
.cotiza-form select:focus+.form__label,
.custom-select.active+.form__label,
.custom-select.has-value+.form__label,
.cotiza-form input:not(:placeholder-shown)+.form__label,
.cotiza-form textarea:not(:placeholder-shown)+.form__label,
.cotiza-form select:valid+.form__label {
    transform: translateY(-8px);
    font-size: 0.7rem;
    color: #334436;
}

.cotiza-form-fields .form-group {
    width: calc(50% - 8px);
    margin-bottom: 28px;
}

.cotiza-form textarea {
    width: 100%;
    box-sizing: border-box;
    min-height: 60px;
    resize: vertical;
}

.cotiza-form>.form-group {
    margin-bottom: 32px;
}

.cotiza-form button {
    background: #334436;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 14px 0;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s;
    width: 55%;
    margin: 0 auto;
    display: block;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-family: 'Montserrat', Arial, sans-serif;
}

.cotiza-form button:hover {
    background: #2a5e3f;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    overflow-x: hidden;
    box-sizing: border-box;
    max-width: 100vw;
    position: relative;
}

* {
    box-sizing: border-box;
}

.hero {
    min-height: 100vh;
    width: 100%;
    background: url('img/fondo.webp') center center/cover no-repeat fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1;
}

.hero-content {
    display: flex;
    width: 100%;
    max-width: 1200px;
    justify-content: space-between;
    align-items: stretch;
    padding: 40px 20px;
    box-sizing: border-box;
    position: relative;
    z-index: 2;
}

.hero-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    width: 50%;
    padding: 40px 0 40px 40px;
    min-height: 400px;
    height: 100%;
    flex: 1 1 0;
    position: relative;
}

.hero-title-container {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    width: 100%;
}

.logo-container {
    position: absolute;
    left: 40px;
    bottom: 40px;
    width: auto;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    margin: 0;
    z-index: 10;
    pointer-events: none;
}

.hero-title {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    max-width: 450px;
    line-height: 1.2;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.logo-arbora {
    width: 300px;
    max-width: 30vw;
    min-width: 120px;
    height: auto;
}

.hero-right {
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 40px 40px 40px 0;
}

.cotiza-form {
    background:
        linear-gradient(rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0.45)),
        url('img/fondo-form.webp') center center/cover no-repeat;
    background-color: #e8e7e3;
    border-radius: 20px;
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.15);
    padding: 40px 36px 36px 36px;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 500px;
    backdrop-filter: blur(3px);
}

.form-title {
    font-family: 'Seravek', Georgia, serif;
    font-style: italic;
    font-size: 1.65rem;
    font-weight: 500;
    color: #334436;
    margin: 0 0 32px 0;
    text-align: center;
    width: 100%;
    line-height: 1.3;
}

.cotiza-form-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 0 16px;
    width: 100%;
    margin-bottom: 0;
}

.cotiza-form button:hover {
    background: #145f3a;
}

/* Popup de mensaje de éxito */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mensaje-exito-popup {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 3px solid #28a745;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    max-width: 450px;
    width: 90%;
    position: relative;
    animation: popupSlideIn 0.5s ease-out;
}

@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(-30px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    color: #155724;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, color 0.2s ease;
    font-weight: 300;
}

.popup-close:hover {
    transform: scale(1.2);
    color: #0d3d1a;
}

.mensaje-exito-icono {
    margin: 0 auto 15px;
    animation: scaleIn 0.6s ease-out 0.2s both;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.mensaje-exito-titulo {
    color: #155724;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 10px 0;
}

.mensaje-exito-texto {
    color: #155724;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
    line-height: 1.5;
}

@media (max-width: 900px) {
    .hero {
        min-height: 100vh;
        background-position: center;
        background-attachment: scroll;
    }

    .hero-content {
        flex-direction: column;
        align-items: center;
        padding: 30px 20px;
        gap: 32px;
    }

    .hero-left {
        width: 100%;
        padding: 0;
        margin-bottom: 0;
        min-height: auto;
        align-items: center;
        text-align: center;
        gap: 24px;
    }

    .logo-container {
        position: static;
        width: auto;
        margin: 0;
        order: -1;
        align-self: center;
    }

    .hero-title-container {
        align-items: center;
        justify-content: center;
    }

    .hero-title {
        font-size: 2rem;
        max-width: 100%;
        text-align: center;
        margin: 0 auto;
    }

    .hero-right {
        width: 100%;
        padding: 0;
        margin-bottom: 0;
        justify-content: center;
    }

    .cotiza-form {
        max-width: 100%;
        padding: 32px 24px 28px 24px;
        border-radius: 16px;
    }

    .mensaje-exito-popup {
        width: 95%;
        max-width: 400px;
        padding: 35px 25px;
    }

    .form-title {
        font-size: 1.4rem;
        margin-bottom: 24px;
    }

    .cotiza-form-fields {
        flex-direction: column;
        gap: 0;
    }

    .cotiza-form-fields .form-group {
        width: 100%;
        margin-bottom: 24px;
    }

    .cotiza-form>.form-group {
        margin-bottom: 24px;
    }

    .cotiza-form textarea {
        min-height: 50px;
    }

    .cotiza-form button {
        width: 100%;
        padding: 16px 0;
        font-size: 0.95rem;
    }

    .logo-arbora {
        width: 180px;
        min-width: 160px;
    }

    .mensaje-exito-popup {
        padding: 30px 22px;
    }

    .mensaje-exito-titulo {
        font-size: 1.35rem;
    }
}

@media (max-width: 480px) {
    .hero-content {
        padding: 20px 16px;
    }

    .hero-title {
        font-size: 1.75rem;
        line-height: 1.25;
    }

    .cotiza-form {
        padding: 28px 20px 24px 20px;
    }

    .form-title {
        font-size: 1.3rem;
    }

    .cotiza-form input,
    .cotiza-form textarea,
    .cotiza-form select {
        font-size: 0.9rem;
        padding: 22px 0 8px 0;
    }

    .custom-select-trigger {
        font-size: 0.9rem;
        padding: 22px 0 8px 0;
    }

    .custom-option {
        padding: 12px 14px;
        font-size: 0.9rem;
    }

    .form__label {
        font-size: 0.7rem;
    }

    .logo-arbora {
        width: 150px;
        min-width: 140px;
    }

    .mensaje-exito-popup {
        padding: 25px 18px;
        max-width: 340px;
    }

    .mensaje-exito-titulo {
        font-size: 1.2rem;
    }

    .mensaje-exito-texto {
        font-size: 0.9rem;
    }

    .mensaje-exito-icono svg {
        width: 50px;
        height: 50px;
    }

    .popup-close {
        width: 30px;
        height: 30px;
        font-size: 1.7rem;
    }
}

/* Info Section */
.info-section {
    min-height: 100vh;
    width: 100%;
    background: url('img/fondo-form.webp') center center/cover no-repeat;
    background-color: #8b8b8b;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    box-sizing: border-box;
    position: relative;
}

.info-section::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(270deg, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.62) 70%, rgba(0, 0, 0, 0) 100%);
    pointer-events: none;
    z-index: 0;
}

.info-container {
    display: flex;
    width: 100%;
    max-width: 1200px;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.info-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    position: relative;
}

.mivivienda-logo {
    width: 100%;
    max-width: 200px;
    position: absolute;
    top: 20px;
    left: 20px;
    margin-bottom: 0;
    z-index: 2;
}

.mivivienda-logo img {
    width: 100%;
    height: auto;
}

.edificio-image {
    width: 100%;
    max-width: 450px;
}

.edificio-image img {
    width: 100%;
    height: auto;
    display: block;
}

.info-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.location-badge {
    background: #a8b85c;
    color: white;
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-size: 1.8rem;
    font-weight: 500;
    padding: 12px 60px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    align-self: center;
}

.info-description {
    color: white;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    text-align: center;
    margin: 0;
}

.info-description strong {
    font-weight: 700;
}

.features-grid {
    display: flex;
    gap: 40px;
    justify-content: center;
    width: 100%;
    margin: 20px 0;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

.feature-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.feature-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    font-family: 'Montserrat', Arial, sans-serif;
}

.feature-label {
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1.2;
}

.feature-value {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.2;
}

.cta-button {
    background: #a8b85c;
    color: white;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    padding: 14px 50px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background 0.3s;
    display: inline-block;
    margin-top: 10px;
}

.cta-button:hover {
    background: #96a350;
}

/* Gallery Section */
.gallery-section {
    background: url('img/fondo-form.webp') center center/cover no-repeat;
    background-color: #efefec;
    padding: 60px 20px 80px;
}

.gallery-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.gallery-title {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 1.6rem;
    font-style: italic;
    letter-spacing: 2px;
    color: #3e4a3e;
    margin: 0 0 36px;
    text-transform: uppercase;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px;
    align-items: start;
}

.gallery-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.gallery-label {
    background: #a8b85c;
    color: #ffffff;
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 600;
    font-size: 1rem;
    padding: 10px 18px;
    border-radius: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.gallery-frame {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.gallery-image {
    display: block;
    width: 100%;
    height: auto;
    opacity: 1;
    transition: opacity 0.35s ease;
}

.gallery-image.is-fading {
    opacity: 0;
}

.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: #3e4a3e;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, background 0.2s;
}

.gallery-arrow:hover {
    transform: translateY(-50%) scale(1.05);
    background: rgba(255, 255, 255, 1);
}

.gallery-arrow.prev {
    left: 10px;
}

.gallery-arrow.next {
    right: 10px;
}

.gallery-cta {
    display: inline-block;
    margin-top: 40px;
    background: #a8b85c;
    color: #ffffff;
    text-decoration: none;
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 12px 34px;
    border-radius: 12px;
    letter-spacing: 1px;
}

.gallery-cta:hover {
    background: #96a350;
}

/* Proximity Strip */
.proximity-section {
    background: url('img/fondo-form.webp') center center/cover no-repeat;
    background-color: #bcbcbc;
    position: relative;
    padding: 48px 20px;
    text-align: center;
}

.proximity-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 0;
}

.proximity-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    color: #ffffff;
}

.proximity-title {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 1.6rem;
    font-style: italic;
    letter-spacing: 2px;
    margin: 0 0 16px;
    text-transform: uppercase;
}

.proximity-text {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

/* Map Section */
.mapa-section {
    background: url('img/mapa.webp') center center/cover no-repeat;
    background-color: #cfcfcf;
    min-height: 100vh;
    padding: 80px 20px;
    position: relative;
}

.mapa-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    min-height: 100vh;
}

.mapa-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 32px;
}

.mapa-button {
    background: #334436;
    color: #ffffff;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    padding: 12px 32px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background 0.3s, transform 0.2s;
    display: inline-block;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
}

.mapa-button:hover {
    background: #2a3a2d;
    transform: translateY(-1px);
}

@media (max-width: 900px) {
    .info-section {
        padding: 40px 20px;
        min-height: auto;
    }

    .info-section::before {
        background: rgba(0, 0, 0, 0.35);
    }

    .info-container {
        flex-direction: column;
        gap: 40px;
    }

    .info-left {
        width: 100%;
        gap: 20px;
    }

    .mivivienda-logo {
        max-width: 160px;
        left: 50%;
        transform: translateX(-50%);
        top: 16px;
    }

    .mivivienda-logo {
        display: none;
    }

    .edificio-image {
        max-width: 320px;
    }

    .edificio-image {
        display: none;
    }

    .info-right {
        width: 100%;
        gap: 24px;
    }

    .location-badge {
        font-size: 1.4rem;
        padding: 10px 40px;
        align-self: center;
    }

    .info-description {
        font-size: 0.95rem;
        text-align: center;
    }

    .info-description br {
        display: none;
    }

    .features-grid {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px 12px;
    }

    .feature-item {
        width: calc(50% - 12px);
    }

    .feature-item:last-child {
        width: 100%;
    }

    .feature-icon {
        width: 70px;
        height: 70px;
    }

    .cta-button {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }

    .proximity-section {
        padding: 36px 16px;
    }

    .proximity-title {
        font-size: 1.35rem;
    }

    .proximity-text {
        font-size: 0.95rem;
    }

    .mapa-section {
        min-height: 100vh;
        padding: 60px 16px;
    }

    .mapa-button {
        width: 100%;
        max-width: 260px;
        text-align: center;
    }

    .gallery-section {
        padding: 40px 16px 60px;
    }

    .gallery-title {
        font-size: 1.25rem;
        margin-bottom: 28px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .gallery-arrow {
        width: 36px;
        height: 36px;
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .location-badge {
        font-size: 1.2rem;
        padding: 8px 32px;
    }

    .info-description {
        font-size: 0.9rem;
    }

    .feature-icon {
        width: 60px;
        height: 60px;
    }

    .feature-label {
        font-size: 0.85rem;
    }

    .feature-value {
        font-size: 1rem;
    }

    .cta-button {
        font-size: 1rem;
        padding: 12px 40px;
    }
}

/* Sección de Planos */
.planos-section {
    background: linear-gradient(to bottom, #d9dfd9 0%, #f5f7f5 100%);
    padding: 80px 20px;
}

.planos-container {
    max-width: 1200px;
    margin: 0 auto;
}

.planos-title {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 2rem;
    font-weight: 500;
    color: #4a4a4a;
    margin: 0 0 60px 0;
    line-height: 1.4;
    text-align: center;
}

.planos-title .highlight-green {
    color: #99a67a;
    font-weight: 600;
}

.planos-display-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    position: relative;
}

.planos-display {
    flex: 1;
    max-width: 900px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    min-height: 600px;
    cursor: grab;
    user-select: none;
}

.planos-display:active {
    cursor: grabbing;
}

.plano-imagen {
    max-width: 100%;
    max-height: 700px;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
    pointer-events: none;
}

.plano-prev,
.plano-next {
    background: transparent;
    color: #99a67a;
    border: 2px solid #99a67a;
    cursor: pointer;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease, border-color 0.3s ease;
    flex-shrink: 0;
}

.plano-fullscreen {
    display: none;
}

.plano-prev svg,
.plano-next svg {
    stroke: currentColor;
}

/* Modal de Planos (Lightbox) */
.planos-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.planos-modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.planos-modal-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    user-select: none;
}

.planos-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    color: #99a67a;
    border: 2px solid #99a67a;
    font-size: 40px;
    cursor: pointer;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease, border-color 0.3s ease;
    font-weight: 300;
    line-height: 1;
    z-index: 10001;
}

.planos-modal-prev,
.planos-modal-next {
    position: absolute;
    background: transparent;
    color: #99a67a;
    border: 2px solid #99a67a;
    cursor: pointer;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10001;
}

.planos-modal-prev {
    left: 30px;
}

.planos-modal-next {
    right: 30px;
}

.planos-modal-prev:hover,
.planos-modal-next:hover {
    border-color: #7d8a62;
    color: #7d8a62;
    transform: scale(1.15);
}

/* Responsive para la sección de planos */
@media (max-width: 768px) {
    .planos-section {
        padding: 50px 16px;
    }

    .planos-title {
        font-size: 1.4rem;
        margin-bottom: 35px;
    }

    .planos-modal-close {
        top: 10px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 30px;
    }

    .planos-modal-prev,
    .planos-modal-next {
        width: 60px;
        height: 60px;
    }

    .planos-modal-prev {
        left: 15px;
    }

    .planos-modal-next {
        right: 15px;
    }
}

@media (max-width: 480px) {
    .planos-title {
        font-size: 1.2rem;
        margin-bottom: 30px;
    }

    .planos-display-wrapper {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .planos-display {
        padding: 0;
        min-height: auto;
        width: 100%;
        flex-basis: 100%;
        order: -1;
    }

    .plano-imagen {
        max-height: 500px;
        width: 100%;
        display: block;
    }

    .plano-prev,
    .plano-next {
        position: static;
        width: 50px;
        height: 50px;
        transform: none;
        order: 1;
    }

    .plano-fullscreen {
        display: flex;
        background: transparent;
        color: #99a67a;
        border: 2px solid #99a67a;
        cursor: pointer;
        width: 50px;
        height: 50px;
        border-radius: 50%;
        align-items: center;
        justify-content: center;
        position: static;
        order: 1;
    }

    .plano-fullscreen svg {
        stroke: currentColor;
    }

    /* Modal responsive */
    .planos-modal {
        padding: 60px 10px 20px;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        gap: 15px;
    }

    .planos-modal-content {
        max-width: 95vw;
        max-height: calc(100vh - 180px);
        width: 100%;
        flex-basis: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        order: -1;
    }

    .planos-modal-content img {
        max-height: calc(100vh - 180px);
        width: 100%;
        object-fit: contain;
    }

    .planos-modal-close {
        position: fixed;
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 26px;
    }

    .planos-modal-prev,
    .planos-modal-next {
        position: static;
        width: 50px;
        height: 50px;
        transform: none;
        order: 1;
    }

    .planos-modal-prev svg,
    .planos-modal-next svg {
        width: 35px;
        height: 35px;
    }
}

/* Footer */
.footer {
    width: 100%;
}

.footer-info {
    background-color: #e8e8e8;
    padding: 60px;
    text-align: center;
}

.footer-contact {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: #333;
    margin: 0 0 30px 0;
}

.footer-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

.footer-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.footer-logo-mivivienda {
    height: 70px;
}

.footer-copyright {
    background-color: #1a3a2e;
    padding: 20px;
    text-align: center;
}

.footer-copyright p {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 0.95rem;
    font-weight: 400;
    color: #ffffff;
    margin: 0;
}

/* Footer Responsive */
@media (max-width: 768px) {
    .footer {
        margin-top: 40px;
    }

    .footer-info {
        padding: 30px 15px;
    }

    .footer-contact {
        font-size: 0.9rem;
        margin-bottom: 25px;
    }

    .footer-logos {
        gap: 30px;
    }

    .footer-logo {
        height: 40px;
    }

    .footer-logo-mivivienda {
        height: 55px;
    }

    .footer-copyright {
        padding: 15px;
    }

    .footer-copyright p {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .footer-contact {
        font-size: 0.85rem;
        line-height: 1.5;
    }

    .footer-logos {
        gap: 20px;
    }

    .footer-logo {
        height: 35px;
    }

    .footer-logo-mivivienda {
        height: 50px;
    }
}

/* Asegúrate de que esto esté dentro de la media query de mobile */
@media (max-width: 900px) {
    .cotiza-form-fields .form-group {
        width: 100% !important; /* Fuerza el ancho completo para evitar cálculos fallidos */
        margin-right: 0;
    }
}