:root {
    --azul-oscuro: #0D1F3C;
    --azul-medio: #173A5E;
    --azul-claro: #2E5C8A;
    --verde-azulado: #3D7A8C;
    --verde-menta: #A8D5D8;
    --verde-claro: #D4E9EC;
    --dorado: #FF9326;
    --dorado-claro: #FFA64D;
    --blanco: #FFFFFF;
    --gris-claro: #F5F7FA;
    --gris-medio: #E1E5EB;
    --gris-oscuro: #6B7280;
    --negro: #111827;
    --sombra: rgba(13, 31, 60, 0.15);
    --sombra-fuerte: rgba(13, 31, 60, 0.3);
    --transicion: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--azul-oscuro);
    background: var(--blanco);
    line-height: 1.6;
    overflow-x: hidden;
}

body.loading-body .footer,
body.loading-body .property-modal,
body.loading-body .property-modal.active,
body.loading-body .toast,
body.loading-body header,
body.loading-body .particles-container,
body.loading-body .hero,
body.loading-body section {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

body:not(.loading-body) .property-modal {
    display: none;
}

body:not(.loading-body) .property-modal.active {
    display: flex;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', Georgia, serif;
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transicion);
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, #0059B2 0%, #004080 100%);
    color: var(--blanco);
    box-shadow: 0 4px 20px rgba(0, 89, 178, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 89, 178, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--blanco);
    border: 2px solid var(--blanco);
}

.btn-secondary:hover {
    background: var(--blanco);
    border-color: var(--blanco);
    color: #0059B2;
}

.btn-outline {
    background: transparent;
    color: var(--azul-oscuro);
    border: 2px solid var(--azul-oscuro);
}

.btn-outline:hover {
    background: var(--azul-oscuro);
    color: var(--blanco);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    background: #10183F;
    transition: var(--transicion);
}

.header.scrolled {
    background: rgba(16, 24, 63, 0.95);
    backdrop-filter: blur(20px);
    padding: 0.75rem 0;
    box-shadow: 0 4px 30px var(--sombra);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo img {
    width: 175px;
    height: auto;
    transition: var(--transicion);
}

.logo-text {
    font-family: 'Montserrat', serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--blanco);
    letter-spacing: 3px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-link {
    color: #DDDDDD;
    font-weight: 600;
    font-size: 1.1rem;
    position: relative;
    padding: 0.5rem 0;
    transition: var(--transicion);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #0059B2;
    transition: var(--transicion);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: #0059B2;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.whatsapp-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #FF9326 0%, #FFA64D 100%);
    color: var(--blanco);
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transicion);
}

.whatsapp-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(255, 147, 38, 0.4);
}

.agendar-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #0059B2 0%, #004080 100%);
    color: var(--blanco);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transicion);
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(0, 89, 178, 0.3);
}

.agendar-btn:hover {
    background: linear-gradient(135deg, #004080 0%, #003060 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 89, 178, 0.4);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

/* En desktop el botón "Agendar consulta" vive en el header, no en el menú */
.nav .agendar-btn {
    display: none;
}

.mobile-menu-btn span {
    width: 25px;
    height: 2px;
    background: var(--blanco);
    transition: var(--transicion);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 80px;
}

.hero-slider {
    position: absolute;
    inset: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.1);
    transition: transform 8s ease;
}

.hero-slide.active .hero-slide-bg {
    transform: scale(1);
}

.hero-slide-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(13, 31, 60, 0.85) 0%, rgba(13, 31, 60, 0.6) 50%, rgba(61, 122, 140, 0.4) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    padding: 2rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--blanco);
    color: var(--blanco);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    color: var(--blanco);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-title span {
    color: #FF9326;
    display: block;
}

.hero-description {
    font-size: 1.25rem;
    color: #EEEEEE;
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-stat {
    text-align: center;
}

.hero-stat-number {
    font-family: 'Montserrat', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #FF9326;
}

.hero-stat-label {
    color: var(--blanco);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-nav {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 20;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: var(--transicion);
    border: none;
}

.hero-dot.active {
    background: #0059B2;
    transform: scale(1.3);
}

.hero-arrows {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 20;
}

.hero-arrow {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--blanco);
    cursor: pointer;
    transition: var(--transicion);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.hero-arrow:hover {
    background: #0059B2;
    border-color: #0059B2;
    color: var(--azul-oscuro);
}

/* Search Section */
.search-section {
    position: relative;
    z-index: 100;
    padding: 4rem 2rem;
    background: var(--gris-claro);
}

.search-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.search-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--azul-oscuro);
    margin-bottom: 0.5rem;
}

