/* =========================================
   PALETA MAR Y LAVA
========================================= */

:root {
    --morado-oscuro: #1a032b;
    --morado-medio: #4d1f6d;;
    --morado: #660ca7;
    --lila: #bf8be4;
    --blanco-lila: #e3d2ef;
    --fondo: #f8f5fa;
    --texto: #30243a;
}


/* =========================================
   CONFIGURACIÓN GENERAL
========================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: "Bricolage Grotesque", sans-serif;
    font-weight: 400;
    background-color: var(--fondo);
    color: var(--texto);
}

h1,
h2,
h3 {
    font-family: "Bricolage Grotesque", sans-serif;
    font-weight: 650;
    color: var(--morado-medio);
}


/* =========================================
   FUENTES
========================================= */

@font-face {
    font-family: "Bricolage Grotesque";
    src: url("../assets/fonts/BricolageGrotesque-VariableFont_opsz,wdth,wght.ttf") format("truetype");
    font-weight: 200 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Playwrite AU NSW";
    src: url("../assets/fonts/PlaywriteAUNSW-VariableFont_wght.ttf") format("truetype");
    font-weight: 100 400;
    font-style: normal;
    font-display: swap;
}


/* =========================================
   BARRA DE NAVEGACIÓN
========================================= */

.navbar {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 7%;
    background-color: var(--morado-oscuro);
    position: relative;
    z-index: 10;
    flex-shrink: 0;
}

.logo {
font-family: "Bricolage Grotesque", sans-serif;
    color: white;
    text-decoration: none;
    font-size: 22px;
    /* font-weight: bold; */
    /* letter-spacing: 4px; */
}

.nav-links {
    display: flex;
    gap: 35px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--lila);
}


/* =========================================
   CABECERA PRINCIPAL
========================================= */

.hero {
    min-height: 650px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: white;

    background-image:
        linear-gradient(rgba(26, 3, 43, 0.80), rgba(26, 3, 43, 0.80)),
        url("../assets/images/CasaByN.png");
    background-size: contain;
        background-position: center;
        background-repeat: no-repeat;
    /* background-size: cover;
    background-position: center;
    background-repeat: no-repeat; */
}

.hero-content {
    width: 100%;
    max-width: 850px;
    margin: auto auto auto 5%;
    padding: 70px 25px;
    text-align: center;
}

/* Fondos de los textos de la cabecera */

.hero-subtitle,
.hero-content h1,
.hero-description {
    /* background-color: rgba(26, 3, 43, 0.15); */
    width: fit-content;
    max-width: 100%;
    padding: 8px 16px;
    margin-left: auto;
    margin-right: auto;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

/* Frase decorativa */

.hero-subtitle {
    font-family: "Playwrite AU NSW", cursive;
color: white;
    font-size: 22px;
    letter-spacing: 1px;
    /* font-weight: 400; */
    font-weight: bold;
    margin-top: 0;
    margin-bottom: 15px;
}

/* Título principal */

.hero-content h1 {
    display: table;
    font-size: clamp(34px, 4vw, 54px);
    line-height: 1.2;
    margin-top: 15px;
    margin-bottom: 20px;
    color: white;
    text-align: center;
}

/* Texto descriptivo */

.hero-description {
    max-width: 700px;
    color: white;
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 35px;
}


/* =========================================
   BOTÓN PRINCIPAL
========================================= */

.hero-button {
    display: inline-block;
    padding: 16px 30px;
    background-color: var(--lila);
    color: var(--morado-oscuro);
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.hero-button:hover {
    background-color: var(--blanco-lila);
}


/* =========================================
   FRANJA INFERIOR DE LA CABECERA
========================================= */

.hero-bottom {
    display: flex;
    justify-content: center;
    gap: 70px;
    padding: 25px;
    background-color: rgba(27, 3, 44, 0.55);
    font-size: 12px;
    letter-spacing: 3px;
    font-weight: bold;
}


/* =========================================
   SECCIONES GENERALES
========================================= */

section {
    padding: 70px 8%;
}

h2 {
    font-size: 32px;
}


/* =========================================
   INTRODUCCIÓN
========================================= */

.intro {
    max-width: 950px;
    margin: auto;
    text-align: center;
    line-height: 1.8;
}

.intro p {
    color: var(--texto);
    font-size: 17px;
}


/* =========================================
   VENTAJAS
========================================= */

.features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    background-color: white;
}

.features h3 {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    color: var(--morado-medio);
    margin: 0 0 15px 0;
}

.feature-icon {
    width: 25px;
    height: 25px;
    color: var(--morado);
    stroke-width: 1.7;
    flex-shrink: 0;
}

.features p {
    margin-top: 0;
    line-height: 1.7;
}


/* =========================================
   APARTAMENTOS
========================================= */

.apartments {
    text-align: center;
    min-height: 250px;
}


/* =========================================
   CONTACTO
========================================= */

.contact {
    text-align: center;
    background-color: var(--blanco-lila);
}

.contact p {
    margin-bottom: 30px;
}


/* =========================================
   PIE DE PÁGINA
========================================= */

footer {
    padding: 30px;
    text-align: center;
    background-color: var(--morado-oscuro);
    color: white;
}


/* =========================================
   DISEÑO RESPONSIVE: TABLETS Y MÓVILES
========================================= */

@media (max-width: 768px) {

    .hero {
        min-height: 650px;
    }

    .navbar {
        flex-direction: column;
        gap: 25px;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 18px;
    }

    .hero-content {
        padding: 45px 20px;
    }

    .hero-description {
        font-size: 16px;
    }

    .hero-bottom {
        gap: 15px;
        flex-wrap: wrap;
        font-size: 10px;
        letter-spacing: 1px;
    }

    .features {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* =========================================
   DISEÑO RESPONSIVE: MÓVILES PEQUEÑOS
========================================= */

@media (max-width: 480px) {

    .features {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 36px;
    }

    .nav-links {
        gap: 12px;
    }

    .nav-links a {
        font-size: 13px;
    }
}
/* Color títulos */
.intro h2,
.apartments h2,
.contact h2 {
    color: #5d2684;
    /* var(--morado-medio); */
}