:root {
    --primary-gold: #C4955C;
    --dark-gold: #B8894A;
    --text-dark: #2C2C2C;
    --text-light: #666;
    --beige-light: #F5EFE7;
    --beige-dark: #E8DCC8;
}

.instagram-fab {
    /* Posicionamiento */
    position: fixed !important;
    top: 20px !important;
    right: 20px !important;

    /* Dimensiones fijas para todos los navegadores */
    width: 56px !important;
    height: 56px !important;
    min-width: 56px !important;
    min-height: 56px !important;

    /* Background con fallback */
    background-color: #C4955C !important;
    background: #C4955C !important;

    /* Border radius con todos los prefijos */
    border-radius: 50% !important;
    -webkit-border-radius: 50% !important;
    -moz-border-radius: 50% !important;

    /* Display flex con todos los prefijos */
    display: -webkit-box !important;
    display: -webkit-flex !important;
    display: -moz-box !important;
    display: -ms-flexbox !important;
    display: flex !important;

    /* Centrado vertical con todos los prefijos */
    -webkit-box-align: center !important;
    -webkit-align-items: center !important;
    -moz-box-align: center !important;
    -ms-flex-align: center !important;
    align-items: center !important;

    /* Centrado horizontal con todos los prefijos */
    -webkit-box-pack: center !important;
    -webkit-justify-content: center !important;
    -moz-box-pack: center !important;
    -ms-flex-pack: center !important;
    justify-content: center !important;

    /* Box shadow con todos los prefijos */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3) !important;
    -webkit-box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3) !important;
    -moz-box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3) !important;

    /* Z-index alto para asegurar visibilidad */
    z-index: 9999 !important;

    /* Cursor y texto */
    cursor: pointer !important;
    text-decoration: none !important;

    /* Transiciones con todos los prefijos */
    -webkit-transition: all 0.3s ease !important;
    -moz-transition: all 0.3s ease !important;
    -o-transition: all 0.3s ease !important;
    -ms-transition: all 0.3s ease !important;
    transition: all 0.3s ease !important;

    /* Reset de borders y outline */
    border: none !important;
    outline: none !important;

    /* Fix específico para Safari: forzar aceleración por hardware */
    -webkit-transform: translateZ(0) !important;
    transform: translateZ(0) !important;
    -webkit-backface-visibility: hidden !important;
    backface-visibility: hidden !important;

    /* Fix para Safari iOS: prevenir problemas de tap */
    -webkit-tap-highlight-color: transparent !important;

    /* Asegurar que el enlace se vea */
    opacity: 1 !important;
    visibility: visible !important;
}

.instagram-fab:hover {
    /* Mantener translateZ(0) para aceleración por hardware + scale */
    -webkit-transform: translateZ(0) scale(1.1) !important;
    -moz-transform: translateZ(0) scale(1.1) !important;
    -o-transform: translateZ(0) scale(1.1) !important;
    -ms-transform: translateZ(0) scale(1.1) !important;
    transform: translateZ(0) scale(1.1) !important;

    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4) !important;
    -webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4) !important;
    -moz-box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4) !important;
}

.instagram-fab:active {
    /* Mantener translateZ(0) para aceleración por hardware + scale */
    -webkit-transform: translateZ(0) scale(0.95) !important;
    -moz-transform: translateZ(0) scale(0.95) !important;
    -o-transform: translateZ(0) scale(0.95) !important;
    -ms-transform: translateZ(0) scale(0.95) !important;
    transform: translateZ(0) scale(0.95) !important;
}

.instagram-fab i {
    color: #ffffff !important;
    color: white !important;
    font-size: 28px !important;
    line-height: 1 !important;
    display: block !important;

    /* Asegurar que el icono se renderice correctamente en Safari */
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;

    /* Prevenir problemas de selección */
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;

    /* Asegurar visibilidad */
    opacity: 1 !important;
    visibility: visible !important;
}

/* Responsivo para tablets */
@media only screen and (max-width: 768px) {
    .instagram-fab {
        top: 15px !important;
        right: 15px !important;
        width: 50px !important;
        height: 50px !important;
    }

    .instagram-fab i {
        font-size: 24px !important;
    }
}

/* Responsivo para móviles */
@media only screen and (max-width: 480px) {
    .instagram-fab {
        top: 12px !important;
        right: 12px !important;
        width: 44px !important;
        height: 44px !important;
    }

    .instagram-fab i {
        font-size: 22px !important;
    }
}


/* Forzar estilos en todos los navegadores (ignorar tema del sistema) */
.btn-nav {
    /* CRÍTICO PARA SAFARI: Resetear apariencia PRIMERO */
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;

    /* Colores forzados con especificidad máxima */
    background-color: #C4955C !important;
    background-image: none !important;
    border: 1px solid #C4955C !important;
    color: #ffffff !important;

    /* Estilos básicos */
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    cursor: pointer;
    padding: 0.5rem 1rem;
    display: inline-block;
    text-align: center;
    vertical-align: middle;
    user-select: none;
    line-height: 1.5;

    /* Forzar box-sizing */
    box-sizing: border-box !important;
    -webkit-box-sizing: border-box !important;
    -moz-box-sizing: border-box !important;

    /* Safari specific fixes */
    -webkit-tap-highlight-color: transparent;
    -webkit-text-fill-color: #ffffff !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;

    /* Evitar que el navegador cambie estilos */
    text-decoration: none !important;
    outline: none;
    box-shadow: none !important;

    /* Transitions suaves */
    transition: opacity 0.2s ease;
}

/* Forzar colores en todos los estados con máxima especificidad */
.btn-nav:hover,
.btn-nav:focus,
.btn-nav:active,
.btn-nav:visited,
.btn-nav:link {
    background-color: #C4955C !important;
    background-image: none !important;
    border-color: #C4955C !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    text-decoration: none !important;
    box-shadow: none !important;
    opacity: 0.9;
}

/* Estado disabled si se usa */
.btn-nav:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Clase específica para este contenedor de navegación */
.nav-buttons-container-responsive {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 100%;
    padding: 0 0.5rem;
    box-sizing: border-box;
}