.search-subtitle {
    font-size: 1rem;
    color: var(--gris-oscuro);
}

.search-box {
    background: var(--blanco);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 20px 60px var(--sombra-fuerte);
    max-width: 1400px;
    margin: 0 auto;
}

.search-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    background: var(--gris-claro);
    padding: 0.5rem;
    border-radius: 15px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.search-tab {
    padding: 0.875rem 1.75rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transicion);
    border: none;
    background: transparent;
    color: var(--gris-oscuro);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-tab i {
    font-size: 1rem;
}

.search-tab.active {
    background: var(--blanco);
    color: var(--azul-oscuro);
    box-shadow: 0 2px 10px var(--sombra);
}

.search-form {
    display: grid;
    grid-template-columns: repeat(4, 1fr) auto;
    gap: 1rem;
    align-items: end;
    width: 100%;
}

.search-form-content {
    display: contents;
}

.search-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.search-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--azul-oscuro);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.search-input, .search-select {
    padding: 0.875rem 1rem;
    border: 2px solid var(--gris-medio);
    border-radius: 10px;
    font-size: 0.95rem;
    color: var(--azul-oscuro);
    background: var(--blanco);
    transition: var(--transicion);
    font-family: 'Lato', sans-serif;
}

.search-input:focus, .search-select:focus {
    outline: none;
    border-color: var(--azul-oscuro);
    box-shadow: 0 0 0 3px rgba(13, 31, 60, 0.1);
}

.search-btn {
    padding: 1rem 2rem;
    height: 54px;
}

/* Properties Section */
.properties-section {
    padding: 6rem 0;
    background: var(--gris-claro);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #0059B2;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.section-badge svg {
    width: 16px;
    height: 16px;
    stroke: #0059B2;
    fill: none;
    stroke-width: 2;
}

/* Contact section badge override */
.contact-section .section-badge {
    color: var(--blanco);
}

.contact-section .section-badge svg {
    stroke: var(--blanco);
}

/* Properties section badge */
.properties-section .section-badge {
    background: #0059B2;
    border-color: #0059B2;
    color: var(--blanco);
}

.properties-section .section-badge svg {
    stroke: var(--blanco);
}

/* Services section badge */
.services-section .section-badge {
    background: #0059B2;
    border-color: #0059B2;
    color: var(--blanco);
}

/* About section badge */
.about-section .section-badge {
    background: #0059B2;
    border-color: #0059B2;
    color: var(--blanco);
}

/* Testimonials section badge */
.testimonials-section .section-badge {
    background: #0059B2;
    border-color: #0059B2;
    color: var(--blanco);
}

.testimonials-section .section-badge svg {
    stroke: var(--blanco);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--azul-oscuro);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #EEEEEE;
    max-width: 600px;
    margin: 0 auto;
}

.properties-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.property-card {
    background: var(--blanco);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px var(--sombra);
    transition: var(--transicion);
}

.property-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px var(--sombra-fuerte);
}

.property-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.property-card:hover .property-image img {
    transform: scale(1.1);
}

.property-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.4rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    z-index: 20;
}

.property-badge.venta {
    background: var(--azul-oscuro);
    color: var(--blanco);
}

.property-badge.alquiler {
    background: var(--verde-azulado);
    color: var(--blanco);
}

.property-badge.destacado {
    left: auto;
    right: 1rem;
    background: #0059B2;
    color: var(--blanco);
}

.property-favorite {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--blanco);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--azul-oscuro);
    transition: var(--transicion);
    box-shadow: 0 4px 15px var(--sombra);
    z-index: 20;
}

.property-favorite:hover {
    background: var(--blanco);
}

.property-favorite:hover svg {
    transform: scale(1.25);
    transition: transform 0.3s ease;
}

.property-content {
    padding: 1.5rem;
}

.property-type {
    font-size: 0.85rem;
    color: var(--azul-claro);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.property-title {
    font-size: 1.25rem;
    color: var(--azul-oscuro);
    margin-bottom: 0.5rem;
    font-family: 'Lato', sans-serif;
    font-weight: 600;
}

.property-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gris-oscuro);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.property-features {
    display: flex;
    gap: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gris-medio);
    margin-bottom: 1rem;
}

.property-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gris-oscuro);
    font-size: 0.9rem;
}

