/* ================================
   css/alta.css
   Formularios internos de alta
================================ */

/* ================================
   VARIABLES
================================ */

:root {
  --lb-black:      #0B0F16;
  --lb-white:      #FFFFFF;
  --lb-dark:       #302D50;
  --lb-medium:     #302D50;
  --lb-light:      #E4E6E9;
  --lb-magenta:    #28BDD7;
  --lb-transition: 0.25s ease;

  --space-section: 100px;
  --space-block:    50px;
  --space-element:  24px;

  --p-size-chico:  14px;
  --p-size-grande: 20px;
}

/* ================================
   RESET
================================ */

.alta-page * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  background: var(--lb-white);
  color: var(--lb-black);
  line-height: 1.5;
}

/* ================================
   ENLACES
================================ */

a {
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

/* ================================
   HERO
================================ */

.lb-hero {
  background: var(--lb-black);
  color: var(--lb-white);
  padding: 120px 8% 80px;
}

.lb-hero-container {
  max-width: 900px;
  margin: 0 auto;
}

.lb-hero-text h1 {
  font-size: 56px;
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 16px;
}

.lb-hero-text p {
  font-size: 20px;
  font-weight: 500;
}

/* ================================
   LOGO / BANNER
================================ */

.lb-banner {
  display: block;
  width: 100%;
  max-width: 900px;
  height: auto;
  margin: 0 auto 50px;
}

/* ================================
   SECCIONES
   (solo tipografía y ritmo vertical.
   Color y alineación NO viven acá:
   se aplican con clases utilitarias
   donde el HTML lo necesite)
================================ */

.lb-section {
  padding: var(--space-section) 8%;
}

.lb-section-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-block);
}

.lb-section-inner--angosto {
  max-width: 600px;
}

.lb-section h2 {
  font-size: 32px;
  font-weight: 800;
}

.lb-section h3 {
  font-size: 20px;
  font-weight: 700;
}

.lb-section p {
  font-size: 16px;
}

/* Fondo y color de sección: el color se hereda
   por defecto en h1/h2/h3/p/span. No hace falta
   wildcard ni reglas de mayor especificidad. */

.lb-section--light {
  background: var(--lb-white);
  color: var(--lb-black);
}

.lb-section--dark {
  background: var(--lb-black);
  color: var(--lb-white);
}

/* ================================
   GRIDS
================================ */

.lb-grid-2,
.lb-grid-3 {
  display: grid;
  gap: var(--space-element);
  width: 100%;
}

.lb-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.lb-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

/* ================================
   FORM
================================ */

.lb-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-element);
  width: 100%;
}

.lb-form input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.lb-form textarea,
.lb-form select {
  width: 100%;
  padding: 16px;
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 600;
  min-height: 48px;
  outline: none;
  transition: var(--lb-transition);
  -webkit-appearance: none;
  appearance: none;
}

/* FORM CLARO */

.lb-section--light .lb-form input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.lb-section--light .lb-form textarea,
.lb-section--light .lb-form select {
  background: var(--lb-white);
  color: var(--lb-black);
  border: 1px solid var(--lb-medium);
}

.lb-section--light .lb-form input::placeholder,
.lb-section--light .lb-form textarea::placeholder {
  color: var(--lb-medium);
  opacity: 1;
}

.lb-section--light .lb-form input:focus,
.lb-section--light .lb-form textarea:focus,
.lb-section--light .lb-form select:focus {
  border-color: var(--lb-black);
}

/* FORM OSCURO */

.lb-section--dark .lb-form input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.lb-section--dark .lb-form textarea,
.lb-section--dark .lb-form select {
  background: var(--lb-black);
  color: var(--lb-white);
  border: 1px solid var(--lb-white);
}

.lb-section--dark .lb-form input::placeholder,
.lb-section--dark .lb-form textarea::placeholder {
  color: var(--lb-light);
  opacity: 1;
}

