:root {
    --primary-metallic: #1E3A8A;        /* Base azul oscuro */
    --primary-light: #2E5A9A;            /* Azul metálico más brillante */
    --gold: #D4AF37;                      /* Dorado clásico */
    --silver: #C0C0C0;                    /* Plateado */
    --secondary: #374151;
    --background: #FFFFFF;
    --text-light: #6B7280;
    --white: #FFFFFF;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--secondary);
    background-color: var(--background);
    line-height: 1.5;
    overflow-x: hidden;
}

/* PRELOADER */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 1s ease, visibility 1.5s;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-logo {
    text-align: center;
    animation: metallicPulse 1.5s infinite;
}

.loader-logo h3 {
    font-size: 3rem;
    color: var(--primary-metallic);
    margin-bottom: 0.2rem;
    text-shadow: 0 0 5px rgba(212, 175, 55, 0.3);
}

.loader-logo span {
    font-size: 0.9rem;
    letter-spacing: 4px;
    color: var(--secondary);
}

/* TIPOGRAFÍA */
h1, h2, h3, h4 {
    font-weight: 700;
    color: var(--primary-metallic);
    line-height: 1.2;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
}

h2:after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--primary-light));
    margin: 0.5rem auto 0;
    border-radius: 2px;
}

.silver-text {
    color: var(--silver);
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* HEADER */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(35, 36, 45, 0.95);
    backdrop-filter: blur(8px);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border-bottom: 2px solid var(--gold);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo h3 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-metallic);
    letter-spacing: -0.02em;
    margin: 0;
}

.logo span {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--secondary);
    letter-spacing: 2px;
    margin-top: -5px;
}


.logo img {
    background: linear-gradient(rgba(0,0,0,0), rgba(0,0,0,0)), url('/Images//92af4602-4263-4cf8-ab82-269bfad8e59e.jpeg') center/cover no-repeat;
    height: 70px;
    width: auto;
}


.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--secondary);
    font-weight: 500;
    transition: var(--transition);
    font-size: 1rem;
}

.nav-links a:hover {
    color: var(--gold);
}

.btn-contact {
    background-color: var(--primary-metallic);
    color: var(--white) !important;
    padding: 0.6rem 1.5rem;
    border-radius: 30px;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gold);
}

.btn-contact:hover {
    background-color: var(--gold);
    color: var(--primary-metallic) !important;
    transform: scale(1.05);
}

.menu-toggle {
    display: none;
    font-size: 1.8rem;
    color: var(--primary-metallic);
    cursor: pointer;
}

/* HERO con imagen local y overlay metálico (opacidad reducida) */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(rgba(0,0,0,0), rgba(0,0,0,0)), url('/Images/🏡Turning\ your\ real\ estate\ dreams\ into\ reality!\ 🏠.jpeg') center/cover no-repeat;
    color: var(--white);
    margin-bottom: 4rem;
}

.watermark-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 15vw;
    font-weight: 800;
    color: rgba(255,255,255,0.03);
    white-space: nowrap;
    pointer-events: none;
    text-transform: uppercase;
    z-index: 1;
}

.hero-content {
    max-width: 700px;
    padding: 2rem 0;
    z-index: 2;
}

/* Título del hero en BLANCO */
.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--white);
    text-shadow: 2px 2px 10px rgba(0,0,0,0.3);
    animation: fadeInUp 1s ease;
}

.hero p {
    font-size: 1.25rem;
    margin: 1.5rem 0 2rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.2s both;
}

.btn-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.4s both;
}

.btn {
    display: inline-block;
    padding: 0.9rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-metallic);
    color: var(--white);
    border: 2px solid var(--gold);
}

.btn-primary:hover {
    background-color: var(--gold);
    color: var(--primary-metallic);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary-metallic);
    transform: translateY(-3px);
}