.property-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.property-price {
    font-family: 'Montserrat', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--azul-oscuro);
}

.property-price span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gris-oscuro);
    font-size: 0.9rem;
}

.property-btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.85rem;
}

/* Services Section - Modern Glassmorphism */
.services-section {
    padding: 8rem 0;
    background: linear-gradient(135deg, #0D1F3C 0%, #10183F 50%, #1a2d5c 100%);
    position: relative;
    overflow: hidden;
}

.services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1600596542815-ffad4c1539a9?w=1920&q=80') center/cover;
    opacity: 0.03;
    pointer-events: none;
}

.services-section .section-header {
    position: relative;
    z-index: 1;
}


.services-section .section-title {
    color: var(--blanco);
}

.services-section .section-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    position: relative;
    z-index: 1;
}

.service-card {
    text-align: center;
    padding: 2.5rem 1.5rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: var(--transicion);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #0059B2, var(--azul-claro), #0059B2);
    opacity: 0;
    transition: var(--transicion);
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, #0059B2, var(--azul-claro));
    color: var(--blanco);
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 40px rgba(0, 89, 178, 0.3);
}

.service-card:hover .service-title,
.service-card:hover .service-description {
    color: var(--blanco);
}

.service-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: var(--blanco);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
    transition: var(--transicion);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.service-title {
    font-size: 1.25rem;
    color: var(--blanco);
    margin-bottom: 0.75rem;
    font-family: 'Lato', sans-serif;
    font-weight: 600;
    transition: var(--transicion);
}

.service-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.6;
    transition: var(--transicion);
}

/* Responsive Services */
@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* About Section */
.about-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--azul-oscuro) 0%, var(--azul-medio) 100%);
    position: relative;
    overflow: hidden;
}

.about-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(201, 162, 39, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}


.about-content .section-title,
.about-content .section-subtitle {
    color: #EEEEEE;
    text-align: left;
}

.about-subtitle {
    color: var(--verde-menta);
    margin-bottom: 2rem;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--blanco);
}

.about-feature-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(0, 89, 178, 0.2);
    color: #0059B2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.about-image {
    position: relative;
}

.about-image-main {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.about-image-main img {
    width: 100%;
    display: block;
}

.about-image-stats {
    position: absolute;
    bottom: -2rem;
    left: -2rem;
    background: var(--blanco);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 20px 50px var(--sombra-fuerte);
}

.about-stat {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.about-stat:last-child {
    margin-bottom: 0;
}

.about-stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--azul-oscuro) 0%, var(--azul-claro) 100%);
    color: var(--blanco);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.about-stat-text h4 {
    font-size: 1.5rem;
    color: var(--azul-oscuro);
    font-family: 'Lato', sans-serif;
    font-weight: 700;
}

.about-stat-text p {
    color: var(--gris-oscuro);
    font-size: 0.9rem;
}

/* Testimonials Section - Modern & Sophisticated */
.testimonials-section {
    padding: 8rem 0;
    background: linear-gradient(135deg, #0D1F3C 0%, #10183F 50%, #1a2d5c 100%);
    position: relative;
    overflow: hidden;
}

.testimonials-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1600596542815-ffad4c1539a9?w=1920&q=80') center/cover;
    opacity: 0.03;
    pointer-events: none;
}

.testimonials-section .section-header {
    position: relative;
    z-index: 1;
}


.testimonials-section .section-title {
    color: var(--blanco);
}

.testimonials-section .section-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    transition: var(--transicion);
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #0059B2, var(--azul-claro), #0059B2);
    opacity: 0.5;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 35px 70px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.25);
}

.testimonial-card.featured {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    transform: scale(1.02);
}

.testimonial-card.featured:hover {
    transform: scale(1.02) translateY(-10px);
}

.testimonial-stars {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.testimonial-stars i {
    color: #F59E0B;
    font-size: 0.9rem;
}

.testimonial-quote-icon {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    color: rgba(255, 255, 255, 0.1);
}

.testimonial-text {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-style: italic;
    margin-bottom: 2rem;
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.testimonial-avatar-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, #0059B2, var(--azul-claro));
    flex-shrink: 0;
}

.testimonial-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--azul-oscuro);
}

