/* ===========================
   RESET + BASE
=========================== */
*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  text-transform:none;
  font-family:'Roboto', sans-serif;
}

:root{
  --header-h: 100px;     /* altura header en PC */
  --space: 16px;         /* espaciado base */
  --card-radius: 20px;
  --brand: #DA0000;
  --brand-hover: #cf0101;
  --text: #333;
}

/* Ajustes por tamaño */
@media (max-width: 768px){
  :root{ --header-h: 80px; }
}
@media (max-width: 480px){
  :root{ --header-h: 70px; }
}

/* ===========================
   BODY / FONDO
=========================== */
body{
  color: var(--text);
  line-height: 1.5;
  /* Conserva tu imagen de fondo */
  background-image: url(../img/fondo.2.jpg);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed;   /* fijo en desktop */
}

/* En móviles, evitar bugs de iOS con fixed */
@media (max-width: 768px){
  body{ background-attachment: scroll; }
}

/* ===========================
   HEADER + LOGO + HAMBURGUESA
=========================== */
header{
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: flex-start;        /* logo a la izquierda */
  background: rgba(255,255,255,0.10); /* sutil, no invade */
  padding: 0 var(--space);
  z-index: 1000;
}

/* Contenedor del logo */
.cabeza_depagina{ line-height: 0; }
.cabeza_depagina img{
  max-height: calc(var(--header-h) - 16px);  /* no más alto que el header */
  width: auto;
  height: auto;
  display: block;
}

/* Ocultar logo en móvil para que no invada */
@media (max-width: 768px){
  .cabeza_depagina{ display: none; }
}

/* Botón hamburguesa dentro del header */
.hamburger{
  position: absolute;
  right: var(--space);
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 24px;
  cursor: pointer;
  z-index: 1002;
}
._layer{
  width: 100%;
  height: 4px;
  background: #333;
  border-radius: 2px;
  margin-bottom: 4px;
  transition: all .25s ease;
}

/* ===========================
   MENÚ OVERLAY
=========================== */
.menuppal{
  background-color: rgba(255, 255, 255, 0.95);
  position: fixed;
  inset: 0;                          /* top/right/bottom/left: 0 */
  transform: translateY(-100%);
  transition: transform .35s ease;
  z-index: 1001;
  overflow-y: auto;                  /* el menú puede scrollear si es largo */
}
.menuppal.is_active{ transform: translateY(0); }

.menuppal ul{
  list-style:none;
  padding: 24px;
  text-align:center;
}
.menuppal ul li{
  font-size: 1.5rem;
  margin-bottom: 15px;
}
.menuppal ul li a{
  text-decoration:none;
  color:#369;
  font-weight:bold;
  transition: color .3s ease;
}
.menuppal ul li a:hover{ color:#333; }

@media (max-width: 480px){
  .menuppal ul li{ font-size: 1.25rem; }
}

/* ===========================
   CONTENIDO
=========================== */
main{
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 24px var(--space);
  padding-top: calc(var(--header-h) + 16px); /* deja espacio bajo el header */
  text-align: center;
}

/* ===========================
   BLOQUES OPCIONALES (si los usas)
=========================== */
.caja__trasera{
  width: 100%;
  padding: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  background-color: rgba(255,255,255,0.5);
  margin-top: 20px;
}
.caja__trasera div{
  margin: 20px;
  padding: 20px;
  color: var(--text);
  background: rgba(0,0,0,0.1);
  border-radius: 10px;
  flex: 1 1 calc(100% - 40px);
  max-width: 300px;
}

/* ===========================
   TARJETA DEL FORMULARIO
=========================== */
.contenedor__todo{
  width: 90%;
  max-width: 400px;
  margin: 0 auto;                     /* centrado */
  padding: 32px;
  background: rgba(255,255,255,0.85);
  font-size: 14px;
  font-weight: 600;
  color: var(--brand);
  border-radius: var(--card-radius);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.contenedor__todo h2{
  color: var(--text);
  margin-bottom: 4px;
  font-weight: 700;
}

.contenedor__todo form input,
.contenedor__todo form select{
  width: 100%;
  margin-top: 16px;
  padding: 10px 14px;
  border: none;
  background: #F2F2F2;
  font-size: 16px;
  outline: none;
  border-radius: 50px;
}

.contenedor__todo form button{
  padding: 12px 20px;
  margin-top: 18px;
  border: none;
  font-size: 16px;
  background: var(--brand);
  color: #fff;
  cursor: pointer;
  outline: none;
  width: 100%;
  border-radius: 20px;
  transition: background .3s ease, transform .05s ease;
}
.contenedor__todo form button:hover{ background: var(--brand-hover); }
.contenedor__todo form button:active{ transform: translateY(1px); }

@media (max-width: 768px){
  .contenedor__todo{ width: 95%; }
}

/* ===========================
   FOOTER
=========================== */
footer{
  text-align: center;
  padding: 20px;
  background: rgba(0,0,0,0.2);
  color: white;
  position: relative;
  margin-top: 30px;
}

/* ===========================
   AJUSTES RESPONSIVE GENERALES
=========================== */
@media (max-width: 768px){
  /* puedes ajustar tipografías generales aquí si quieres */
}

@media (max-width: 480px){
  /* móviles muy chicos */
}