/* SECCIÓN SOBRE NOSOTROS */
.about-us {
    padding: 5rem 0;
    background-color: var(--white);
    border-top: 2px solid var(--silver);
    border-bottom: 2px solid var(--silver);
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.about-text {
    font-size: 1.1rem;
    color: var(--secondary);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-text strong {
    color: var(--primary-metallic);
}

.signature-line {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.gold-bar {
    width: 60px;
    height: 4px;
    background-color: var(--gold);
    border-radius: 2px;
}

.silver-bar {
    width: 60px;
    height: 4px;
    background-color: var(--silver);
    border-radius: 2px;
}

/* SERVICIOS */
.services {
    padding: 5rem 0;
    background-color: var(--gray-100);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-card {
    background: var(--white);
    padding: 2rem 1.5rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border-bottom: 3px solid transparent;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    position: absolute;
    bottom: -10px;
    right: -10px;
    font-size: 4rem;
    font-weight: 800;
    color: rgba(30, 58, 138, 0.03);
    pointer-events: none;
}

.service-card:hover {
    transform: translateY(-8px);
    border-bottom-color: var(--gold);
    box-shadow: var(--shadow-lg);
}

.service-card i {
    font-size: 3rem;
    color: var(--primary-metallic);
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.service-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}
.service-card img {
    width: 80px;          /* Ancho fijo */
    height: 80px;         /* Alto fijo */
    object-fit: cover;    /* Para que la imagen se recorte sin deformarse */
    margin-bottom: 1rem;  /* Espacio debajo de la imagen (igual que tenían los íconos) */
    border-radius: 8px;   /* Opcional: bordes redondeados */
}

/* ESTADÍSTICAS */
.stats-section {
    padding: 3rem 0;
    background: var(--white);
    border-top: 2px solid var(--silver);
    border-bottom: 2px solid var(--silver);
}

.stats-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-item .counter {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-metallic);
    line-height: 1.2;
}

.stat-item p {
    font-size: 1rem;
    color: var(--text-light);
}

.trust-badges {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    font-size: 2rem;
    color: var(--gray-200);
    border-top: 1px solid var(--gray-200);
    padding-top: 2rem;
}

.trust-badges i {
    transition: var(--transition);
    cursor: default;
}

.trust-badges i:hover {
    color: var(--gold);
}

.trust-badges span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--secondary);
}

/* PROYECTOS */
.projects {
    padding: 5rem 0;
    background-color: var(--white);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.project-item {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    aspect-ratio: 4/3;
    border: 2px solid transparent;
    transition: var(--transition);
}

.project-item:hover {
    border-color: var(--gold);
}

.project-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 58, 138, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
    color: var(--white);
    padding: 1rem;
    text-align: center;
}

.project-item:hover img {
    transform: scale(1.1);
}

.project-item:hover .project-overlay {
    opacity: 1;
}

.project-overlay h4 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* MODAL */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--white);
    padding: 2rem;
    border-radius: 16px;
    max-width: 600px;
    width: 90%;
    text-align: center;
    position: relative;
    animation: fadeIn 0.3s;
    border: 3px solid var(--gold);
}

.modal-content img {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: var(--secondary);
}

/* REFERENCIAS */
.testimonials {
    padding: 5rem 0;
    background-color: var(--gray-100);
}

.testimonials-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.avg-rating {
    background: var(--white);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    box-shadow: var(--shadow-sm);
    font-weight: 600;
}

.avg-rating i {
    color: var(--gold);
    margin-right: 0.25rem;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.testimonial-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border-left: 4px solid var(--silver);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    border-left-color: var(--gold);
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-metallic), var(--gold));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
}

.client-info h4 {
    margin-bottom: 0.2rem;
}

.client-info .date {
    font-size: 0.8rem;
    color: var(--text-light);
}