.testimonial-info h4 {
    color: var(--blanco);
    font-family: 'Lato', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.testimonial-info p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

/* Responsive Testimonials */
@media (max-width: 968px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .testimonial-card.featured {
        transform: none;
    }

    .testimonial-card.featured:hover {
        transform: translateY(-10px);
    }
}

/* Instagram Gallery Section */
.instagram-section {
    padding: 5rem 0;
    background: var(--blanco);
}

.instagram-section .section-header {
    text-align: center;
    margin-bottom: 3rem;
}


.instagram-section .section-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.instagram-badge {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%) !important;
    border: none !important;
    color: var(--blanco) !important;
}

.instagram-badge i {
    color: var(--blanco) !important;
}

.instagram-carousel {
    margin-bottom: 2rem;
}

.instagram-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    aspect-ratio: 1;
}

.instagram-link {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
}

.instagram-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.instagram-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, rgba(240, 148, 51, 0.8) 0%, rgba(220, 39, 67, 0.8) 50%, rgba(188, 24, 136, 0.8) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.instagram-overlay i {
    font-size: 2.5rem;
    color: var(--blanco);
    transform: scale(0.8);
    transition: transform 0.4s ease;
}

.instagram-item:hover .instagram-overlay {
    opacity: 1;
}

.instagram-item:hover .instagram-overlay i {
    transform: scale(1);
}

.instagram-item:hover .instagram-link img {
    transform: scale(1.1);
}

.instagram-carousel .owl-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 2rem;
}

.instagram-carousel .owl-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.instagram-carousel .owl-dot.active {
    background: #DDDDDD;
    width: 25px;
    border-radius: 5px;
}

.instagram-cta {
    text-align: center;
    margin-top: 2rem;
}

.instagram-cta .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border: none;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: var(--blanco);
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(220, 39, 67, 0.3);
}

.instagram-cta .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 39, 67, 0.4);
}

@media (max-width: 768px) {
    .instagram-section {
        padding: 3rem 0;
    }
    
    .instagram-section .section-title {
        font-size: 1.8rem;
    }
}

/* CTA Section - Premium Luxury Style */
.cta-section {
    padding: 8rem 0;
    background: linear-gradient(135deg, #0D1F3C 0%, #10183F 50%, #173A5E 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1600047509807-ba8f99d2cdde?w=1920&q=80') center/cover;
    opacity: 0.08;
    filter: blur(8px);
}

.cta-section::after {
    content: '';
    position: absolute;
    top: -100%;
    left: -100%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(0, 89, 178, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(212, 175, 55, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.05) 0%, transparent 60%);
    animation: ctaFloating 20s ease-in-out infinite;
    pointer-events: none;
}

@keyframes ctaFloating {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(-20px, -20px) rotate(120deg); }
    66% { transform: translate(20px, -10px) rotate(240deg); }
}

.cta-content {
    position: relative;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    z-index: 1;
}


.cta-section .section-badge {
    color: var(--blanco);
}

.cta-content .section-title {
    color: var(--blanco);
    font-size: 2.8rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.cta-content .section-subtitle {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    padding: 1rem 2.5rem;
    font-size: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.cta-buttons .btn-primary {
    background: linear-gradient(135deg, #0059B2 0%, #004080 100%);
    border: none;
}

.cta-buttons .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 89, 178, 0.4);
}

.cta-buttons .btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--blanco);
}

.cta-buttons .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
}

/* Responsive CTA */
@media (max-width: 768px) {
    .cta-section {
        padding: 5rem 0;
    }

    .cta-content .section-title {
        font-size: 2rem;
    }
}

/* Footer */
.footer {
    background: var(--azul-oscuro);
    color: var(--blanco);
    padding: 5rem 0 2rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1600596542815-ffad4c1539a9?w=1920&q=80') center/cover;
    opacity: 0.03;
    pointer-events: none;
    filter: blur(5px);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    position: relative;
    z-index: 1;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-brand .logo img {
    max-width: 200px;
    height: auto;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.8;
}

.footer-links-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.footer-links-group h4 {
    font-size: 1.1rem;
    color: var(--blanco);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transicion);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--azul-claro);
    padding-left: 5px;
}

.footer-bottom {
    padding-top: 2rem;
    margin-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* Footer Responsive */
@media (max-width: 968px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer-links-section {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .footer-links-section {
        grid-template-columns: 1fr;
    }

    .footer {
        padding: 3rem 0 2rem;
    }
}

/* Particles Background */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    pointer-events: none;
    animation: floatUp 15s infinite linear;
}

.particle:nth-child(2n) {
    width: 3px;
    height: 3px;
    background: rgba(255, 255, 255, 0.2);
    animation-duration: 20s;
}

.particle:nth-child(3n) {
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.25);
    animation-duration: 18s;
}

