/* =========================================
   1. Variables y Reset
   ========================================= */
:root {
    /* Paleta de Colores Premium */
    --color-primary: #0F1823;
    /* Azul muy oscuro (Navy) */
    --color-secondary: #1E3045;
    /* Azul medio */
    --color-accent: #C5A059;
    /* Dorado elegante */
    --color-text: #333333;
    /* Gris oscuro para texto */
    --color-text-light: #666666;
    /* Gris suave */
    --color-bg: #F8F9FA;
    /* Blanco humo */
    --color-white: #FFFFFF;

    /* Tipografía */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    /* Espaciado */
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;

    /* Bordes y Sombras */
    --border-radius: 8px;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 15px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    padding-top: 80px;
    /* Compensación para header fijo */
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    line-height: 1.2;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* =========================================
   2. Utilidades y Layout
   ========================================= */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.text-center {
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.section-desc {
    color: var(--color-text-light);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.bg-light {
    background-color: var(--color-white);
}

/* Botones */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    /* Bordes menos redondeados para look premium */
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--color-accent);
    color: var(--color-white);
    border: 2px solid var(--color-accent);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--color-accent);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-white);
    border: 2px solid var(--color-white);
}

.btn-secondary:hover {
    background-color: var(--color-white);
    color: var(--color-primary);
}

.btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 15px;
}

/* =========================================
   3. Header y Navegación
   ========================================= */
.main-header {
    background-color: rgba(15, 24, 35, 0.95);
    backdrop-filter: blur(10px);
    color: var(--color-white);
    padding: 0.8rem 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.menu a {
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
}

.menu a:hover,
.menu a.active {
    color: var(--color-accent);
}

.menu-toggle {
    display: none;
    /* Oculto en desktop */
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--color-white);
}

/* =========================================
   4. Hero Section
   ========================================= */
.hero {
    position: relative;
    height: 80vh;
    /* Altura considerable */
    min-height: 500px;
    background-image: url('assets/fondo.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-white);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 24, 35, 0.6);
    /* Capa oscura para legibilidad */
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
	color: aliceblue;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    font-weight: 300;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* =========================================
   5. Secciones de Contenido
   ========================================= */
section {
    padding: var(--spacing-lg) 0;
}

/* Servicios Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--color-white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    border-top: 3px solid transparent;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-top-color: var(--color-accent);
}

.icon-wrapper {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.icon-wrapper img {
    max-height: 100%;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.link-arrow {
    color: var(--color-accent);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Featured Grid */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.property-card {
    background: var(--color-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease;
}

.property-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.property-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.property-info {
    padding: 1.5rem;
}

.property-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.property-info p {
    color: var(--color-text-light);
    font-size: 0.9rem;
}

/* Info Section (Texto + Imagen) */
.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.feature-list {
    margin: 2rem 0;
}

.feature-list li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    color: var(--color-text-light);
}

.feature-list li::before {
    content: "•";
    color: var(--color-accent);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.info-image img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

/* =========================================
   6. Footer
   ========================================= */
.main-footer {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    max-width: 180px;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1);
    /* Hace el logo blanco si es negro */
}

.footer-links h4,
.footer-contact h4 {
    color: var(--color-accent);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-links a:hover {
    color: var(--color-accent);
}

.footer-bottom {
    text-align: center;
    padding: 1.5rem 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

/* =========================================
   7. Responsive Design
   ========================================= */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--color-primary);
        padding: 1rem;
        display: none;
        /* Oculto por defecto */
    }

    .main-nav.active {
        display: block;
    }

    .menu {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .grid-2-col {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-logo {
        margin: 0 auto 1rem auto;
    }
}

/* =========================================
   8. Botones Flotantes (Inmuebles)
   ========================================= */
.floating-buttons {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 2000;
}

.btn-float {
    background-color: var(--color-accent);
    color: var(--color-white);
    padding: 15px 25px;
    border-radius: 50px;
    box-shadow: var(--shadow-md);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-align: center;
    border: 2px solid transparent;
}

.btn-float:hover {
    background-color: var(--color-white);
    color: var(--color-accent);
    border-color: var(--color-accent);
    transform: translateY(-3px);
}

/* =========================================
   9. Carrusel de Propiedades
   ========================================= */
.carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.carousel-container {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    gap: 2rem;
    padding: 1rem 0.5rem;
    /* Espacio para sombras */
    scrollbar-width: none;
    /* Firefox */
    width: 100%;
}

.carousel-container::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
}

.carousel-container .property-card {
    min-width: 300px;
    flex: 0 0 auto;
    scroll-snap-align: start;
}

.carousel-btn {
    background-color: var(--color-primary);
    color: var(--color-white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    z-index: 10;
    flex-shrink: 0;
}

.carousel-btn:hover {
    background-color: var(--color-accent);
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .carousel-btn {
        display: none;
        /* Ocultar botones en móvil, usar scroll táctil */
    }
}

/* =========================================
   10. Formulario de Contacto (Centralizado)
   ========================================= */
.section-contact {
    padding: 5rem 0;
    background-color: #1a2530;
    /* Fondo oscuro */
    color: white;
    position: relative;
}

.contact-container {
    display: flex;
    justify-content: center;
}

.contact-form-wrapper {
    width: 100%;
    max-width: 700px;
    background: rgba(255, 255, 255, 0.05);
    padding: 3rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-form-wrapper h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
    color: #D4AF37;
    /* Dorado */
}

.contact-form-wrapper p {
    text-align: center;
    margin-bottom: 3rem;
    color: #ccc;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #D4AF37;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    color: white;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form select:focus {
    outline: none;
    border-color: #D4AF37;
    background-color: rgba(255, 255, 255, 0.05);
}

.btn-submit {
    background-color: #D4AF37;
    color: #1a2530;
    border: none;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 1rem;
}

.btn-submit:hover {
    background-color: white;
    color: #1a2530;
    transform: translateY(-2px);
}

.form-group-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 768px) {
    .form-group-row {
        grid-template-columns: 1fr;
    }
}