.stars {
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.comment {
    color: var(--secondary);
    font-style: italic;
}

.btn-review {
    background: var(--primary-metallic);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-block;
    text-decoration: none;
    border: 2px solid var(--gold);
}

.btn-review:hover {
    background: var(--gold);
    color: var(--primary-metallic);
}

/* CONTACTO */
.contact {
    padding: 5rem 0;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
}

.contact-info {
    background: var(--primary-metallic);
    color: white;
    padding: 2rem;
    border-radius: 16px;
    border: 2px solid var(--gold);
}

.contact-info h3 {
    color: white;
    margin-bottom: 1.5rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.info-item i {
    font-size: 1.5rem;
    width: 30px;
    color: var(--gold);
}

.info-item a {
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.info-item a:hover {
    color: var(--gold);
}

.map {
    margin-top: 2rem;
    border-radius: 16px;
    overflow: hidden;
    height: 200px;
    background: #ddd;
    border: 2px solid var(--silver);
}

/* FOOTER */
/* Footer con imagen de fondo */
footer {
    background: url('/Images/92af4602-4263-4cf8-ab82-269bfad8e59e.jpeg') center/cover no-repeat;
    position: relative;
    color: white; /* Asegura contraste */
}

/* Overlay semitransparente para mejorar legibilidad */
footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Ajusta la opacidad según necesidad */
    z-index: 0;
}

footer .container,
footer .footer-logo-img {
    position: relative;
    z-index: 1;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo .logo h3 {
    color: white;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--gold);
}

.footer-logo-img {
    margin-top: 5px;      /* Espacio superior para separar de los iconos */
    text-align: center;    /* Centrar la imagen horizontalmente */
   opacity: 0; 
}

.footer-logo-img img {
    max-width: 230px;
    max-height: 200px;    
    height: auto;          
    
}

.social-icons {
    display: flex;
    gap: 1rem;
    font-size: 1.5rem;
}

.social-icons a {
    color: white;
    transition: var(--transition);
}

.social-icons a:hover {
    color: var(--gold);
}



.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #4b5563;
    font-size: 0.9rem;
    color: #ccc;
}

/* WHATSAPP FLOTANTE */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25d366;
    color: white;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    transition: var(--transition);
    z-index: 999;
    text-decoration: none;
    animation: metallicPulse 2s infinite;
    border: 2px solid var(--gold);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background: #20ba5c;
}

.whatsapp-float span {
    position: absolute;
    right: 80px;
    background: var(--primary-metallic);
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 30px;
    font-size: 0.9rem;
    white-space: nowrap;
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
    border: 1px solid var(--gold);
}

.whatsapp-float:hover span {
    opacity: 1;
    right: 90px;
}



/* URGENCIA BANNER */
.urgency-banner {
    background: var(--primary-metallic);
    color: white;
    text-align: center;
    padding: 0.5rem;
    font-weight: 600;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

/* ANIMACIONES */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes metallicPulse {
    0% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(212, 175, 55, 0); }
    100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow-md);
    }
    .nav-links.active {
        display: flex;
    }
    .menu-toggle {
        display: block;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
    .hero {
        background-attachment: scroll;
    }
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    .stats-grid {
        flex-direction: column;
        align-items: center;
    }
    .watermark-logo {
        font-size: 20vw;
    }
}

/* MODAL CON CARRUSEL - PANTALLA COMPLETA */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    align-items: center;
    justify-content: center;
}

.carousel-modal {
    background: var(--white);
    padding: 1rem;
    border-radius: 16px;
    max-width: 900px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    text-align: center;
    position: relative;
    animation: fadeIn 0.3s;
    border: 3px solid var(--gold);
}

.carousel-container {
    position: relative;
    width: 100%;
    margin-bottom: 1rem;
}

.carousel-slide {
    width: 100%;
    height: 60vh;
    min-height: 400px;
    overflow: hidden;
    border-radius: 12px;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #000;
}

.carousel-prev, .carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.6);
    color: white;
    border: none;
    padding: 1rem;
    cursor: pointer;
    font-size: 2rem;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 10px;
}

.carousel-prev:hover, .carousel-next:hover {
    background: var(--gold);
    color: var(--primary-metallic);
}

.carousel-dots {
    text-align: center;
    margin-top: 15px;
}

.dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active {
    background-color: var(--gold);
}

@media (max-width: 768px) {
    .carousel-slide {
        height: 40vh;
        min-height: 250px;
    }
    .carousel-prev, .carousel-next {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}