:root {
  --accent:#F25C05;
  --font: "Poppins", sans-serif;
  --font-title: "Playfair Display", serif;
}

/* Reset */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font);
  background-color: #faf1eb;

}

.icon-user {
    font-size: 2px;
    display: inline-block;
    filter: brightness(0) invert(0.6);   /* gris medio forzado */
    transition: 0.3s ease;
}

.icon-user:hover {
    filter: brightness(0) invert(1);     /* blanco forzado */
}


/* HEADER */
.site-header{
  position:absolute;
  top:18px;
  left:20px;
  right:20px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  z-index:1000;
}

.logo img{ height:100px; display:block; }


#primary_nav_wrap ul{
  list-style:none;
  display:flex;
  gap:18px;
  align-items:center;
  margin:0;
  padding:0;
}

/*  Oscurece imagen  */
#primary_nav_wrap img,
.slide {
  filter: brightness(0.6); 
  transition: filter 0.3s ease;
}

#primary_nav_wrap img:hover,
.slide:hover {
  filter: brightness(0.8); }


* Submenús */
#primary_nav_wrap ul ul li a:hover{ background:#f6f6f6; }


#primary_nav_wrap ul li{ position:relative; }

#primary_nav_wrap ul li a{
  color: var(--accent);
  text-decoration:none;
  font-weight:600;
  font-size:18px;
  padding:8px 6px;
  display:inline-block;
  transition: color .18s ease;
  font-family: var(--font-title);
}

#primary_nav_wrap ul li a::after{
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  transform: translateX(-50%) scaleX(0);
  width: 60%;
  height: 2px;
  background: var(--accent);
  transform-origin: center;
  transition: transform .22s ease;
}

#primary_nav_wrap ul li:hover > a::after{
  transform: translateX(-50%) scaleX(1);
}

/* Submenús */
#primary_nav_wrap ul ul{
  display:none;
  position:absolute;
  top: calc(100% + 8px);
  right:0;
  background:#fff;
  padding:6px 0;
  box-shadow:0 8px 18px rgba(0,0,0,0.12);
  border-radius:6px;
  min-width:200px;
  z-index:1100;
}

#primary_nav_wrap ul li:hover > ul{ display:block; }

#primary_nav_wrap ul ul li a{
  color:#333;
  padding:9px 16px;
  display:block;
  font-weight:500;
  font-family: var(--font);
}

#primary_nav_wrap ul ul li a:hover{ background:#f6f6f6; }

/* HERO */
.hero{
  width:100%;
  height:100vh;
  position:relative;
  overflow:hidden;
}



-----------


#primary_nav_wrap ul {
  list-style: none;
  display: flex;
  gap: 18px;
  align-items: center;
}

#primary_nav_wrap ul li a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 18px;
  padding: 8px 6px;
  display: inline-block;
  transition: color .18s ease;
  font-family: var(--font-title);
  position: relative;
}

#primary_nav_wrap ul li a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  transform: translateX(-50%) scaleX(0);
  width: 60%;
  height: 2px;
  background: var(--accent);
  transform-origin: center;
  transition: transform .22s ease;
}

#primary_nav_wrap ul li:hover > a::after {
  transform: translateX(-50%) scaleX(1);
}



/* FORMULARIO */
.form-container {
  max-width: 1000px;
  margin: 150px auto 50px;
  background: #fff;
  padding: 30px 40px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.titulo-form {
  text-align: center;
  font-family: var(--font-title);
  color: var(--accent);
  font-size: 28px;
  margin-bottom: 6px;
}

.info-form {
  text-align: center;
  color: #666;
  font-size: 15px;
  margin-bottom: 25px;
}

.seccion {
  margin-bottom: 25px;
}

.seccion h2 {
  color: var(--accent);
  font-size: 19px;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 4px;
  margin-bottom: 14px;
  font-family: var(--font-title);
}

.grupo-campos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px 20px;
}

.grupo-campos label {
  grid-column: span 2;
  font-weight: 500;
  color: #333;
  margin-top: 6px;
}

.campo {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-family: var(--font);
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
}

.campo:focus {
  border-color: var(--accent);
}

textarea.campo {
  grid-column: span 2;
  resize: none;
}

.botones {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 30px;
}

.btn-guardar,
.btn-limpiar {
  padding: 10px 24px;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s;
}

.btn-guardar {
  background: var(--accent);
  color: #fff;
}

.btn-limpiar {
  background: #ddd;
  color: #333;
}

.btn-guardar:hover {
  background: #d24e04;
}

.btn-limpiar:hover {
  background: #ccc;
}

/* Estilos para validación y animaciones */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
  20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.shake {
  animation: shake 0.5s ease-in-out;
}

.error {
  border-color: #e74c3c !important;
  box-shadow: 0 0 5px rgba(231, 76, 60, 0.5);
}

.error-message {
  color: #e74c3c;
  font-size: 14px;
  margin-top: 5px;
  display: none;
}

.error-message.show {
  display: block;
}