/* =====================================
   J. C. BATALLA
   Hoja de estilos principal
===================================== */

/* RESET */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

/* VARIABLES */

:root{

    --negro:#0d0d0d;

    --dorado:#c8a15c;

    --texto:#ffffff;

    --gris:#d6d6d6;

    --max:1300px;

}

/* BODY */

body{

    font-family:"Inter",sans-serif;

    background:#111;

    color:white;

    overflow-x:hidden;

}

/* LINKS */

a{

    text-decoration:none;

}

/* IMÁGENES */

img{

    display:block;

    max-width:100%;

}

/* CONTENEDOR */

.container{

    width:min(var(--max),92%);

    margin:auto;

}
/* =====================================
   HEADER
===================================== */

header{

    position:fixed;

    top:0;

    left:0;

    width:100%;

    z-index:1000;

    background:rgba(10,10,10,.92);

    backdrop-filter:blur(8px);

    transition:.35s;

}

.navbar{

    background:transparent !important;

    padding:6px 0 !important;

}

.navbar .container{
    max-width: 1800px;

}

.navbar-brand{
    display:flex;
    align-items:center;
    gap:22px;

    font-family:"Cormorant Garamond", serif;

    text-decoration:none;

    margin-left:0px;   /* mueve el logo un poco a la izquierda */
}

.brand-name{

    color:white;

    font-size:2.2rem;

    font-weight:500;

    letter-spacing:2px;

}

.brand-divider{

    width:1px;

    height:38px;

    background:#b8945a;

}

.brand-type{

    color:#b8945a;

    font-family:"Inter",sans-serif;

    font-size:.95rem;

    letter-spacing:5px;

    font-weight:500;

}

.logo{

    height:120px;

    width:auto;

    display:block;

}

.navbar-nav{

    gap:18px;

}

.nav-link{

    color:white !important;

    text-transform:uppercase;

    font-size:.85rem;

    letter-spacing:1.6px;

    transition:.3s;

}

.nav-link:hover{

    color:var(--dorado) !important;

}

.nav-link.active{

    color:var(--dorado) !important;

}
/* =====================================
   HERO
===================================== */

.hero{

    position:relative;

    min-height:100vh;

    background-image:url("../img/hero.png");

    background-size:cover;

    background-position:center;

    display:flex;

    align-items:center;

}

.hero::before{

    content:"";

    position:absolute;

    inset:0;

    background:linear-gradient(
        90deg,
        rgba(0,0,0,.72) 0%,
        rgba(0,0,0,.38) 45%,
        rgba(0,0,0,.10) 100%
    );

}

.hero-text{

    position:relative;

    z-index:2;

    max-width:520px;

    margin-left:40px;

    margin-top:-60px;

    margin-bottom:50px;

    display:flex;

    flex-direction:column;

    gap:25px;

    align-items:flex-start;   /* ← AÑADE ESTA LÍNEA */

}
.hero.contacto{

    background-image:url("../img/contacto-fondo.png");
    background-size:cover;
    background-position:center;
    background-repeat:no-repeat;

}

.hero-content{

    position:relative;

    z-index:2;

}

.hero-text{

    max-width:520px;

    margin-left:40px;

    margin-bottom:50px;

    transform: translateY(-45px);

}

.hero-text h1{

    font-family:"Cormorant Garamond",serif;

    font-size:4.8rem;

    line-height:1.1;

    font-weight:500;

    margin-bottom:30px;

}

.hero-text span{

    color:var(--dorado);

}

.hero-text p{

    font-size:1.45rem;

    color:#ececec;

    margin-bottom:35px;

    max-width:430px;

}

.hero-btn{

    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:10px;

    padding:12px 22px;

    min-width:220px;
    width:auto;

    background:rgba(20,20,20,.35);

    border:2px solid #c9a56a;
    border-radius:4px;

    color:#e9d6b0;

    font-size:.85rem;
    font-weight:600;
    letter-spacing:1.8px;
    text-transform:uppercase;

    transition:.35s;
    
}

/* =====================================
   MI UNIVERSO
===================================== */

.universo{

    background:#f5f2eb;

    color:#222;

    padding:120px 0;

    text-align:center;

}

.universo h2{

    font-family:"Cormorant Garamond",serif;

    font-size:4rem;

    margin-bottom:15px;

}

.subtitulo{

    font-size:1.35rem;

    color:#8d6a35;

    letter-spacing:2px;

    margin-bottom:30px;

}

.linea{

    width:90px;

    height:2px;

    background:#b8945a;

    margin:0 auto 40px;

}

.descripcion{

    max-width:800px;

    margin:0 auto 70px;

    font-size:1.15rem;

    line-height:1.9;

    color:#555;

}

.cards{

    display:flex;

    gap:35px;

    justify-content:center;

    flex-wrap:wrap;

}

.card-universo{

    background:white;

    padding:45px;

    width:340px;

    border-radius:10px;

    box-shadow:0 15px 40px rgba(0,0,0,.08);

    transition:.35s;

}

.card-universo:hover{

    transform:translateY(-10px);

}

.card-universo h3{

    font-family:"Cormorant Garamond",serif;

    font-size:2rem;

    color:#b8945a;

    margin-bottom:20px;

}