.particle:nth-child(4n) {
    width: 2px;
    height: 2px;
    background: rgba(255, 255, 255, 0.15);
    animation-duration: 22s;
}

.particle:nth-child(5n) {
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.35);
    animation-duration: 16s;
}

@keyframes floatUp {
    0% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) translateX(100px);
        opacity: 0;
    }
}

/* Particles only visible in contact section */
.contact-section ~ .particles-container .particle {
    opacity: 1;
}

/* Hide particles when not in contact section */
.particles-container:not(.contact-active) .particle {
    opacity: 0;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 16px;
    padding: 1rem 1.5rem;
    z-index: 9999;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    min-width: 320px;
    max-width: 500px;
}

.toast.show {
    bottom: 30px;
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.toast-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.toast-icon svg {
    color: #10B981;
    stroke: #10B981;
}

.toast-message {
    flex: 1;
}

.toast-message p {
    color: var(--blanco);
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
}

.toast-message span {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    display: block;
}

.toast-close {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transicion);
    flex-shrink: 0;
}

.toast-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.toast-close svg {
    color: rgba(255, 255, 255, 0.7);
    stroke: rgba(255, 255, 255, 0.7);
}

/* Toast Responsive */
@media (max-width: 600px) {
    .toast {
        left: 20px;
        right: 20px;
        transform: none;
        min-width: auto;
        max-width: none;
    }

    .toast.show {
        bottom: 20px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

/* Contact Section */
.contact-section {
    padding: 8rem 0;
    background: linear-gradient(135deg, #10183F 0%, #10183F 30%, #667eea 50%, #764ba2 70%, #9B59B6 100%);
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1600596542815-ffad4c1539a9?w=1920&q=80') center/cover;
    opacity: 0.15;
    pointer-events: none;
    filter: blur(8px);
}

.contact-section::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 60%);
    pointer-events: none;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    position: relative;
    z-index: 1;
}

.contact-info {
    color: var(--blanco);
}

.contact-info .section-title {
    color: var(--blanco);
    margin-bottom: 1rem;
}

.contact-info .section-subtitle {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 3rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    padding: 1.5rem;
    transition: var(--transicion);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.contact-detail:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-5px);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.2);
}

.contact-detail-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--blanco);
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.contact-detail-icon svg {
    color: var(--blanco);
    stroke: var(--blanco);
}

.contact-detail-content h4 {
    font-size: 1.1rem;
    color: var(--blanco);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.contact-detail-content p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    line-height: 1.6;
}

.contact-social {
    display: flex;
    gap: 1rem;
}

.contact-social-btn {
    width: 55px;
    height: 55px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--blanco);
    transition: var(--transicion);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.contact-social-btn:hover {
    background: rgba(255, 255, 255, 0.35);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.contact-form-wrapper {
    position: relative;
}

.contact-form-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(40px);
    border-radius: 28px;
    padding: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    position: relative;
    z-index: 1;
}

.contact-info {
    color: var(--blanco);
}


.contact-info .section-title {
    color: var(--blanco);
    margin-bottom: 1rem;
}

.contact-info .section-subtitle {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 3rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.contact-detail-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    background: rgba(0, 89, 178, 0.2);
    border: 1px solid rgba(0, 89, 178, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--azul-claro);
    flex-shrink: 0;
    backdrop-filter: blur(10px);
}

.contact-detail-content h4 {
    font-size: 1.1rem;
    color: var(--blanco);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.contact-detail-content p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.6;
}

.contact-social {
    display: flex;
    gap: 1rem;
}

.contact-social-btn {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--blanco);
    transition: var(--transicion);
    backdrop-filter: blur(10px);
}

.contact-social-btn:hover {
    background: var(--azul);
    border-color: var(--azul);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 89, 178, 0.3);
}

.contact-form-wrapper {
    position: relative;
}