/* Móviles: Botones apilados uno encima del otro */
@media (max-width: 767px) {
    .nav-buttons-container-responsive {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.75rem;
        padding: 0 !important;
        margin: 0 !important;
        max-width: 100% !important;
    }

    .nav-buttons-container-responsive .btn-nav {
        width: 100% !important;
        padding: 0.75rem 1rem !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
}

/* Tablets y Desktop: Botones en línea horizontal */
@media (min-width: 768px) {
    .nav-buttons-container-responsive .btn-nav {
        padding: 0.25rem 1rem;
    }
}

/* Forzar estilos en modo oscuro de Safari/navegadores */
@media (prefers-color-scheme: dark) {

    .btn-nav,
    .btn-nav:hover,
    .btn-nav:focus,
    .btn-nav:active,
    .btn-nav:visited,
    .btn-nav:link {
        background-color: #C4955C !important;
        background-image: none !important;
        border-color: #C4955C !important;
        color: #ffffff !important;
        -webkit-text-fill-color: #ffffff !important;
    }
}

/* Extra: Forzar en modo claro también */
@media (prefers-color-scheme: light) {

    .btn-nav,
    .btn-nav:hover,
    .btn-nav:focus,
    .btn-nav:active,
    .btn-nav:visited,
    .btn-nav:link {
        background-color: #C4955C !important;
        background-image: none !important;
        border-color: #C4955C !important;
        color: #ffffff !important;
        -webkit-text-fill-color: #ffffff !important;
    }
}

/* Screen Reader Only - Para accesibilidad SEO */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.sr-only-focusable:focus,
.sr-only-focusable:active {
    position: static;
    width: auto;
    height: auto;
    padding: inherit;
    margin: inherit;
    overflow: visible;
    clip: auto;
    white-space: normal;
}

html {
    overflow-x: hidden !important;
    overflow-y: scroll;
    width: 100%;
    max-width: 100%;
    height: 100%;
    -webkit-overflow-scrolling: touch;
    position: relative;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    overflow-x: hidden !important;
    overflow-y: auto;
    width: 100%;
    max-width: 100%;
    min-height: 100%;
    -webkit-overflow-scrolling: touch;
    position: relative;
}

/* Prevenir scroll horizontal global */
* {
    box-sizing: border-box;
}

section {
    max-width: 100vw;
    overflow-x: hidden;
}

/* Fix global para containers y rows de Bootstrap */
.container,
.container-fluid {
    max-width: 100%;
    width: 100%;
}

.row {
    margin-left: -15px;
    margin-right: -15px;
    max-width: 100%;
}

/* Fix específico para rows en hero que causan scroll */
.hero-section .row {
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
}

.hero-section .container,
.hero-section .container-fluid {
    max-width: 100%;
    padding-left: 15px;
    padding-right: 15px;
}

/* Asegurar que todas las imágenes respeten el ancho del contenedor */
img {
    max-width: 100%;
    height: auto;
}

/* Fix específico para móviles - padding reducido */
@media (max-width: 768px) {
    html,
    body {
        overflow-x: hidden !important;
        max-width: 100% !important;
        width: 100% !important;
        position: relative;
    }

    * {
        max-width: 100% !important;
    }

    /* Prevenir que cualquier elemento cause overflow */
    *:not(html):not(body) {
        max-width: 100%;
    }

    /* Fix específico para containers */
    .container,
    .container-fluid,
    section,
    div {
        max-width: 100% !important;
    }

    .container,
    .container-fluid {
        padding-left: 12px !important;
        padding-right: 12px !important;
        max-width: 100vw !important;
        width: 100% !important;
    }

    .row {
        margin-left: -12px !important;
        margin-right: -12px !important;
        max-width: 100% !important;
    }

    [class*="col-"] {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    section {
        padding-left: 0 !important;
        padding-right: 0 !important;
        max-width: 100vw !important;
    }

    /* Asegurar hero content no desborda */
    .hero-content {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        max-width: 100vw !important;
    }

    /* Feature sections ajustadas */
    .feature-image-wrapper {
        width: calc(100% - 2rem) !important;
        margin-left: 1rem !important;
        margin-right: 1rem !important;
    }

    /* Mapa section */
    .mapa-section {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .mapa-section .container-fluid {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .mapa-section .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

.hero-section {
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Fix específico para iOS - usar min-height en lugar de height fijo */
@supports (-webkit-touch-callout: none) {
    .hero-section {
        height: -webkit-fill-available;
        min-height: -webkit-fill-available;
    }
}

.hero-video-wrapper {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 1 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    pointer-events: none;
}

.hero-video {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    min-width: 100% !important;
    min-height: 100% !important;
    width: auto !important;
    height: auto !important;
    transform: translate(-50%, -50%) !important;
    -webkit-transform: translate(-50%, -50%) !important;
    object-fit: cover !important;
    object-position: center !important;
    -webkit-object-fit: cover !important;
    -webkit-object-position: center !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    display: block !important;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(42, 73, 57, 0.35);
    z-index: 2;
    pointer-events: none;
}

.hero-section .container {
    position: relative;
    z-index: 10;
    height: 100%;
}

.hero-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    padding: 2rem 1rem;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

.hero-text-wrapper {
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 300;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
}

.hero-subtitle strong {
    font-weight: 600;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 700;
    margin: 0;
    text-shadow: 3px 3px 12px rgba(0, 0, 0, 0.4);
    letter-spacing: 2px;
    line-height: 1.1;
}

.hero-logo-wrapper {
    animation: fadeInScale 1.2s ease-out 0.3s both;
}

.hero-logo-img {
    width: clamp(150px, 20vw, 250px);
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}

.hero-logo-img:hover {
    transform: scale(1.05);
}

.hero-coming-soon {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 400;
    margin: 0;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: 2px;
    animation: fadeInUp 1s ease-out 0.6s both;
    opacity: 0.95;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Reduce motion para accesibilidad */
@media (prefers-reduced-motion: reduce) {

    .hero-text-wrapper,
    .hero-logo-wrapper,
    .hero-coming-soon,
    .content-title-wrapper,
    .video-wrapper,
    .feature-main-title,
    .feature-item {
        animation: none;
        opacity: 1;
        transform: none;
    }

    .hero-logo-img:hover,
    .content-title:hover,
    .video-container:hover,
    .feature-item:hover,
    .feature-item:hover .feature-icon {
        transform: none;
    }

    .feature-overlay {
        transition: none;
    }
}

.btn-primary {
    background-color: var(--primary-gold);
    border-color: var(--primary-gold);
    border-radius: 25px;
    padding: 15px 35px;
    font-weight: 600;
    font-size: 1.1rem;
    border: none;
    transition: all 0.3s ease;
}



.btn-primary:hover {
    background-color: var(--dark-gold);
    border-color: var(--dark-gold);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(196, 149, 92, 0.4);
}

.btn-primary:active {
    background-color: #A67838 !important;
    border-color: #A67838 !important;
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(196, 149, 92, 0.3);
}

.playfair {
    font-family: 'Playfair Display', serif;
}

.content-section {
    background: white;
    padding: 5rem 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.content-wrapper {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

.content-title-wrapper {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease-out;
}

.content-title {
    background-color: var(--primary-gold);
    color: white;
    border-radius: 50px;
    padding: 1rem 2.5rem;
    font-weight: 400;
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    letter-spacing: 1px;
    display: inline-block;
    box-shadow: 0 8px 25px rgba(196, 149, 92, 0.3);
    transition: all 0.3s ease;
}

.content-title:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(196, 149, 92, 0.4);
}

.content-title-highlight {
    font-weight: 700;
}

.video-wrapper {
    max-width: 900px;
    margin: 0 auto;
    animation: fadeInScale 1s ease-out 0.2s both;
}

.video-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    transition: all 0.4s ease;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
}

.video-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border: 3px solid var(--primary-gold);
    border-top-color: transparent;
    border-radius: 50%;
    animation: videoLoading 1s linear infinite;
    opacity: 0.5;
    z-index: 1;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    z-index: 2;
}

.video-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.2);
}

@keyframes videoLoading {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.open-house-text {
    font-size: clamp(3rem, 6vw, 5rem);
    color: var(--primary-gold);
    font-style: italic;
    margin: 2rem 0 0 0;
    line-height: 1.2;
    font-weight: 500;
    font-family: "Canora";
    text-align: center;
}

/* Feature Sections con Background */
.feature-section {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    overflow: hidden;
    /* Optimización para rendimiento */
    will-change: background-position;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.feature-section-1 {
    background-image: url('../assets/img/background1.png');
}

.feature-section-2 {
    background-image: url('../assets/img/background2.png');
}

.feature-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
            rgba(42, 73, 57, 0.75) 0%,
            rgba(44, 44, 44, 0.65) 50%,
            rgba(42, 73, 57, 0.75) 100%);
    z-index: 1;
}

.feature-section .container {
    position: relative;
    z-index: 2;
}

.feature-content {
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.feature-content-text {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.feature-content-text-right {
    text-align: right;
    padding: 4rem 2rem;
}

.feature-text-content {
    margin-top: 2.5rem;
    text-align: right;
}

.feature-paragraph {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.8;
    text-shadow: 1px 1px 8px rgba(0, 0, 0, 0.3);
    font-weight: 300;
    margin-bottom: 1.8rem;
    text-align: justify;
}

.feature-paragraph:last-child {
    margin-bottom: 0;
}

.feature-paragraph strong {
    font-weight: 600;
    color: var(--primary-gold);
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

.feature-main-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: white;
    margin-bottom: 3rem;
    text-shadow: 2px 2px 15px rgba(0, 0, 0, 0.4);
    letter-spacing: 1px;
    line-height: 1.2;
    animation: fadeInUp 1s ease-out;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.feature-item {
    text-align: center;
    animation: fadeInUp 1s ease-out;
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-8px);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--primary-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(196, 149, 92, 0.4);
    transition: all 0.3s ease;
}

.feature-item:hover .feature-icon {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(196, 149, 92, 0.6);
}

.feature-icon i {
    font-size: 2rem;
    color: white;
}

.feature-item-title {
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    font-weight: 600;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.4);
    letter-spacing: 0.5px;
}

.feature-item-description {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.3);
    font-weight: 300;
}

/* Feature items inline con iconos */
.feature-item-inline {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.feature-item-inline .feature-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    margin: 0;
}

.feature-item-inline .feature-paragraph {
    flex: 1;
    margin-bottom: 0;
    text-align: justify;
}

.feature-paragraph-highlight {
    margin-top: 2rem;
    font-weight: 400;
    font-size: clamp(1.15rem, 2.7vw, 1.5rem);
}

.feature-paragraph-highlight strong {
    font-weight: 700;
}

/* Efecto hover para las secciones */
.feature-section:hover .feature-overlay {
    background: linear-gradient(135deg,
            rgba(42, 73, 57, 0.7) 0%,
            rgba(44, 44, 44, 0.6) 50%,
            rgba(42, 73, 57, 0.7) 100%);
    transition: background 0.5s ease;
}

/* Nuevas Feature Sections - Texto Superpuesto sobre Imagen */
.feature-section-new {
    min-height: 70vh;
    overflow: hidden;
    position: relative;
}

.feature-section-1-new,
.feature-section-2-new {
    position: relative;
}

/* Reducir tamaño específico de ambas secciones - misma altura */
.feature-section-1-new .feature-image-wrapper,
.feature-section-2-new .feature-image-wrapper {
    min-height: 55vh;
    height: 55vh;
    max-width: 1100px;
}

.feature-section-1-new .feature-background-image,
.feature-section-2-new .feature-background-image {
    min-height: 55vh;
    height: 55vh;
}

.feature-image-wrapper {
    position: relative;
    width: calc(100% - 4rem);
    min-height: 60vh;
    max-width: min(1200px, 100vw - 4rem);
    margin: 2rem auto;
    overflow: hidden;
    border-radius: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.feature-background-image {
    width: 100%;
    height: 100%;
    min-height: 60vh;
    object-fit: cover;
    display: block;
    border-radius: 25px;
}

/* Sección 1 - Texto superpuesto con fondo Beige/Dorado */
.feature-text-overlay-beige {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 50%;
    /* 50% del ancho del componente */
    height: 100%;
    background-color: rgba(192, 139, 33, 0.6);
    /* Beige dorado con opacidad como en la imagen */
    backdrop-filter: blur(1px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    overflow: hidden;
}

.feature-text-content-beige {
    width: 100%;
    margin: auto;
    padding: 1.5rem 1.8rem;
    overflow-y: auto;
    max-height: 100%;
    box-sizing: border-box;
}

.feature-paragraph-beige {
    font-size: clamp(0.7rem, 1.2vw, 0.85rem);
    color: #FFFFFF;
    /* Texto blanco como en la imagen */
    line-height: 1.4;
    font-weight: 400;
    text-align: justify;
    margin-bottom: 0.8rem;
}

.feature-paragraph-beige strong {
    font-weight: 700;
    color: #FFFFFF;
    /* Texto blanco también en negrita */
}

/* Sección 2 - Texto superpuesto con fondo Verde Oscuro */
.feature-text-overlay-green {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 50%;
    /* 50% del ancho del componente */
    height: 100%;
    background-color: #2A4939;
    /* Verde oscuro */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    overflow: hidden;
}

.feature-text-content-green {
    width: 100%;
    margin: auto;
    padding: 1.2rem 1.5rem;
    overflow-y: auto;
    max-height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.feature-item-inline-green {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.feature-item-inline-green.mb-4 {
    margin-bottom: 0.5rem !important;
}

.feature-paragraph-green.mb-0 {
    margin-bottom: 0 !important;
}

.feature-paragraph-highlight-green.mb-0 {
    margin-bottom: 0 !important;
}

.feature-icon-green {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    background-color: #C4955C;
    /* Dorado */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}

.feature-icon-green i {
    font-size: 0.8rem;
    color: white;
}

.feature-paragraph-green {
    font-size: clamp(0.65rem, 1.1vw, 0.8rem);
    color: #FFFFFF;
    /* Texto blanco sobre fondo verde */
    line-height: 1.3;
    font-weight: 400;
    text-align: justify;
    flex: 1;
    margin: 0;
}

.feature-paragraph-green strong {
    font-weight: 700;
    color: #FFFFFF;
}

.feature-paragraph-highlight-green {
    margin-top: 0.6rem;
    font-weight: 500;
    font-size: clamp(0.7rem, 1.2vw, 0.85rem);
    color: #FFFFFF;
    line-height: 1.3;
    margin-bottom: 0;
}

/* Responsive - Laptops medianos (MacBook Air, etc.) */
@media (max-width: 1440px) {

    .feature-section-1-new .feature-image-wrapper,
    .feature-section-2-new .feature-image-wrapper {
        min-height: 50vh;
        height: 50vh;
    }

    .feature-section-1-new .feature-background-image,
    .feature-section-2-new .feature-background-image {
        min-height: 50vh;
        height: 50vh;
    }

    .feature-text-content-beige {
        padding: 1.3rem 1.5rem !important;
    }

    .feature-text-content-green {
        padding: 1rem 1.3rem !important;
    }

    .feature-paragraph-beige {
        font-size: clamp(0.65rem, 1.1vw, 0.8rem);
        line-height: 1.35;
        margin-bottom: 0.7rem;
    }

    .feature-paragraph-green {
        font-size: clamp(0.6rem, 1vw, 0.75rem);
        line-height: 1.3;
        margin-bottom: 0 !important;
    }

    .feature-item-inline-green {
        margin-bottom: 0.4rem !important;
        gap: 0.7rem;
    }

    .feature-item-inline-green.mb-4 {
        margin-bottom: 0.4rem !important;
    }

    .feature-icon-green {
        width: 26px;
        height: 26px;
    }

    .feature-icon-green i {
        font-size: 0.75rem;
    }

    .feature-paragraph-highlight-green {
        font-size: clamp(0.65rem, 1.2vw, 0.8rem);
        margin-top: 0.5rem !important;
        margin-bottom: 0 !important;
        line-height: 1.3;
    }
}

/* Responsive - Laptops pequeños (MacBook Air 13", etc.) */
@media (max-width: 1280px) {

    .feature-section-1-new .feature-image-wrapper,
    .feature-section-2-new .feature-image-wrapper {
        min-height: 48vh;
        height: 48vh;
    }

    .feature-section-1-new .feature-background-image,
    .feature-section-2-new .feature-background-image {
        min-height: 48vh;
        height: 48vh;
    }

    .feature-text-content-beige {
        padding: 1.2rem 1.4rem !important;
    }

    .feature-text-content-green {
        padding: 0.9rem 1.2rem !important;
    }

    .feature-paragraph-beige {
        font-size: clamp(0.7rem, 1vw, 0.8rem);
        line-height: 1.35;
        margin-bottom: 0.65rem;
    }

    .feature-paragraph-green {
        font-size: clamp(0.65rem, 0.95vw, 0.75rem);
        line-height: 1.3;
        margin-bottom: 0 !important;
    }

    .feature-item-inline-green {
        margin-bottom: 0.35rem !important;
        gap: 0.65rem;
    }

    .feature-item-inline-green.mb-4 {
        margin-bottom: 0.35rem !important;
    }

    .feature-icon-green {
        width: 24px;
        height: 24px;
    }

    .feature-icon-green i {
        font-size: 0.7rem;
    }

    .feature-paragraph-highlight-green {
        font-size: clamp(0.68rem, 1.1vw, 0.8rem);
        margin-top: 0.45rem !important;
        margin-bottom: 0 !important;
        line-height: 1.3;
    }
}

/* Responsive - Tablets */
@media (max-width: 991.98px) {
    .feature-section-new {
        min-height: auto;
    }

    .feature-section-1-new .feature-image-wrapper,
    .feature-section-2-new .feature-image-wrapper {
        width: calc(100% - 3rem);
        margin: 1.5rem auto;
        min-height: 50vh;
        height: 50vh;
        border-radius: 20px;
        max-width: 100%;
    }

    .feature-section-1-new .feature-background-image,
    .feature-section-2-new .feature-background-image {
        min-height: 50vh;
        height: 50vh;
        border-radius: 20px;
    }

    .feature-text-overlay-beige,
    .feature-text-overlay-green {
        width: 50%;
        top: 0;
        right: 0;
        bottom: 0;
        height: 100%;
    }

    .feature-text-content-beige,
    .feature-text-content-green {
        padding: 1.5rem 1.5rem !important;
    }

    .feature-paragraph-beige,
    .feature-paragraph-green {
        font-size: clamp(0.7rem, 1.5vw, 0.85rem);
        line-height: 1.5;
        margin-bottom: 0.7rem;
    }

    .feature-item-inline-green {
        margin-bottom: 0.6rem;
        gap: 0.8rem;
    }

    .feature-icon-green {
        width: 30px;
        height: 30px;
    }

    .feature-icon-green i {
        font-size: 0.8rem;
    }

    .feature-paragraph-highlight-green {
        font-size: clamp(0.7rem, 1.6vw, 0.85rem);
        margin-top: 0.7rem;
    }
}

@media (max-width: 767.98px) {

    .feature-section-1-new .feature-image-wrapper,
    .feature-section-2-new .feature-image-wrapper {
        width: calc(100% - 2rem);
        margin: 1rem auto;
        min-height: auto;
        height: auto;
        border-radius: 15px;
        max-width: 100%;
    }

    .feature-section-1-new .feature-background-image,
    .feature-section-2-new .feature-background-image {
        min-height: 45vh;
        height: auto;
        border-radius: 15px;
    }

    .feature-text-overlay-beige,
    .feature-text-overlay-green {
        width: 100%;
        position: relative;
        height: auto;
        min-height: auto;
        top: 0;
        right: 0;
        bottom: 0;
        margin: 0;
        border-radius: 0 0 15px 15px;
    }

    .feature-text-content-beige,
    .feature-text-content-green {
        padding: 1.5rem 1.5rem !important;
    }

    .feature-paragraph-beige,
    .feature-paragraph-green {
        font-size: clamp(0.75rem, 2.5vw, 0.85rem);
        line-height: 1.6;
        margin-bottom: 0.8rem;
    }

    .feature-item-inline-green {
        margin-bottom: 0.6rem;
        gap: 0.8rem;
    }

    .feature-icon-green {
        width: 30px;
        height: 30px;
    }

    .feature-icon-green i {
        font-size: 0.85rem;
    }

    .feature-paragraph-highlight-green {
        font-size: clamp(0.75rem, 2.2vw, 0.9rem);
        margin-top: 0.8rem;
        line-height: 1.6;
    }
}

@media (max-width: 576px) {

    .feature-section-1-new .feature-image-wrapper,
    .feature-section-2-new .feature-image-wrapper {
        width: calc(100% - 1rem);
        margin: 0.5rem auto;
        border-radius: 12px;
    }

    .feature-section-1-new .feature-background-image,
    .feature-section-2-new .feature-background-image {
        min-height: 40vh;
        border-radius: 12px;
    }

    .feature-text-overlay-beige,
    .feature-text-overlay-green {
        border-radius: 0 0 12px 12px;
    }

    .feature-text-content-beige,
    .feature-text-content-green {
        padding: 1.2rem 1.2rem !important;
    }

    .feature-paragraph-beige,
    .feature-paragraph-green {
        font-size: clamp(0.7rem, 3vw, 0.8rem);
        line-height: 1.5;
        margin-bottom: 0.7rem;
    }

    .feature-item-inline-green {
        margin-bottom: 0.5rem;
        gap: 0.7rem;
    }

    .feature-icon-green {
        width: 28px;
        height: 28px;
    }

    .feature-icon-green i {
        font-size: 0.75rem;
    }

    .feature-paragraph-highlight-green {
        font-size: clamp(0.7rem, 2.5vw, 0.85rem);
        margin-top: 0.7rem;
    }
}

.volterra-logo {
    width: 140px;
    height: 140px;
    background-image: url("../img/Recurso\ 2.png");

    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);

}

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

.logo-tree {
    width: 60px;
    height: 60px;
    background: var(--text-dark);
    border-radius: 50%;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.logo-tree::before {
    content: '🌳';
    font-size: 1.8rem;
}

.logo-text {
    font-weight: 700;
    color: var(--text-dark);
    font-size: 1.1rem;
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.logo-subtext {
    font-size: 0.9rem;
    color: var(--text-light);
    letter-spacing: 3px;
    font-weight: 300;
}

/* Bottom CTA Section - Diseño simple y elegante */
.bottom-section {
    background: linear-gradient(135deg, #F5F1E8 0%, #E8DCC8 100%);
    padding: 70px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Patrón decorativo de fondo sutil */
.bottom-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23C4955C' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
    pointer-events: none;
}

.bottom-section .container {
    position: relative;
    z-index: 1;
}

.bottom-section .col-lg-8,
.bottom-section .col-md-10 {
    background: white;
    padding: 0;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bottom-section .col-lg-8:hover,
.bottom-section .col-md-10:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

/* Contenedor interno mejorado */
.bottom-section-content {
    background-image: url("../assets/img/VillaFiorenza/amenidad6.png") !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    padding: 45px 50px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px !important;
    min-height: 600px !important;
    /* Altura mínima para asegurar visibilidad del contenido */
    width: 100%;
}

/* Para mantener la proporción de la imagen si lo deseas */
.bottom-section-content {
    aspect-ratio: 16/9;
    /* Ajusta según la proporción real de tu imagen */
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .bottom-section-content {
        padding: 30px 20px;
        min-height: 300px;
        background-size: cover;
        /* Asegura que cubra todo el espacio */
    }
}

@media (max-width: 480px) {
    .bottom-section-content {
        padding: 25px 15px;
        min-height: 250px;
        gap: 15px;
    }
}

/* Texto principal */
.bottom-section-text {
    font-size: 1.25rem;
    color: var(--text-dark);
    font-weight: 500;
    line-height: 1.7;
    margin: 0;
    max-width: 600px;
}

/* Contenedor del botón CTA */
.bottom-section-cta {
    margin-top: 5px;
}

/* Compatibilidad con estilos antiguos */
.bottom-section p,
.bottom-section>div>div>div {
    font-size: 1.2rem;
    color: var(--text-dark);
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 25px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

/* Mejora del botón CTA */
.bottom-section .btn-primary {
    background: linear-gradient(135deg, var(--primary-gold) 0%, var(--dark-gold) 100%);
    border: none;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 50px;
    box-shadow: 0 10px 25px rgba(196, 149, 92, 0.25);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.bottom-section .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.bottom-section .btn-primary:hover::before {
    left: 100%;
}

.bottom-section .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(196, 149, 92, 0.35);
}

.bottom-section .btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 8px 20px rgba(196, 149, 92, 0.25);
}

/* Estilos heredados - mantener compatibilidad */
.click-here-text {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.bottom-text {
    font-size: 1.2rem;
    color: var(--text-dark);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Responsive - Bottom Section */
@media (max-width: 992px) {
    .bottom-section {
        padding: 60px 0;
    }

    .bottom-section-content {
        padding: 40px 45px;
        gap: 18px;
    }

    .bottom-section-text {
        font-size: 1.15rem;
    }

    .bottom-section p,
    .bottom-section>div>div>div {
        font-size: 1.15rem;
        margin-bottom: 22px;
    }

    .bottom-section .btn-primary {
        padding: 14px 38px;
        font-size: 1.05rem;
    }
}

@media (max-width: 768px) {
    .bottom-section {
        padding: 50px 0;
    }

    .bottom-section .col-lg-8,
    .bottom-section .col-md-10 {
        border-radius: 15px;
    }

    .bottom-section-content {
        padding: 35px 30px;
        gap: 16px;
    }

    .bottom-section-text {
        font-size: 1.1rem;
        line-height: 1.65;
    }

    .bottom-section p,
    .bottom-section>div>div>div {
        font-size: 1.05rem;
        margin-bottom: 20px;
    }

    .bottom-section .btn-primary {
        padding: 13px 32px;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .bottom-section {
        padding: 40px 15px;
    }

    .bottom-section-content {
        padding: 30px 25px;
        gap: 14px;
    }

    .bottom-section-text {
        font-size: 1.05rem;
        line-height: 1.6;
    }

    .bottom-section-cta {
        margin-top: 2px;
        width: 100%;
    }

    .bottom-section p,
    .bottom-section>div>div>div {
        font-size: 1rem;
    }

    .bottom-section .btn-primary {
        padding: 12px 28px;
        font-size: 0.95rem;
        width: 100%;
        max-width: 280px;
    }
}

/* Modal Formulario */
.form-step {
    display: none;
    animation: fadeIn 0.3s ease-in;
    position: relative;
}

.form-step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-content {
    border-radius: 30px;
    border: none;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
    background-color: var(--beige-light);
    overflow: hidden;
}

.modal-header {
    border-bottom: none;
    padding: 2rem 2rem 1rem 2rem;
    background-color: var(--beige-light);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.modal-title {
    color: var(--primary-gold);
    font-weight: 400;
    font-size: 1.8rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 1rem;
}

.modal-logo {
    width: 120px;
    height: auto;
    margin-bottom: 1rem;
}

.modal-body {
    padding: 2rem;
    background-color: var(--beige-light);
}

.modal-body h6 {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 2rem;
    line-height: 1.5;
}

/* Responsive - Modales para pantallas pequeñas */
@media (max-width: 576px) {
    .modal-content {
        border-radius: 20px;
        margin: 0.5rem;
    }

    .modal-header {
        padding: 1.5rem 1.5rem 0.8rem 1.5rem;
    }

    .modal-title {
        font-size: 1.4rem;
        letter-spacing: 2px;
        margin-bottom: 0.8rem;
    }

    .modal-logo {
        width: 90px;
        margin-bottom: 0.8rem;
    }

    .modal-body {
        padding: 1.5rem;
    }

    .modal-body h6 {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        line-height: 1.4;
    }

    .modal-footer-logo {
        margin-top: 1.5rem;
    }

    .modal-footer-logo img {
        width: 80px;
    }

    /* Botones de formulario más grandes para móvil */
    .btn-outline-primary,
    .btn-outline-secondary {
        padding: 0.9rem 1.2rem;
        font-size: 0.95rem;
    }

    /* Success/Rejection modals */
    .success-title,
    .success-volterra {
        font-size: 1.6rem;
    }

    .success-openhouse {
        font-size: 2rem;
    }

    .success-subtitle,
    .success-location {
        font-size: 1rem;
    }

    .success-description {
        font-size: 0.95rem;
        padding: 0 0.5rem;
    }
}

/* Modales en pantallas muy pequeñas */
@media (max-width: 380px) {
    .modal-content {
        border-radius: 15px;
        margin: 0.25rem;
    }

    .modal-header {
        padding: 1.2rem 1.2rem 0.6rem 1.2rem;
    }

    .modal-title {
        font-size: 1.2rem;
        letter-spacing: 1.5px;
    }

    .modal-body {
        padding: 1.2rem;
    }

    .modal-body h6 {
        font-size: 0.95rem;
        margin-bottom: 1.2rem;
    }

    /* Formularios más compactos */
    .form-control {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }

    .form-label {
        font-size: 0.88rem;
    }

    .btn-outline-primary,
    .btn-outline-secondary {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }

    /* Success modals */
    .success-title {
        font-size: 1.4rem;
    }

    .success-openhouse {
        font-size: 1.8rem;
    }

    .success-volterra {
        font-size: 1.5rem;
    }

    .success-description {
        font-size: 0.88rem;
    }
}

.form-control {
    background-color: white;
    border: none;
    border-radius: 25px;
    padding: 0.8rem 1.5rem;
    font-size: 0.95rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.form-control:focus {
    background-color: white;
    border-color: var(--primary-gold);
    box-shadow: 0 2px 12px rgba(196, 149, 92, 0.2);
}

.form-label {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.form-label small {
    color: var(--text-light);
    font-weight: 400;
    font-size: 0.85rem;
}

.btn-outline-primary {
    border: 2px solid var(--primary-gold);
    color: var(--primary-gold);
    background-color: white;
    border-radius: 25px;
    padding: 0.8rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background-color: var(--primary-gold);
    border-color: var(--primary-gold);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(196, 149, 92, 0.3);
}

.btn-outline-secondary {
    border: 2px solid var(--dark-gold);
    color: var(--dark-gold);
    background-color: white;
    border-radius: 25px;
    padding: 0.8rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-outline-secondary:hover {
    background-color: var(--dark-gold);
    border-color: var(--dark-gold);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(184, 137, 74, 0.3);
}

.modal-footer-logo {
    text-align: center;
    margin-top: 2rem;
}

.modal-footer-logo img {
    width: 100px;
    height: auto;
    opacity: 0.8;
}

/* Success/Rejection Modals */
.result-modal-content {
    border-radius: 30px;
    border: none;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
    background-image: url('../assets/img/bacground-alert.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.result-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 10;
}

.success-message {
    text-align: center;
    padding: 3rem 2rem;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.success-title {
    color: var(--primary-gold);
    font-size: 1.8rem;
    font-weight: 400;
    letter-spacing: 4px;
    margin-bottom: 1.5rem;
}

.success-subtitle {
    color: var(--text-dark);
    font-size: 1rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.success-openhouse {
    color: var(--primary-gold);
    font-size: clamp(3rem, 8vw, 5rem);
    font-style: italic;
    margin: 1rem 0;
    line-height: 1.2;
}

.success-location {
    color: var(--text-dark);
    font-size: 1.2rem;
    margin: 1rem 0;
}

.success-volterra {
    color: var(--primary-gold);
    font-size: 1.8rem;
    font-weight: 400;
    letter-spacing: 4px;
    margin-bottom: 1.5rem;
}

.success-description {
    color: var(--text-dark);
    font-size: 0.95rem;
    line-height: 1.8;
    max-width: 600px;
    margin: 1.5rem auto;
    text-align: center;
}

/* Landscape móviles */
@media (max-height: 600px) and (orientation: landscape) {
    .hero-section {
        height: auto;
        min-height: 100vh;
    }

    .hero-content {
        gap: 1rem;
        padding: 3rem 1rem;
    }

    .hero-subtitle {
        font-size: clamp(1rem, 3vw, 1.5rem);
        margin-bottom: 0.5rem;
    }

    .hero-title {
        font-size: clamp(2rem, 6vw, 3.5rem);
    }

    .hero-logo-img {
        width: clamp(80px, 15vw, 120px);
    }

    .hero-coming-soon {
        font-size: clamp(0.9rem, 2vw, 1.2rem);
    }

    /* Botones de navegación en landscape */
    .nav-buttons-container-responsive {
        gap: 0.4rem;
    }

    .nav-buttons-container-responsive .btn-nav {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
}

/* Landscape tablets y móviles grandes */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-section {
        height: auto;
        min-height: 100vh;
        padding: 2rem 0;
    }

    .hero-content {
        gap: 1.2rem;
    }

    /* Modales más compactos en landscape */
    .modal-dialog {
        max-height: 90vh;
        margin: 1rem auto;
    }

    .modal-body {
        max-height: 70vh;
        overflow-y: auto;
    }

    /* Feature sections más compactas */
    .feature-section-1-new .feature-background-image,
    .feature-section-2-new .feature-background-image {
        min-height: 60vh;
    }

    .feature-text-content-beige,
    .feature-text-content-green {
        padding: 1rem !important;
    }

    .feature-paragraph-beige,
    .feature-paragraph-green {
        font-size: clamp(0.75rem, 2vw, 0.85rem);
        line-height: 1.4;
        margin-bottom: 0.5rem;
    }

    /* Bottom section más compacto */
    .bottom-section {
        padding: 3rem 0;
    }

    .bottom-section-content {
        min-height: 300px;
        padding: 2rem 1.5rem;
    }
}

/* Landscape móviles pequeños */
@media (max-width: 568px) and (orientation: landscape) {
    .hero-subtitle {
        font-size: clamp(0.9rem, 3vw, 1.2rem);
    }

    .content-section {
        padding: 2rem 0;
        min-height: auto;
    }

    .content-title-wrapper {
        margin-bottom: 1.5rem;
    }

    .content-title {
        font-size: clamp(0.8rem, 2.5vw, 1rem);
        padding: 0.7rem 1.5rem;
    }

    .video-wrapper {
        max-width: 70%;
    }

    .feature-section {
        min-height: auto;
        padding: 2.5rem 0;
        background-attachment: scroll;
    }

    .feature-content {
        padding: 2rem 1.5rem;
    }

    .feature-content-text {
        padding: 2rem 1.5rem;
        max-width: 85%;
    }

    .feature-content-text-right {
        padding: 2rem 1.5rem;
    }

    .feature-paragraph {
        font-size: clamp(0.9rem, 2.5vw, 1.05rem);
        margin-bottom: 1.2rem;
        line-height: 1.5;
    }

    .feature-main-title {
        font-size: clamp(1.5rem, 5vw, 2rem);
        margin-bottom: 1.5rem;
    }

    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        margin-top: 1.5rem;
    }

    .feature-icon {
        width: 55px;
        height: 55px;
        margin-bottom: 0.8rem;
    }

    .feature-icon i {
        font-size: 1.3rem;
    }

    .feature-item-title {
        font-size: clamp(0.95rem, 3vw, 1.1rem);
        margin-bottom: 0.5rem;
    }

    .feature-item-description {
        font-size: clamp(0.8rem, 2.5vw, 0.95rem);
        line-height: 1.4;
    }
}

/* Tablets y pantallas medianas */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-content {
        gap: 2rem;
    }

    .hero-subtitle {
        font-size: clamp(1.5rem, 3.5vw, 2rem);
    }

    .hero-title {
        font-size: clamp(3.5rem, 7vw, 5rem);
    }

    .hero-logo-img {
        width: clamp(180px, 25vw, 220px);
    }

    .content-section {
        padding: 4.5rem 0;
    }

    .content-title {
        font-size: clamp(1.1rem, 2.8vw, 1.3rem);
        padding: 0.95rem 2.2rem;
    }

    .video-wrapper {
        max-width: 750px;
    }

    .video-container {
        border-radius: 18px;
    }

    .feature-section {
        min-height: 65vh;
    }

    .feature-content {
        padding: 3.5rem 2rem;
    }

    .feature-content-text {
        padding: 3.5rem 2rem;
    }

    .feature-content-text-right {
        padding: 3.5rem 2rem;
    }

    .feature-paragraph {
        font-size: clamp(1.05rem, 2.8vw, 1.25rem);
        margin-bottom: 1.6rem;
    }

    .feature-main-title {
        font-size: clamp(2.3rem, 5.5vw, 3.2rem);
        margin-bottom: 2.8rem;
    }

    .feature-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 2.3rem;
    }

    .feature-icon {
        width: 75px;
        height: 75px;
    }

    .feature-icon i {
        font-size: 1.9rem;
    }

    .feature-item-title {
        font-size: clamp(1.2rem, 3vw, 1.4rem);
    }

    .feature-item-description {
        font-size: clamp(1rem, 2.5vw, 1.15rem);
    }
}

/* Mobile Responsiveness */
@media (max-width: 992px) {
    .content-section {
        padding: 4rem 0;
        min-height: auto;
    }

    .content-title {
        font-size: clamp(0.9rem, 3vw, 1.2rem);
        padding: 0.9rem 2rem;
    }

    .video-wrapper {
        max-width: 100%;
    }

    .feature-section {
        min-height: 60vh;
        background-attachment: scroll;
    }

    .feature-content {
        padding: 3rem 1.5rem;
    }

    .feature-content-text {
        padding: 3rem 1.5rem;
    }

    .feature-content-text-right {
        padding: 3rem 1.5rem;
    }

    .feature-paragraph {
        font-size: clamp(1rem, 3vw, 1.2rem);
        margin-bottom: 1.5rem;
    }

    .feature-main-title {
        font-size: clamp(2rem, 6vw, 2.8rem);
        margin-bottom: 2.5rem;
    }

    .feature-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 2rem;
    }

    .feature-icon {
        width: 70px;
        height: 70px;
    }

    .feature-icon i {
        font-size: 1.8rem;
    }

    .feature-item-title {
        font-size: clamp(1.1rem, 2.8vw, 1.3rem);
    }

    .feature-item-description {
        font-size: clamp(0.9rem, 2.5vw, 1rem);
    }
}

@media (max-width: 768px) {
    .hero-section {
        height: 100svh;
        /* Para móviles con barras de navegación */
    }

    .hero-content {
        gap: 1.8rem;
        padding: 1.5rem 1rem;
    }

    .hero-subtitle {
        font-size: clamp(1.2rem, 5vw, 1.8rem);
    }

    .hero-title {
        font-size: clamp(2.5rem, 10vw, 4rem);
    }

    .hero-logo-img {
        width: clamp(120px, 30vw, 180px);
    }

    .hero-coming-soon {
        font-size: clamp(1rem, 4vw, 1.4rem);
    }

    .content-section {
        padding: 3rem 0;
    }

    .content-wrapper {
        padding: 0 1rem;
    }

    .content-title-wrapper {
        margin-bottom: 2rem;
    }

    .content-title {
        font-size: clamp(0.85rem, 3.5vw, 1.1rem);
        padding: 0.8rem 1.5rem;
        border-radius: 40px;
    }

    .video-container {
        border-radius: 15px;
    }

    .video-container:hover {
        transform: translateY(-2px);
    }

    .feature-section {
        min-height: auto;
        padding: 3rem 0;
    }

    .feature-content {
        padding: 2.5rem 1rem;
    }

    .feature-content-text {
        padding: 2.5rem 1rem;
        max-width: 100%;
    }

    .feature-content-text-right {
        padding: 2.5rem 1rem;
        text-align: center;
    }

    .feature-content-text-right .feature-text-content {
        text-align: center;
    }

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

    .feature-paragraph {
        font-size: clamp(0.95rem, 3.5vw, 1.15rem);
        margin-bottom: 1.3rem;
        text-align: left;
    }

    .feature-content-text-right .feature-paragraph {
        text-align: center;
    }

    .feature-item-inline {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }

    .feature-item-inline .feature-paragraph {
        text-align: center;
    }

    .feature-item-inline .feature-icon {
        width: 55px;
        height: 55px;
    }

    .feature-paragraph-highlight {
        text-align: center;
        margin-top: 1.5rem;
    }

    .feature-main-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
        margin-bottom: 2rem;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-top: 2rem;
    }

    .feature-icon {
        width: 65px;
        height: 65px;
    }

    .feature-icon i {
        font-size: 1.6rem;
    }

    .feature-item-title {
        font-size: clamp(1.1rem, 3vw, 1.3rem);
        margin-bottom: 0.8rem;
    }

    .feature-item-description {
        font-size: clamp(0.9rem, 3vw, 1.05rem);
    }

    .feature-item:hover {
        transform: translateY(-4px);
    }

    .volterra-logo {
        width: 120px;
        height: 120px;
        margin-bottom: 40px;
    }

    .logo-tree {
        width: 50px;
        height: 50px;
    }

    .logo-tree::before {
        font-size: 1.5rem;
    }

    .btn-primary {
        padding: 12px 25px;
        font-size: 1rem;
    }
}

/* Safari specific fixes */
@media not all and (min-resolution:.001dpcm) {
    @supports (-webkit-appearance:none) {
        .hero-video-wrapper {
            height: 100vh !important;
        }

        .hero-video {
            position: fixed !important;
            top: 0 !important;
            left: 0 !important;
            transform: none !important;
            -webkit-transform: none !important;
            width: 100% !important;
            height: 100% !important;
        }
    }
}

@media (max-width: 576px) {
    .hero-content {
        gap: 1.5rem;
        padding: 1rem 0.5rem;
    }

    .hero-subtitle {
        font-size: clamp(1rem, 6vw, 1.5rem);
        margin-bottom: 0.5rem;
    }

    .hero-title {
        font-size: clamp(2rem, 12vw, 3rem);
    }

    .hero-logo-img {
        width: clamp(100px, 35vw, 150px);
    }

    .hero-coming-soon {
        font-size: clamp(0.9rem, 5vw, 1.2rem);
    }

    .content-section {
        padding: 2.5rem 0;
    }

    .content-wrapper {
        padding: 0 0.75rem;
    }

    .content-title-wrapper {
        margin-bottom: 1.5rem;
    }

    .content-title {
        font-size: clamp(0.75rem, 4vw, 1rem);
        padding: 0.7rem 1.2rem;
        border-radius: 35px;
    }

    .video-wrapper {
        padding: 0 0.5rem;
    }

    .video-container {
        border-radius: 12px;
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    }

    .video-container:hover {
        transform: none;
    }

    .feature-section {
        min-height: auto;
        padding: 2.5rem 0;
    }

    .feature-content {
        padding: 2rem 1rem;
    }

    .feature-content-text {
        padding: 2rem 1rem;
    }

    .feature-content-text-right {
        padding: 2rem 1rem;
        text-align: center;
    }

    .feature-content-text-right .feature-text-content {
        text-align: center;
    }

    .feature-content-text-right .feature-paragraph {
        text-align: center;
    }

    .feature-item-inline {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.8rem;
        margin-bottom: 1.2rem;
    }

    .feature-item-inline .feature-paragraph {
        text-align: center;
    }

    .feature-item-inline .feature-icon {
        width: 50px;
        height: 50px;
    }

    .feature-item-inline .feature-icon i {
        font-size: 1.3rem;
    }

    .feature-paragraph-highlight {
        text-align: center;
        margin-top: 1.2rem;
    }

    .feature-paragraph {
        font-size: clamp(0.9rem, 4vw, 1.05rem);
        margin-bottom: 1.2rem;
        line-height: 1.6;
    }

    .feature-main-title {
        font-size: clamp(1.5rem, 8vw, 2rem);
        margin-bottom: 1.5rem;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        gap: 1.8rem;
        margin-top: 1.5rem;
    }

    .feature-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 1rem;
    }

    .feature-icon i {
        font-size: 1.4rem;
    }

    .feature-item-title {
        font-size: clamp(1rem, 4vw, 1.2rem);
        margin-bottom: 0.6rem;
    }

    .feature-item-description {
        font-size: clamp(0.85rem, 3.5vw, 1rem);
        line-height: 1.5;
    }

    .feature-item:hover {
        transform: translateY(-2px);
    }
}

/* Responsive - Móviles muy pequeños (iPhone SE, Galaxy S8, etc.) */
@media (max-width: 380px) {
    .hero-content {
        gap: 1.2rem;
        padding: 0.8rem 0.5rem;
    }

    .hero-subtitle {
        font-size: clamp(0.9rem, 5vw, 1.3rem);
        margin-bottom: 0.3rem;
    }

    .hero-title {
        font-size: clamp(1.8rem, 11vw, 2.5rem);
    }

    .hero-logo-img {
        width: clamp(90px, 32vw, 130px);
    }

    .content-section {
        padding: 2rem 0;
    }

    .content-title {
        font-size: clamp(0.7rem, 3.5vw, 0.9rem);
        padding: 0.6rem 1rem;
        border-radius: 30px;
    }

    .feature-paragraph-beige,
    .feature-paragraph-green {
        font-size: clamp(0.75rem, 3.8vw, 0.85rem);
        line-height: 1.5;
    }

    .bottom-section-content {
        padding: 20px 15px;
        min-height: 200px;
        gap: 12px;
    }

    .bottom-section-text {
        font-size: 1rem;
        line-height: 1.55;
    }

    .bottom-section .btn-primary {
        padding: 11px 24px;
        font-size: 0.95rem;
    }

    .nav-buttons-container-responsive .btn-nav {
        padding: 0.65rem 0.8rem;
        font-size: 0.9rem;
    }

    /* Modales más compactos */
    .modal-body h6 {
        font-size: 0.95rem;
    }

    .form-label {
        font-size: 0.85rem;
    }

    .form-control {
        font-size: 0.9rem;
        padding: 0.5rem 0.75rem;
    }

    .btn {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }

    /* Galería más compacta */
    .gallery-section .row {
        gap: 0.5rem;
    }

    /* Feature sections */
    .feature-section-1-new .feature-background-image,
    .feature-section-2-new .feature-background-image {
        min-height: 35vh;
    }

    .feature-text-content-beige,
    .feature-text-content-green {
        padding: 1rem 1rem !important;
    }
}

@font-face {
    font-family: 'Canora';
    src: url('../assets/fonts/CanoraTest-Frente.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}


.canora-family {
    font-family: "Canora";
    font-weight: 600;
}

.background-alert {
    background-image: url(/assets/img/background-alert.jpeg);
}

/* Spinner del formulario */
.form-spinner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(245, 239, 231, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    border-radius: 15px;
}

.form-spinner-overlay .spinner-border {
    color: var(--primary-gold);
}

.form-spinner-overlay p {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 1rem;
}

#contactForm button[type="submit"]:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

#contactForm button[type="submit"] .spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15rem;
}

.mapa-section {
    margin-top: 5rem;
    margin-left: 0;
    margin-right: 0;
    background-color: #cb9d3d;
    overflow: hidden;
}

.mapa-image-container {
    padding: 3rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mapa-image-container img {
    max-width: 60%;
    /* Escala menor - 60% del tamaño original */
    height: auto;
    object-fit: contain;
}

.mapa-clickable {
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.mapa-clickable:hover {
    transform: scale(1.02);
    opacity: 0.9;
}

.mapa-image-container a {
    display: flex;
    width: 100%;
    text-decoration: none;
    align-items: center;
    justify-content: center;
}

.mapa-text-container {
    padding: 2rem;
    background-color: rgba(255, 255, 255, 0.1);
    min-height: 300px;
}

.mapa-text-image {
    max-width: 60%;
    /* Misma escala que el mapa (60%) */
    height: auto;
    object-fit: contain;
}

/* Section Title Styles */
.section-title {
    padding: 2rem 0;
    overflow-x: hidden;
}

.section-title .container {
    max-width: 100%;
}

.section-title-image {
    max-width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.section-title-image:hover {
    transform: scale(1.02);
}

/* Título Villa Fiorenza con fuente Perpetua */
.villa-fiorenza-title {
    font-family: 'Perpetua', 'Georgia', serif;
    font-size: 4rem;
    font-weight: 400;
    color: #000000;
    text-align: center;
    margin: 0;
    padding: 2rem 0;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    line-height: 1.2;
}

/* Responsive Section Titles */
@media (max-width: 768px) {
    .section-title {
        padding: 1.5rem 0;
    }

    .section-title .container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .section-title .col-lg-6,
    .section-title .col-md-8,
    .section-title .col-10 {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    .section-title-image {
        max-width: 90%;
        margin: 0 auto;
    }

    .villa-fiorenza-title {
        font-size: 2.8rem;
        letter-spacing: 0.12em;
        padding: 1.5rem 0;
    }
}

@media (max-width: 576px) {
    .section-title {
        padding: 1rem 0;
    }

    .section-title-image {
        max-width: 95%;
    }

    .villa-fiorenza-title {
        font-size: 2.2rem;
        letter-spacing: 0.1em;
        padding: 1.2rem 0;
    }
}

@media (max-width: 380px) {
    .section-title {
        padding: 0.75rem 0;
    }

    .section-title-image {
        max-width: 100%;
    }

    .villa-fiorenza-title {
        font-size: 1.6rem;
        letter-spacing: 0.08em;
        padding: 1rem 0;
    }
}

/* Gallery Section Improvements */
.gallery-section {
    padding: 2rem 0;
    overflow-x: hidden;
}

.gallery-section .container {
    max-width: 100%;
}

.gallery-section .row {
    margin-left: -0.5rem;
    margin-right: -0.5rem;
}

.gallery-section .gallery-item {
    margin-bottom: 1rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.gallery-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: block;
    /* Mantener proporción natural en desktop/laptop */
}

.gallery-item img:focus {
    outline: 3px solid var(--primary-gold);
    outline-offset: 2px;
}

.gallery-item img:active {
    transform: scale(0.98);
}

.pop-up {
    transition: all ease-in 300ms;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.pop-up:hover {
    transform: scale(1.05);
}

.pop-up:focus {
    outline: 3px solid var(--primary-gold);
    outline-offset: 3px;
    border-radius: 8px;
}

.pop-up:active {
    transform: scale(0.98);
}

/* Mejora para touch devices */
@media (hover: none) and (pointer: coarse) {
    .pop-up:hover {
        transform: none;
    }

    .pop-up:active {
        transform: scale(0.95);
    }
}

/* Responsive Gallery - Tablets */
@media (max-width: 991px) {
    .gallery-section {
        padding: 3rem 0;
    }

    .gallery-section .row {
        gap: 1rem;
        margin-left: 0;
        margin-right: 0;
    }

    .gallery-item {
        margin-bottom: 0;
    }

    .gallery-item img {
        border-radius: 12px;
        aspect-ratio: 1 / 1;
    }
}

/* Responsive Gallery - Mobile */
@media (max-width: 768px) {
    .gallery-section {
        padding: 2rem 0;
    }

    .gallery-section .container {
        /* Mantener padding estándar de mobile */
        padding-left: 12px !important;
        padding-right: 12px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        width: 100% !important;
    }

    .gallery-section .row {
        gap: 0;
        /* Márgenes negativos deben coincidir con el padding de las columnas */
        margin-left: -8px !important;
        margin-right: -8px !important;
        display: flex !important;
        flex-wrap: wrap !important;
    }

    .gallery-section [class*="col-"] {
        /* Padding de columnas para crear gap de 16px entre imágenes */
        padding-left: 8px !important;
        padding-right: 8px !important;
        margin-bottom: 16px !important;
    }

    .gallery-section .col-6 {
        width: 50% !important;
        max-width: 50% !important;
        flex: 0 0 50% !important;
    }

    .gallery-section .col-md-4 {
        width: 50% !important;
        max-width: 50% !important;
        flex: 0 0 50% !important;
    }

    .gallery-section .gallery-item {
        width: 100%;
        padding-left: 0;
        padding-right: 0;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .gallery-item img {
        border-radius: 8px;
        aspect-ratio: 1 / 1;
        width: 100% !important;
        height: auto !important;
        object-fit: cover;
    }

    .pop-up:hover {
        transform: none;
    }

    .pop-up:active {
        transform: scale(0.97);
        opacity: 0.9;
    }
}

/* Responsive Gallery - Small Mobile */
@media (max-width: 576px) {
    .gallery-section {
        padding: 1.5rem 0;
    }

    .gallery-section .container {
        padding-left: 12px !important;
        padding-right: 12px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        width: 100% !important;
    }

    .gallery-section .row {
        gap: 0;
        margin-left: -6px !important;
        margin-right: -6px !important;
    }

    .gallery-section [class*="col-"] {
        padding-left: 6px !important;
        padding-right: 6px !important;
        margin-bottom: 12px !important;
    }

    .gallery-item img {
        border-radius: 6px;
    }
}

/* Responsive Gallery - Extra Small Mobile */
@media (max-width: 380px) {
    .gallery-section {
        padding: 1rem 0;
    }

    .gallery-section .container {
        padding-left: 12px !important;
        padding-right: 12px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        width: 100% !important;
    }

    .gallery-section .row {
        gap: 0;
        margin-left: -5px !important;
        margin-right: -5px !important;
    }

    .gallery-section [class*="col-"] {
        padding-left: 5px !important;
        padding-right: 5px !important;
        margin-bottom: 10px !important;
    }

    .gallery-item img {
        border-radius: 4px;
    }
}

/* Transiciones suaves para la galería */
.gallery-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

/* Efecto hover mejorado */
.gallery-item img:hover {
    transform: scale(1.05);
    cursor: pointer;
}

/* Overlay para imagen expandida */
.image-expand-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(5px);
}

.image-expand-overlay.active {
    opacity: 1;
}

.image-expand-container {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.image-expand-img {
    max-width: 100%;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: imageExpandFadeIn 0.3s ease;
}

@keyframes imageExpandFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Efecto blur para las demás imágenes cuando una está expandida */
.gallery-item.blurred {
    filter: blur(3px);
    opacity: 0.5;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.gallery-item.blurred img {
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.image-expand-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background-color: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 2.5rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10000;
    line-height: 1;
    padding: 0;
}

.image-expand-close:hover {
    background-color: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

.image-expand-close:active {
    transform: scale(0.95);
}

/* Responsive para overlay - Tablets */
@media (max-width: 991.98px) {
    .image-expand-container {
        max-width: 95%;
        padding: 1.5rem;
    }

    .image-expand-img {
        max-height: 88vh;
        border-radius: 10px;
    }

    .image-expand-close {
        top: 1.5rem;
        right: 1.5rem;
        width: 45px;
        height: 45px;
        font-size: 2.2rem;
    }
}

/* Responsive para overlay - Móviles */
@media (max-width: 768px) {
    .image-expand-container {
        max-width: 95%;
        padding: 1rem;
    }

    .image-expand-img {
        max-height: 85vh;
        border-radius: 8px;
    }

    .image-expand-close {
        top: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
        font-size: 2rem;
    }
}

/* Responsive para overlay - Pantallas muy pequeñas */
@media (max-width: 576px) {
    .image-expand-container {
        max-width: 98%;
        padding: 0.75rem;
    }

    .image-expand-img {
        max-height: 80vh;
        border-radius: 6px;
    }

    .image-expand-close {
        top: 0.75rem;
        right: 0.75rem;
        width: 35px;
        height: 35px;
        font-size: 1.75rem;
    }
}

/* Responsive para overlay - Pantallas en orientación horizontal (landscape) */
@media (max-width: 768px) and (orientation: landscape) {
    .image-expand-container {
        max-width: 90%;
        padding: 1rem;
    }

    .image-expand-img {
        max-height: 90vh;
    }
}

/* Mapa Section Responsive */
@media (max-width: 992px) {
    .mapa-image-container {
        padding: 2rem 1.5rem;
    }

    .mapa-image-container img {
        max-width: 80%;
        /* Ligeramente más grande en tablets */
    }

    .mapa-text-container {
        padding: 2rem 1.5rem;
        min-height: 250px;
    }

    .mapa-text-image {
        max-width: 80%;
        /* Misma escala que el mapa en tablets (80%) */
    }
}

@media (max-width: 768px) {
    .mapa-section {
        margin-top: 3rem;
    }

    .mapa-image-container {
        padding: 1.5rem 1rem;
    }

    .mapa-image-container img {
        max-width: 90%;
        /* Más grande en móviles para mejor visibilidad */
    }

    .mapa-text-container {
        padding: 1.5rem 1rem;
        min-height: 200px;
    }

    .mapa-text-image {
        max-width: 90%;
        /* Misma escala que el mapa en móviles (90%) */
    }
}

@media (max-width: 576px) {
    .mapa-image-container {
        padding: 1rem 0.5rem;
    }

    .mapa-image-container img {
        max-width: 95%;
        /* Casi completo en pantallas muy pequeñas */
    }

    .mapa-text-container {
        padding: 1rem 0.5rem;
        min-height: 180px;
    }

    .mapa-text-image {
        max-width: 95%;
        /* Misma escala que el mapa en pantallas muy pequeñas (95%) */
    }
}

/* Section Title Responsive */
@media (max-width: 768px) {
    .section-title {
        padding: 1.5rem 0;
    }
}

@media (max-width: 576px) {
    .section-title {
        padding: 1rem 0;
    }
}

/* Estilos para el Modal de Instagram */
.instagram-modal-content {
    border-radius: 25px;
    border: none;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.25);
    background-color: #2A4939 !important;
    /* Verde oscuro usado en la página */
    overflow: hidden;
}

/* Asegurar que el modal-body también tenga fondo verde */
.instagram-modal-content .modal-body {
    background-color: #2A4939;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: stretch;
    min-height: 400px;
    padding: 2rem 1rem;
}

/* Asegurar que el modal-header también tenga fondo verde */
.instagram-modal-content .modal-header {
    background-color: #2A4939;
    border-bottom: none;
    padding: 1rem 1rem 0 1rem;
}

.instagram-modal-title {
    color: #FFFFFF;
    /* Blanco */
    font-weight: 700;
    font-size: 2rem;
    /* Fallback para Safari < 13.1 */
    font-size: clamp(1.5rem, 3vw, 2rem);
    letter-spacing: 0.5px;
    margin: 0;
    padding: 0 1rem;
    text-align: center;
    flex-shrink: 0;
}

.instagram-image-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 1rem 0.5rem;
    flex: 1;
    min-height: 0;
}

.instagram-profile-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: block;
    margin: 0 auto;
    object-fit: contain;
}

.instagram-profile-image:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.instagram-modal-text {
    color: #FFFFFF;
    /* Blanco */
    font-size: 1.2rem;
    /* Fallback para Safari < 13.1 */
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.6;
    margin: 0;
    padding: 0 1rem;
    text-align: center;
    flex-shrink: 0;
}

.instagram-link {
    color: #FFFFFF;
    /* Blanco */
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.5);
    text-underline-offset: 3px;
    font-weight: 700;
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 2px;
}

.instagram-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #FFFFFF;
    transition: width 0.3s ease;
}

.instagram-link:hover {
    color: #FFFFFF;
    text-decoration: none;
}

.instagram-link:hover::after {
    width: 100%;
}

/* Asegurar que el botón de cerrar sea visible sobre fondo verde */
.instagram-modal-content .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
    /* Hace el botón blanco */
    opacity: 0.9;
}

.instagram-modal-content .btn-close:hover {
    opacity: 1;
}

/* Responsive para el modal de Instagram */
@media (max-width: 992px) {
    .instagram-modal-content {
        margin: 1rem;
    }

    .instagram-modal-content .modal-body {
        min-height: 350px;
        padding: 1.5rem 0.75rem;
    }

    .instagram-profile-image {
        max-width: 450px;
    }
}

@media (max-width: 768px) {
    .instagram-modal-content {
        margin: 0.5rem;
        border-radius: 20px;
    }

    .instagram-modal-content .modal-body {
        min-height: 300px;
        padding: 1.5rem 0.5rem;
    }

    .instagram-modal-title {
        font-size: 1.5rem;
        padding: 0 0.5rem;
    }

    .instagram-image-wrapper {
        padding: 0.5rem 0;
    }

    .instagram-profile-image {
        max-width: 100%;
        border-radius: 15px;
    }

    .instagram-modal-text {
        font-size: 0.95rem;
        padding: 0 0.5rem;
    }
}

@media (max-width: 576px) {
    .instagram-modal-content {
        border-radius: 15px;
    }

    .instagram-modal-content .modal-body {
        min-height: 280px;
        padding: 1rem 0.5rem;
    }

    .instagram-modal-title {
        font-size: 1.25rem;
        padding: 0 0.5rem;
    }

    .instagram-image-wrapper {
        padding: 0.5rem 0;
    }

    .instagram-profile-image {
        border-radius: 12px;
    }

    .instagram-modal-text {
        font-size: 0.9rem;
        line-height: 1.5;
        padding: 0 0.5rem;
    }

    .instagram-modal-content .modal-header {
        padding: 0.75rem 0.75rem 0 0.75rem;
    }
}

/* Mejoras de accesibilidad y UX */
*:focus-visible {
    outline: 2px solid var(--primary-gold);
    outline-offset: 2px;
}

button:focus-visible,
a:focus-visible {
    outline: 3px solid var(--primary-gold);
    outline-offset: 3px;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Mejorar contraste de texto */
.feature-paragraph {
    text-shadow: 1px 1px 8px rgba(0, 0, 0, 0.3);
}

/* Mejoras para touch devices */
@media (hover: none) and (pointer: coarse) {

    .btn-primary:hover,
    .btn-outline-primary:hover,
    .btn-outline-secondary:hover {
        transform: none;
    }

    .btn-primary:active,
    .btn-outline-primary:active,
    .btn-outline-secondary:active {
        transform: scale(0.95);
    }

    .gallery-item img:hover {
        transform: none;
    }
}

/* Loading states mejorados - solo para imágenes sin src */
.gallery-item img:not([src]),
.gallery-item img[src=""] {
    background-color: #f0f0f0;
    background-image: linear-gradient(90deg, #f0f0f0 0px, #e0e0e0 40px, #f0f0f0 80px);
    background-size: 200px 100%;
    animation: loading 1.5s infinite;
    min-height: 200px;
}

@keyframes loading {
    0% {
        background-position: -200px 0;
    }

    100% {
        background-position: calc(200px + 100%) 0;
    }
}

/* ========================================
   SCROLL REVEAL ANIMATIONS
   ======================================== */

/* Estados iniciales - elementos ocultos antes de entrar en viewport */
.scroll-reveal,
.scroll-reveal-left,
.scroll-reveal-right,
.scroll-reveal-scale {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Fade in desde abajo */
.scroll-reveal {
    transform: translateY(50px);
}

/* Slide desde la izquierda */
.scroll-reveal-left {
    transform: translateX(-50px);
}

/* Slide desde la derecha */
.scroll-reveal-right {
    transform: translateX(50px);
}

/* Scale desde pequeño */
.scroll-reveal-scale {
    transform: scale(0.9);
}

/* Estado visible - cuando entra en viewport */
.scroll-reveal.visible,
.scroll-reveal-left.visible,
.scroll-reveal-right.visible,
.scroll-reveal-scale.visible {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
}

/* Delays escalonados para efectos en cascada */
.scroll-reveal-delay-1 {
    transition-delay: 0.1s;
}

.scroll-reveal-delay-2 {
    transition-delay: 0.2s;
}

.scroll-reveal-delay-3 {
    transition-delay: 0.3s;
}

.scroll-reveal-delay-4 {
    transition-delay: 0.4s;
}

.scroll-reveal-delay-5 {
    transition-delay: 0.5s;
}

.scroll-reveal-delay-6 {
    transition-delay: 0.6s;
}

/* ========================================
   SALES TEAM SECTION
   ======================================== */

.sales-team-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #F5F1E8 0%, #E8DCC8 100%);
    position: relative;
    overflow: hidden;
}

.sales-team-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23C4955C' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
    pointer-events: none;
}

.sales-team-card {
    background: white;
    border-radius: 20px;
    padding: 60px 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    text-align: center;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sales-team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.15);
}

.sales-team-icon {
    font-size: 64px;
    color: var(--primary-gold);
    margin-bottom: 30px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.sales-team-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
    line-height: 1.3;
}

.sales-team-subtitle {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 35px;
    line-height: 1.6;
}

.sales-team-subtitle strong {
    color: var(--primary-gold);
    font-weight: 600;
}

.btn-sales-team {
    background: linear-gradient(135deg, var(--primary-gold) 0%, var(--dark-gold) 100%);
    border: none;
    color: white;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(196, 149, 92, 0.3);
}

.btn-sales-team:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(196, 149, 92, 0.4);
    color: white;
}

.btn-sales-team:active {
    transform: translateY(0);
    box-shadow: 0 8px 25px rgba(196, 149, 92, 0.3);
}

/* Sales Team Modal Styles */
#salesTeamModal .modal-content {
    border-radius: 20px;
    border: none;
    overflow: hidden;
}

#salesTeamModal .modal-header {
    background: linear-gradient(135deg, var(--primary-gold) 0%, var(--dark-gold) 100%);
    border: none;
    padding: 20px;
}

#salesTeamModal .modal-header .btn-close {
    filter: brightness(0) invert(1);
}

#salesTeamModal .modal-body {
    padding: 40px;
    position: relative;
}

#salesTeamModal .form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

#salesTeamModal .form-control {
    border: 2px solid #E8DCC8;
    border-radius: 10px;
    padding: 12px 16px;
    transition: all 0.3s ease;
}

#salesTeamModal .form-control:focus {
    border-color: var(--primary-gold);
    box-shadow: 0 0 0 0.2rem rgba(196, 149, 92, 0.15);
}

.form-spinner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: 20px;
}

/* Sales Team Success Modal */
#salesTeamSuccessModal .result-modal-content {
    border-radius: 20px;
    border: none;
    overflow: hidden;
}

#salesTeamSuccessModal .result-close {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
}

#salesTeamSuccessModal .success-message {
    padding: 60px 40px;
    text-align: center;
}

#salesTeamSuccessModal .success-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-gold);
    margin-bottom: 20px;
}

#salesTeamSuccessModal .success-subtitle {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 20px;
}

#salesTeamSuccessModal .success-description {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.6;
}

/* Responsive - Sales Team Section */
@media (max-width: 768px) {
    .sales-team-section {
        padding: 60px 0;
    }

    .sales-team-card {
        padding: 40px 30px;
    }

    .sales-team-icon {
        font-size: 48px;
        margin-bottom: 20px;
    }

    .sales-team-title {
        font-size: 24px;
        margin-bottom: 15px;
    }

    .sales-team-subtitle {
        font-size: 16px;
        margin-bottom: 25px;
    }

    .btn-sales-team {
        padding: 12px 30px;
        font-size: 16px;
    }

    #salesTeamModal .modal-body {
        padding: 30px 20px;
    }

    #salesTeamSuccessModal .success-message {
        padding: 40px 30px;
    }

    #salesTeamSuccessModal .success-title {
        font-size: 28px;
    }

    #salesTeamSuccessModal .success-subtitle {
        font-size: 20px;
    }
}