.card-universo p{

    line-height:1.8;

    color:#666;

}
/* =====================================
   NOVELAS
===================================== */

.novelas{

    background:#111;

    padding:140px 0;

    color:white;

}

.novelas h2{

    text-align:center;

    font-family:"Cormorant Garamond",serif;

    font-size:4rem;

    margin-bottom:15px;

}

.novelas .subtitulo{

    text-align:center;

    margin-bottom:90px;

}

.novela{

    display:flex;

    align-items:center;

    justify-content:space-between;

    gap:70px;

    margin-bottom:120px;

}

.novela.inversa{

    flex-direction:row-reverse;

}

.novela-img{

    flex:1;

}

.novela-img img{

    width:100%;

    max-width:380px;

    border-radius:10px;

    box-shadow:0 25px 60px rgba(0,0,0,.45);

    transition:.4s;

}

.novela-img img:hover{

    transform:scale(1.03);

}

.novela-info{

    flex:1;

}

.numero{

    color:var(--dorado);

    font-size:5rem;

    font-family:"Cormorant Garamond",serif;

    opacity:.25;

}

.novela-info h3{

    font-family:"Cormorant Garamond",serif;

    font-size:3rem;

    margin:10px 0 25px;

}

.novela-info p{

    font-size:1.2rem;

    line-height:1.9;

    color:#cfcfcf;

    margin-bottom:35px;

}
/* =====================================
   FOOTER
===================================== */

.footer{
    background:#0d0d0d;
    border-top:1px solid rgba(255,255,255,.08);
    padding:35px 0;
    text-align:center;
}

.footer p{
    margin:0;
    color:#8e8e8e;
    font-size:.95rem;
    letter-spacing:.5px;
}

.logo{
    height: 58px;
    width: auto;
    display: block;
}

.navbar-brand{
    display:flex;
    align-items:center;
    gap:14px;
    text-decoration:none;
}

.logo{
    height:58px;
    width:auto;
    display:block;
}

.brand-text{
    display:flex;
    flex-direction:column;
}

.brand-name{
    font-family:"Cormorant Garamond", serif;
    font-size:2rem;
    line-height:1;
    color:#fff;
}

.brand-subtitle{
    margin-top:4px;
    font-size:.65rem;
    letter-spacing:4px;
    color:#b8945a;
}
.contact-form{
    display:flex;
    flex-direction:column;
    gap:18px;
    margin-top:40px;
    max-width:520px;
}

.contact-form input,
.contact-form textarea{

    background: rgba(0,0,0,.35);

border:1px solid rgba(255,255,255,.18);

backdrop-filter: blur(4px);

-webkit-backdrop-filter: blur(4px);

    color:white;

    padding:16px 18px;

    font-size:1rem;

    outline:none;

    transition:.3s;

    border-radius:4px;

}

.contact-form input::placeholder,
.contact-form textarea::placeholder{

    color:#bfbfbf;

}

.contact-form input:focus,
.contact-form textarea:focus{

    border-color:#b8945a;

    background:rgba(255,255,255,.08);

}

.contact-form textarea{

    resize:vertical;

    min-height:180px;

}
.hero.contacto{

    min-height:100vh;

    background-image:url("../img/contacto-fondo.png");

    background-size:cover;

    background-position:center;

    background-repeat:no-repeat;

    position:relative;
}
.hero.contacto .hero-text{
    margin-left: -180px;
}
.hero-btn{
    display:inline-flex;
    align-items:center;
    gap:12px;

    padding:14px 28px;

    background:rgba(20,20,20,.35);
    border:2px solid #c9a56a;
    border-radius:4px;

    color:#e9d6b0;

    white-space:nowrap;
    width:auto;
}
.hero-btn span{
    display:inline-block;
}

.hero-btn .arrow{
    font-size:20px;
}

/* ===========================
   MÓVIL
=========================== */

@media (max-width:768px){

    /* HEADER */

    .navbar{
        padding:10px 18px !important;
    }

    .navbar-brand{
        margin-left:0;
        gap:12px;
    }

    .brand-name{
        font-size:1.55rem;
        letter-spacing:1px;
    }

    .brand-divider{
        height:26px;
    }

    .brand-type{
        font-size:.55rem;
        letter-spacing:2px;
    }

    /* HERO */

    .hero{
        min-height:100vh;
        background-position:74% center;
        background-size:cover;
    }

    .hero-text{

        max-width:255px;

        margin-left:18px;
        margin-right:18px;

        transform:translateY(-90px);

        gap:14px;

        align-items:flex-start;
    }

    .hero-text h1{

        font-size:2.55rem;
        line-height:1.02;

        margin-bottom:8px;
    }

    .hero-text p{

        font-size:.95rem;
        line-height:1.45;

        margin-bottom:8px;
    }

    /* BOTÓN */

    .hero-btn{

    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:10px;

    width:auto;
    min-width:0;

    padding:12px 18px;

    font-size:.75rem;
    font-weight:600;

    letter-spacing:1px;

    white-space:nowrap;

  position:relative;
top:150px;

}

    .hero-btn .arrow{

        font-size:16px;

    }

}