.contact-form-card {
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.contact-form-title {
    font-size: 1.75rem;
    color: var(--blanco);
    margin-bottom: 2rem;
    font-weight: 700;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.contact-form .form-label {
    font-size: 0.9rem;
    color: var(--blanco);
    font-weight: 500;
}

.form-input {
    padding: 1rem 1.25rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: var(--blanco);
    font-size: 1rem;
    transition: var(--transicion);
    backdrop-filter: blur(10px);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-input:focus {
    outline: none;
    border-color: var(--azul);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(0, 89, 178, 0.2);
}

.form-input option {
    background: var(--azul-oscuro);
    color: var(--blanco);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

.form-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    border-radius: 5px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    cursor: pointer;
    accent-color: var(--azul);
}

.form-checkbox span {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
}

.contact-submit {
    padding: 1rem 2rem;
    border-radius: 12px;
    background: linear-gradient(135deg, #0059B2 0%, #004080 100%);
    color: var(--blanco);
    border: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transicion);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    box-shadow: 0 10px 30px rgba(0, 89, 178, 0.3);
}

.contact-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(0, 89, 178, 0.4);
}

.contact-submit:active {
    transform: translateY(0);
}

.form-success {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.4);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    backdrop-filter: blur(10px);
}

.form-success i {
    font-size: 2rem;
    color: #10B981;
}

.form-success p {
    color: var(--blanco);
    font-size: 1rem;
    margin: 0;
}

/* Responsive */
@media (max-width: 968px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-section {
        padding: 6rem 0;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form-card {
        padding: 2rem;
    }
}

@media (max-width: 600px) {
    .contact-detail {
        flex-direction: column;
        gap: 1rem;
    }

    .contact-detail-icon {
        width: 50px;
        height: 50px;
    }

    .contact-form-card {
        padding: 1.5rem;
    }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease forwards;
}

.animate-slide-left {
    animation: slideInLeft 0.8s ease forwards;
}

.animate-scale-in {
    animation: scaleIn 0.6s ease forwards;
}

/* Responsive */
@media (max-width: 1200px) {
    .properties-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .search-form {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .about-image-stats {
        position: relative;
        bottom: 0;
        left: 0;
        margin-top: 2rem;
    }
}

/* --- Side menu: tablet y mobile (≤992px) --- */
@media (max-width: 992px) {
    .nav {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: min(360px, 85vw);
        background: #0D1F3C;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
        padding: 5.5rem 1.75rem 2rem;
        z-index: 1001;
        box-shadow: -12px 0 30px rgba(0, 0, 0, 0.35);
        transform: translateX(100%);
        visibility: hidden;
        opacity: 0;
        transition: transform 0.35s ease, visibility 0.35s ease, opacity 0.35s ease;
        overflow-y: auto;
    }

    .nav.active {
        transform: translateX(0);
        visibility: visible;
        opacity: 1;
    }

    .nav .nav-link {
        width: 100%;
        padding: 1rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        font-size: 1.15rem;
    }

    .nav .nav-link::after {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
        z-index: 1002;
    }

    /* En tablet/mobile "Agendar consulta" va dentro del side menu */
    .header-actions > .agendar-btn {
        display: none;
    }

    .nav .agendar-btn {
        display: flex;
        justify-content: center;
        margin-top: 2rem;
    }
}

@media (max-width: 768px) {
    /* En mobile el side menu ocupa el 100% de la pantalla */
    .nav {
        width: 100%;
    }
    
    .hero-stats {
        flex-wrap: wrap;
        gap: 2rem;
    }
    
    .search-form {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 0.75rem;
        padding-bottom: 0.5rem;
    }
    
    .search-form .search-form-content {
        min-width: 100%;
    }
    
    .search-group {
        min-width: 140px;
        flex: 1;
    }

    .search-tabs {
        width: 100%;
        justify-content: center;
        overflow-x: auto;
        scrollbar-width: thin;
    }

    .search-tab {
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .properties-grid {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* Loading */
.loading {
    position: fixed;
    inset: 0;
    background: #10183F;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.6s ease, visibility 0.6s ease;
    overflow: hidden;
}

.loading.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loading-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.loading-logo {
    animation: pulse 2s ease-in-out infinite;
}

.loading-logo img {
    width: 288px;
    max-width: 72vw;
    height: auto;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.9; }
}

.loading-bar-container {
    width: 300px;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.loading-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--azul-claro) 0%, var(--verde-azulado) 50%, var(--azul-oscuro) 100%);
    border-radius: 10px;
    transition: width 0.1s linear;
    box-shadow: 0 0 20px var(--azul-claro);
}

.loading-percent {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--blanco);
    letter-spacing: 2px;
}

.loading-text {
    font-family: 'Lato', sans-serif;
    font-size: 0.9rem;
    color: var(--verde-menta);
    text-transform: uppercase;
    letter-spacing: 3px;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--gris-claro);
}

::-webkit-scrollbar-thumb {
    background: var(--azul-oscuro);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--azul-claro);
}