.lb-section--dark .lb-form input:focus,
.lb-section--dark .lb-form textarea:focus,
.lb-section--dark .lb-form select:focus {
  border-color: var(--lb-light);
  background: #0B0F16;
}

/* ================================
   AUTOFILL
================================ */

.lb-section--light .lb-form input:-webkit-autofill,
.lb-section--light .lb-form input:-webkit-autofill:hover,
.lb-section--light .lb-form input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0px 1000px var(--lb-white) inset;
  -webkit-text-fill-color: var(--lb-black);
  transition: background-color 5000s ease-in-out 0s;
}

.lb-section--dark .lb-form input:-webkit-autofill,
.lb-section--dark .lb-form input:-webkit-autofill:hover,
.lb-section--dark .lb-form input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0px 1000px var(--lb-black) inset;
  -webkit-text-fill-color: var(--lb-white);
  transition: background-color 5000s ease-in-out 0s;
}

/* ================================
   FILE
================================ */

.lb-form input[type="file"] {
  width: 100%;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  background: transparent;
  border: none;
  padding: 8px 0;
}

/* ================================
   CHECKBOXES Y RADIOS
================================ */

.lb-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}

.lb-check input[type="checkbox"],
.lb-check input[type="radio"] {
  width: 18px;
  height: 18px;
  min-height: 20px;
  margin-top: 4px;
  cursor: pointer;
  flex-shrink: 0;
  -webkit-appearance: auto;
  appearance: auto;
  accent-color: var(--lb-dark);
}

.lb-section--dark .lb-check input[type="checkbox"],
.lb-section--dark .lb-check input[type="radio"] {
  accent-color: var(--lb-light);
}

.lb-check-nombre {
  display: block;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.3;
}

.lb-check-desc {
  display: block;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  margin-top: 4px;
  color: var(--lb-medium);
}

/* ================================
   ESPECIALIDADES
================================ */

.lb-especialidades {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  width: 100%;
  text-align: left;
}

/* ================================
   BOTÓN
================================ */

.lb-btn {
  display: inline-block;
  padding: 18px 40px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 18px;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--lb-transition);
  border: 2px solid var(--lb-black);
  margin-top: var(--space-block);
}

.lb-section--light .lb-btn {
  background: var(--lb-black);
  color: var(--lb-white);
  border-color: var(--lb-black);
}

.lb-section--light .lb-btn:hover {
  background: var(--lb-dark);
  border-color: var(--lb-dark);
  transform: translateY(-2px);
}

.lb-section--dark .lb-btn {
  background: var(--lb-white);
  color: var(--lb-black);
  border-color: var(--lb-white);
}

.lb-section--dark .lb-btn:hover {
  background: var(--lb-light);
  border-color: var(--lb-light);
  transform: translateY(-2px);
}

/* ================================
   PREVIEW DE IMÁGENES
================================ */

.lb-alta-preview {
  display: block;
  width: 160px;
  height: 90px;
  object-fit: cover;
  border: 1px solid var(--lb-medium);
  margin-bottom: 8px;
}

.lb-alta-preview-cuadrada {
  display: block;
  width: 120px;
  height: 120px;
  object-fit: cover;
  border: 1px solid var(--lb-medium);
  margin-bottom: 8px;
}

/* ================================
   FORMULARIOS EN GRID OSCURO
================================ */

.lb-section--dark .lb-grid-3 .lb-form input,
.lb-section--dark .lb-grid-3 .lb-form select {
  width: 100%;
  height: 52px;
  min-height: 52px;
  box-sizing: border-box;
  background: var(--lb-black);
  color: var(--lb-white);
  border: 2px solid #28BDD7;
  border-radius: 10px;
}

.lb-section--dark .lb-grid-3 > .lb-btn {
  grid-column: 1 / -1;
  justify-self: center;
  margin-top: 0;
  background: #28BDD7;
  color: var(--lb-white);
  border-color: #28BDD7;
  border-radius: 10px;
}

