:root {
  --rosa-malva: #D9A1B2;
  --durazno: #F2B8A0;
  --amarillo-crema: #EED9A6;
  --verde-salvia: #BFD8B8;

  --fondo: var(--amarillo-crema);
  --texto: #3a3a3a;
  --blanco: #ffffff;
  --error: #c96b78;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background-color: var(--durazno);
  color: var(--texto);
  line-height: 1.6;
}

html {
  scroll-behavior: smooth;
}

.container {
  max-width: 900px;
  margin: auto;
  padding: 2rem 1rem;
}

/* HERO */
.hero {
  text-align: center;
  margin-bottom: 3rem;
}

.hero h1 {
  font-size: 2.0rem;
  margin-bottom: 0.3rem;
  color: #4a3b42;
}

.subtitle {
  color: #6b5a60;
}

/* SECCIONES */
.bio,
.form-section {
  background-color: var(--blanco);
  padding: 2rem;
  border-radius: 18px;
  margin-bottom: 3rem;
}

.bio h2,
.form-section h2 {
  margin-top: 0;
  color: #4a3b42;
}

/* FORM */
.contact-form {
  display: grid;
  gap: 1.4rem;
}

.field {
  display: flex;
  flex-direction: column;
}

label {
  font-weight: 500;
  margin-bottom: 0.3rem;
}

/* FORM VALIDACIONES */

.input-error {
  border-color: var(--error) !important;
  box-shadow: 0 0 0 2px rgba(201, 107, 120, 0.25);
}

.field-error {
  color: var(--error);
  font-size: 0.8rem;
  margin-top: 0.3rem;
}


.error {
  border: 2px solid #c84b4b;
}

.error-text {
  color: #c84b4b;
  font-size: 0.8rem;
  margin-top: 4px;
  display: block;
}


/* INPUTS */
input,
textarea {
  padding: 0.6rem 0.7rem;
  border-radius: 10px;
  border: 1px solid #d1cfcf;
  font-family: inherit;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--rosa-malva);
  box-shadow: 0 0 0 2px rgba(217, 161, 178, 0.25);
}

/* FIELDSETS */
fieldset {
  border: 1px solid #e2e0e0;
  padding: 1rem;
  border-radius: 14px;
}

legend {
  font-weight: 600;
  margin-bottom: 0.5rem;
  padding: 0 0.4rem;
  color: #4a3b42;
}

fieldset label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 400;
}

/* ERRORES */
fieldset.error {
  border-color: var(--error);
  background-color: rgba(242, 184, 160, 0.25);
}

fieldset.error legend {
  color: var(--error);
}

.error-message,
#horario-error {
  color: var(--error);
  font-size: 0.85rem;
  margin-top: 0.4rem;
}

/* BOTÓN */
button {
  margin-top: 1rem;
  padding: 0.9rem;
  border-radius: 14px;
  border: none;
  background-color: var(--rosa-malva);
  color: #ffffff;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.1s ease;
}

button:hover:not(:disabled) {
  background-color: var(--verde-salvia);
  color: #2f3b32;
}

button:active:not(:disabled) {
  transform: scale(0.98);
}

button:disabled {
  background-color: #d4cfcf;
  cursor: not-allowed;
}

/* HEADER */
.site-header {
  text-align: center;
  padding: 2.5rem 1rem 1.5rem;
}

.logo {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 50%;
  background-color: white;
  padding: 1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  margin-bottom: 1.2rem;
}


/* NAVBAR */
.navbar {
  display: flex;
  justify-content: center;
  gap: 2.2rem;
  flex-wrap: wrap;
}

.nav-link {
  text-decoration: none;
  font-weight: 500;
  color: #4a3b42;
  position: relative;
  padding-bottom: 4px;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: var(--rosa-malva);
  transition: width 0.25s ease;
}

.nav-link:hover {
  color: var(--rosa-malva);
}

.nav-link:hover::after {
  width: 100%;
}

/* =========================
   HEADER AVANZADO
========================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  text-align: center;
  padding: 1.8rem 1rem 1.2rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  animation: headerFade 0.8s ease forwards;
}

/* LOGO CIRCULAR */
.logo {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 50%;
  background-color: white;
  padding: 1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  margin-bottom: 1.2rem;
  animation: logoFloat 1.2s ease forwards;
}

/* NAVBAR */
.navbar {
  display: flex;
  justify-content: center;
  gap: 2.2rem;
  flex-wrap: wrap;
}

.nav-link {
  text-decoration: none;
  font-weight: 500;
  color: #4a3b42;
  position: relative;
  padding-bottom: 6px;
  transition: color 0.25s ease;
}

/* underline animado */
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: var(--rosa-malva);
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: var(--rosa-malva);
}

.nav-link:hover::after {
  width: 100%;
}

/* LINK ACTIVO (futuro JS o anchor) */
.nav-link.active {
  color: var(--rosa-malva);
}

.nav-link.active::after {
  width: 100%;
}

/* =========================
   FOOTER
========================= */

.site-footer {
  margin-top: 4rem;
  padding: 1.5rem 1rem;
  text-align: center;
  font-size: 0.85rem;
  color: #6b5a60;
}

.site-footer a {
  color: var(--texto);
  text-decoration: none;
  font-weight: 500;
}

.site-footer a:hover {
  text-decoration: underline;
}


/* =========================
   ANIMACIONES
========================= */

@keyframes headerFade {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


@keyframes logoFloat {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

#contacto, #inicio {
  scroll-margin-top: 250px; /* ajustá según altura real del header */
}


/* RESPONSIVE */
@media (max-width: 600px) {

  .container {
    padding: 1.5rem 1rem;
  }

  .bio,
  .form-section {
    padding: 1.5rem;
  }

  .logo {
    width: 110px;
    height: 110px;
  }

  .navbar {
    gap: 1.4rem;
  }
}