/* Cookie Consent Bar */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #10183F 0%, #1a2d5c 100%);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0;
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    display: none;
}

.cookie-consent.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.cookie-text p {
    color: var(--blanco);
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 0.5rem 1.5rem;
    border: none;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transicion);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cookie-btn.accept {
    background: #0059B2;
    color: var(--blanco);
}

.cookie-btn.accept:hover {
    background: #004080;
    transform: translateY(-2px);
}

.cookie-btn.reject {
    background: transparent;
    color: var(--blanco);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.cookie-btn.reject:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Welcome Modal */
.welcome-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.welcome-modal.active {
    opacity: 1;
    visibility: visible;
}

.welcome-modal-content {
    width: 950px;
    height: 600px;
    background: var(--blanco);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    transform: translateY(100%);
    transition: transform 0.5s ease;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    display: flex;
}

.welcome-modal.active .welcome-modal-content {
    transform: translateY(0);
}

.welcome-modal-image {
    width: 450px;
    height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0D1F3C 0%, #10183F 100%);
    border-radius: 20px 0 0 20px;
}

.welcome-logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.welcome-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.welcome-modal-text {
    width: calc(100% - 450px);
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(135deg, #10183F 0%, #0059B2 100%);
}

.welcome-modal-text h2 {
    color: #EEEEEE;
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.welcome-modal-text p {
    color: #EEEEEE;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.welcome-modal-text ul {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.welcome-modal-text li {
    color: #EEEEEE;
    padding: 0.5rem 0;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}

.welcome-btn {
    background: #0059B2;
    color: var(--blanco);
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transicion);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    width: fit-content;
    margin-top: 1rem;
}

.welcome-btn:hover {
    background: #004080;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 89, 178, 0.3);
}

/* Welcome Modal Close Button */
.welcome-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    border-radius: 50%;
    color: var(--blanco);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transicion);
    z-index: 1000;
}

.welcome-close-btn:hover {
    transform: rotate(90deg);
    background: rgba(255, 255, 255, 0.1);
}

.welcome-close-btn:active {
    color: #0059B2;
    transform: rotate(90deg) scale(0.95);
}

.welcome-close-btn svg {
    width: 20px;
    height: 20px;
    transition: var(--transicion);
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 110px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #0059B2;
    border: none;
    border-radius: 50%;
    color: var(--blanco);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transicion);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: #004080;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 89, 178, 0.4);
}

.scroll-to-top svg {
    width: 24px;
    height: 24px;
}

/* WhatsApp Button */
.whatsapp-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    color: var(--blanco);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: var(--transicion);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
    text-decoration: none;
}

.whatsapp-button:hover {
    background: #128C7E;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
}

.whatsapp-button svg {
    width: 30px;
    height: 30px;
}

/* Clientes Access Modal */
.clientes-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    transition: var(--transicion);
}

.clientes-modal.active {
    opacity: 1;
    visibility: visible;
}

.clientes-modal-content {
    width: 480px;
    max-width: 95vw;
    background: var(--blanco);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    transform: translateY(-50px);
    transition: transform 0.5s ease;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.clientes-modal.active .clientes-modal-content {
    transform: translateY(0);
}

.clientes-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    border-radius: 50%;
    color: var(--azul-oscuro);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transicion);
    z-index: 10;
}

.clientes-close-btn:hover {
    transform: rotate(90deg);
    background: rgba(0, 89, 178, 0.1);
}

.clientes-close-btn:active {
    color: #0059B2;
    transform: rotate(90deg) scale(0.95);
}

.clientes-tabs {
    display: flex;
    background: linear-gradient(135deg, #0D1F3C 0%, #10183F 100%);
    border-bottom: 2px solid var(--azul-claro);
}

.tab-btn {
    flex: 1;
    padding: 1.5rem;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transicion);
    position: relative;
}

.tab-btn.active {
    color: var(--blanco);
    background: rgba(255, 255, 255, 0.1);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: #0059B2;
}

.tab-btn:hover:not(.active) {
    color: var(--blanco);
    background: rgba(255, 255, 255, 0.05);
}