/* ================================
   VIDEO YOUTUBE
================================ */

.video-youtube {
  width: 100%;
  max-width: 560px;
  margin: 30px auto;
  aspect-ratio: 16 / 9;
}

.video-youtube iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ================================
   UTILIDADES: ALINEACIÓN
   Único lugar donde se decide alineación.
   Se aplica en el HTML, elemento por elemento.
================================ */

.lb-align-left {
  text-align: left;
}

.lb-align-center {
  text-align: center;
}

.lb-align-right {
  text-align: right;
}

/* ================================
   UTILIDADES: COLORES
   Único lugar donde se pisa el color heredado.
================================ */

.lb-color-black   { color: var(--lb-black); }
.lb-color-white   { color: var(--lb-white); }
.lb-color-dark    { color: var(--lb-dark); }
.lb-color-medium  { color: var(--lb-medium); }
.lb-color-light   { color: var(--lb-light); }
.lb-color-magenta { color: var(--lb-magenta); }

/* ================================
   UTILIDADES: FONDOS
================================ */

.lb-bg-black   { background: var(--lb-black); }
.lb-bg-white   { background: var(--lb-white); }
.lb-bg-dark    { background: var(--lb-dark); }
.lb-bg-medium  { background: var(--lb-medium); }
.lb-bg-light   { background: var(--lb-light); }
.lb-bg-magenta { background: var(--lb-magenta); }

/* ================================
   UTILIDADES: BOTONES DE COLOR
================================ */

.lb-btn-black {
  background: var(--lb-black);
  color: var(--lb-white);
  border-color: var(--lb-black);
}

.lb-btn-white {
  background: var(--lb-white);
  color: var(--lb-black);
  border-color: var(--lb-white);
}

.lb-btn-dark {
  background: var(--lb-dark);
  color: var(--lb-white);
  border-color: var(--lb-dark);
}

.lb-btn-medium {
  background: var(--lb-medium);
  color: var(--lb-white);
  border-color: var(--lb-medium);
}

.lb-btn-light {
  background: var(--lb-light);
  color: var(--lb-black);
  border-color: var(--lb-light);
}

.lb-btn-magenta {
  background: var(--lb-magenta);
  color: var(--lb-white);
  border-color: var(--lb-magenta);
}

/* ================================
   UTILIDADES: TARJETAS
================================ */

.lb-card-black {
  background: var(--lb-black);
  color: var(--lb-white);
}

.lb-card-white {
  background: var(--lb-white);
  color: var(--lb-black);
}

.lb-card-dark {
  background: var(--lb-dark);
  color: var(--lb-white);
}

.lb-card-medium {
  background: var(--lb-medium);
  color: var(--lb-white);
}

.lb-card-light {
  background: var(--lb-light);
  color: var(--lb-black);
}

.lb-card-magenta {
  background: var(--lb-magenta);
  color: var(--lb-white);
}

/* ================================
   UTILIDADES: TAMAÑOS DE PÁRRAFO
================================ */

.lb-p-chico {
  font-size: var(--p-size-chico);
}

.lb-p-grande {
  font-size: var(--p-size-grande);
}

/* ================================
   RESPONSIVE
================================ */

@media (max-width: 768px) {

  .lb-section {
    padding: 60px 6%;
  }

  .lb-section h2 {
    font-size: 24px;
  }

  .lb-section h3 {
    font-size: 18px;
  }

  .lb-grid-2,
  .lb-grid-3,
  .lb-especialidades {
    grid-template-columns: 1fr;
  }

  .lb-btn {
    width: 100%;
  }

  .lb-alta-preview {
    width: 120px;
    height: 68px;
  }

  .lb-section .lb-align-center h2 {
    width: 100%;
  }

  .lb-section .lb-align-center .lb-btn {
    width: auto;
    max-width: 100%;
  }

}