@import url('https://fonts.googleapis.com/css2?family=Alegreya:ital,wght@0,400;0,700;1,400;1,700&family=Belleza&display=swap');

:root {
    --background-hsl: 60 56% 91%;
    --foreground-hsl: 116 25% 20%;
    --primary-hsl: 116 44% 34%;
    --accent-hsl: 25 56% 40%;
    --border-hsl: 60 20% 80%;
    --primary-light-hsl: 116 44% 34% / 0.06;
    --primary-lighter-hsl: 116 44% 34% / 0.12;

    --font-body: 'Alegreya', serif;
    --font-headline: 'Belleza', sans-serif;

    --radius: 14px;
}

/* Base */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
    margin: 0;
    font-family: var(--font-body);
    background: hsl(var(--background-hsl));
    color: hsl(var(--foreground-hsl));
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    font-size: 17px;
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-headline);
    letter-spacing: .2px;
    margin: 0 0 .75rem 0;
    color: hsl(var(--primary-hsl));
}

/* Contenedor */
.container {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

/* ===========================
   HEADER (igual a login)
   =========================== */
header {
    position: sticky;
    top: 0;
    z-index: 50;
    width: 100%;
    background-color: hsl(var(--background-hsl)); /* sólido como en login */
    border-bottom: 1px solid hsl(var(--border-hsl));
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
}

header .logo img {
    height: 60px;
    width: auto;
    border-radius: 15%;
}

header nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

header nav ul {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

header nav a {
    font-family: var(--font-headline);
    font-weight: 700;
    font-size: 1rem;
    color: hsl(var(--primary-hsl));
    transition: color .2s ease;
}

header nav a:hover,
header nav a.active {
    color: hsl(var(--accent-hsl));
}

/* Hamburguesa + Menú móvil (como en login) */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    width: 40px;
    height: 40px;
    cursor: pointer;
    gap: 7px;
}

.hamburger span {
    display: block;
    height: 4px;
    width: 100%;
    background: hsl(var(--foreground-hsl));
    border-radius: 2px;
    transition: .3s;
}

.mobile-menu {
    display: none; /* se abre con JS */
    flex-direction: column;
    gap: 1rem;
    background: hsl(var(--background-hsl));
    position: absolute;
    top: 80px;
    right: 0;
    width: 70%;
    max-width: 300px;
    padding: 1.25rem 1.5rem;
    border-left: 1px solid hsl(var(--border-hsl));
    border-bottom: 1px solid hsl(var(--border-hsl));
    box-shadow: -4px 6px 16px rgba(0,0,0,0.06);
}

.mobile-menu a {
    font-family: var(--font-headline);
    font-size: 1.05rem;
    color: hsl(var(--primary-hsl));
    padding: .25rem 0;
}

/* ===========================
   SECCIÓN CONTACTO
   =========================== */
.info-contacto {
    padding: 3rem 1.25rem 1.25rem;
    background: hsla(var(--primary-light-hsl));
    border-bottom: 1px solid hsl(var(--border-hsl));
}
.info-contacto h1 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
}
.info-contacto p,
.info-contacto div {
    color: hsl(var(--foreground-hsl));
    margin: .35rem 0;
}
.info-contacto a { font-weight: 700; color: hsl(var(--primary-hsl)); }

/* Formulario */
.formulario-contacto {
    padding: 2.5rem 1.25rem 3.5rem;
}
.formulario-contacto h2 {
    font-size: clamp(1.5rem, 3.2vw, 2rem);
    margin-bottom: 1rem;
    color: hsl(var(--foreground-hsl));
}

form {
    display: grid;
    gap: 1rem;
    max-width: 720px;
    margin: 0 auto;
    background: #fff;
    padding: 1.25rem;
    border: 1px solid hsl(var(--border-hsl));
    border-radius: var(--radius);
    box-shadow: 0 10px 25px -18px rgba(0,0,0,.25);
}

label {
    font-weight: 700;
    color: hsl(var(--primary-hsl));
    font-family: var(--font-headline);
}

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: .9rem 1rem;
    border: 1px solid hsl(var(--border-hsl));
    border-radius: 8px;
    background: hsl(0 0% 100%);
    color: hsl(var(--foreground-hsl));
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
    transition: border-color .2s, box-shadow .2s, background-color .2s;
}

input::placeholder,
textarea::placeholder {
    color: hsl(var(--foreground-hsl));
    opacity: .6;
}

input:focus,
textarea:focus {
    border-color: hsl(var(--primary-hsl));
    box-shadow: 0 0 0 4px hsla(var(--primary-lighter-hsl));
    background: hsl(0 0% 100%);
}

button[type="submit"] {
    appearance: none;
    border: 0;
    align-self: start;
    padding: .9rem 1.1rem;
    background: hsl(var(--primary-hsl));
    color: #fff;
    font-weight: 700;
    letter-spacing: .3px;
    border-radius: 8px;
    cursor: pointer;
    transition: transform .06s ease, filter .2s ease, background .2s ease;
}
button[type="submit"]:hover { filter: brightness(1.03); }
button[type="submit"]:active { transform: translateY(1px); }

/* ===========================
   FOOTER
   =========================== */
.footer {
    background: hsla(var(--primary-lighter-hsl));
    border-top: 1px solid hsl(var(--border-hsl));
    padding: 1.75rem 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .75rem;
    text-align: center;
}

.footer p {
    margin: 0;
    color: hsl(var(--foreground-hsl));
    opacity: .75;
    font-size: .95rem;
}

.social-media {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}
.social-media a {
    color: hsl(var(--foreground-hsl));
    opacity: .8;
    padding: .25rem .5rem;
    border-radius: 999px;
    transition: background .2s, opacity .2s, color .2s;
}
.social-media a:hover {
    color: hsl(var(--primary-hsl));
    background: hsla(var(--primary-light-hsl));
    opacity: 1;
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 768px) {
    header nav ul { display: none; }
    .hamburger { display: flex; }
}

@media (min-width: 768px) {
    .info-contacto,
    .formulario-contacto,
    .footer { padding-left: 2rem; padding-right: 2rem; }

    form {
        padding: 1.5rem 1.75rem;
        grid-template-columns: 1fr 1fr;
    }

    label[for="mensaje"],
    #mensaje,
    button[type="submit"] {
        grid-column: 1 / -1;
    }

    button[type="submit"] { justify-self: start; }
}