.clientes-forms {
    padding: 1.5rem 2rem;
    max-height: 70vh;
    overflow-y: auto;
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-header h3 {
    color: var(--azul-oscuro);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.form-header p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

.access-form {
    max-width: 400px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    color: var(--azul-oscuro);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: var(--transicion);
    background: var(--blanco);
}

.form-input:focus {
    outline: none;
    border-color: #0059B2;
    box-shadow: 0 0 0 3px rgba(0, 89, 178, 0.1);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: #666;
    font-size: 0.9rem;
}

.checkbox-input {
    display: none;
}

.checkbox-custom {
    width: 18px;
    height: 18px;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    margin-right: 0.5rem;
    position: relative;
    transition: var(--transicion);
}

.checkbox-input:checked + .checkbox-custom {
    background: #0059B2;
    border-color: #0059B2;
}

.checkbox-input:checked + .checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--blanco);
    font-size: 12px;
    font-weight: bold;
}

.forgot-link {
    color: #0059B2;
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transicion);
}

.forgot-link:hover {
    color: #004080;
    text-decoration: underline;
}

.full-width {
    width: 100%;
    justify-content: center;
}

.register-btn {
    margin-top: 1rem;
    background: transparent;
    border: 2px solid #0059B2;
    color: #0059B2;
}

.register-btn:hover {
    background: #0059B2;
    color: var(--blanco);
}

/* Newsletter Section - Estilo IDESA */
.newsletter-section {
    margin-top: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, #0D1F3C 0%, #10183F 100%);
    border-radius: 12px;
    text-align: center;
    color: var(--blanco);
}

.newsletter-section h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--blanco);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.newsletter-section p {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
}

.newsletter-form {
    margin: 1.5rem 0;
}

.newsletter-input-group {
    display: flex;
    max-width: 300px;
    margin: 0 auto;
    border-radius: 25px;
    overflow: hidden;
    background: var(--blanco);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.newsletter-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    background: var(--blanco);
    font-size: 0.9rem;
    outline: none;
}

.newsletter-input::placeholder {
    color: #999;
}

.newsletter-btn {
    padding: 0.75rem 1rem;
    background: #0059B2;
    border: none;
    color: var(--blanco);
    cursor: pointer;
    transition: var(--transicion);
    display: flex;
    align-items: center;
    justify-content: center;
}

.newsletter-btn:hover {
    background: #004080;
}

.newsletter-message {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-top: 1rem;
}

.newsletter-message h5 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--blanco);
}

.newsletter-message p {
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.back-btn {
    background: transparent;
    border: 2px solid var(--blanco);
    color: var(--blanco);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transicion);
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.back-btn:hover {
    background: var(--blanco);
    color: #10183F;
}

/* Responsive */
@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .cookie-buttons {
        justify-content: center;
    }
    
    .welcome-modal-content {
        width: min(92vw, 420px);
        height: auto;
        max-height: 82vh;
        flex-direction: column;
        border-radius: 18px;
    }
    
    .welcome-modal-image {
        display: none;
    }
    
    .welcome-modal-text {
        width: 100%;
        height: auto;
        padding: 2rem 1.2rem 1.5rem;
    }
    
    .welcome-modal-text h2 {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }

    .welcome-modal-text p {
        font-size: 0.92rem;
        margin-bottom: 1rem;
    }

    .welcome-modal-text ul {
        margin-bottom: 1.25rem;
    }

    .welcome-modal-text li {
        font-size: 0.88rem;
        padding: 0.35rem 0;
    }

    .welcome-btn {
        width: 100%;
        justify-content: center;
        padding: 0.9rem 1.2rem;
        font-size: 0.8rem;
    }
    
    .scroll-to-top {
        bottom: 80px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
    
    .whatsapp-button {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
    
    .clientes-modal-content {
        width: 95%;
        height: auto;
        max-height: 90vh;
    }
    
    .clientes-tabs {
        flex-direction: column;
    }
    
    .tab-btn {
        padding: 1rem;
    }
    
    .clientes-forms {
        padding: 1.5rem;
    }
}

.form-msg {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    text-align: center;
    font-weight: 500;
}
.form-msg.error-msg {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.2);
}
.form-msg.success-msg {
    background: rgba(25, 135, 84, 0.1);
    color: #198754;
    border: 1px solid rgba(25, 135, 84, 0.2);
}
.form-row {
    display: flex;
    gap: 1rem;
}
.form-row .form-group.half {
    flex: 1;
    margin-bottom: 0.5rem;
}
#propRegisterView .form-group {
    margin-bottom: 1rem;
}
#propRegisterView .form-input {
    background: #f8f9fa;
}