/* ========================================
   SAFARI iOS ESPECÍFICO - Fix para Dark Mode
   ======================================== */

/* Detectar Safari en iOS */
@supports (-webkit-touch-callout: none) {
    .btn-nav {
        /* Forzar background sólido sin gradientes */
        background: #C4955C !important;
        background-color: #C4955C !important;
        background-image: none !important;

        /* Forzar color de texto */
        color: rgb(255, 255, 255) !important;
        -webkit-text-fill-color: rgb(255, 255, 255) !important;

        /* Forzar borde */
        border: 1px solid #C4955C !important;
        border-style: solid !important;

        /* Prevenir cualquier transformación de color automática */
        filter: none !important;
        -webkit-filter: none !important;
    }

    .btn-nav:hover,
    .btn-nav:focus,
    .btn-nav:active {
        background: #C4955C !important;
        background-color: #C4955C !important;
        background-image: none !important;
        color: rgb(255, 255, 255) !important;
        -webkit-text-fill-color: rgb(255, 255, 255) !important;
        filter: brightness(0.95) !important;
    }
}

/* Safari Desktop específico */
@media not all and (hover: none) {
    @supports (-webkit-appearance: none) and (not (overflow: -webkit-marquee)) and (not (-ms-ime-align: auto)) and (not (-moz-appearance: none)) {
        .btn-nav {
            background: #C4955C !important;
            color: white !important;
            -webkit-text-fill-color: white !important;
        }
    }
}