/* ==========================================
   Base & Reset (Mobile First)
   ========================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Nunito', sans-serif;
  background-color: #F4F4F4;
  color: #4A4A4A;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
}

h1, h2, h3, h4 {
  font-weight: 900;
  line-height: 1.2;
}

p {
  margin-bottom: 20px;
  font-weight: 400;
}

/* ==========================================
   Botones
   ========================================== */
.btn-primary, .btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  cursor: pointer;
  border: none;
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  width: 100%;
}

.btn-primary {
  background-color: #F1A150;
  color: #FFFFFF;
}

.btn-primary:hover {
  background-color: #ef9132;
}

.btn-secondary {
  background-color: #FFFFFF;
  color: #4D73B7;
  border: 2px solid #4D73B7;
}

.btn-secondary:hover {
  background-color: rgba(77, 115, 183, 0.05);
}

/* ==========================================
   Header / Hero
   ========================================== */
.hero {
  padding: 60px 0 80px;
  text-align: center;
  background-color: #FFFFFF;
  border-bottom: 1px solid #DDDDDD;
}

.hero .logo {
  font-size: 2.2rem;
  color: #4D73B7;
  margin-bottom: 20px;
}

.hero .logo span {
  color: #F1A150;
}

.hero h2 {
  font-size: 2.5rem;
  color: #4D73B7;
  margin-bottom: 15px;
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #636363;
}

.hero .hero-actions {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
}

/* ==========================================
   Galería de Actividades
   ========================================== */
.gallery {
  padding: 60px 20px;
}

.gallery .section-title {
  text-align: center;
  font-size: 2.2rem;
  color: #E94B5D;
  margin-bottom: 40px;
}

.gallery .gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.gallery .gallery-item {
  background-color: #FFFFFF;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.gallery .gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.gallery .gallery-item .gallery-caption {
  padding: 15px;
  text-align: center;
  font-weight: 700;
  color: #E94B5D;
  font-size: 1rem;
}

.gallery .gallery-item:nth-child(2) .gallery-caption { color: #4D73B7; }
.gallery .gallery-item:nth-child(3) .gallery-caption { color: #F1A150; }
.gallery .gallery-item:nth-child(4) .gallery-caption { color: #5FB672; }

/* ==========================================
   Sección de Servidores
   ========================================== */
.servers-section {
  padding: 60px 20px;
  background-color: #FFFFFF;
  border-top: 1px solid #DDDDDD;
}

.servers-section .servers-content {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.servers-section .servers-text h3 {
  font-size: 2.2rem;
  color: #5FB672;
  margin-bottom: 20px;
}

.servers-section .servers-text p {
  font-size: 1rem;
  margin-bottom: 20px;
}

.servers-form-container {
  background-color: #F4F4F4;
  padding: 30px;
  border-radius: 20px;
  border-bottom: 6px solid #5FB672;
}

/* ==========================================
   Formulario Extendido
   ========================================== */
#serverForm .form-group {
  margin-bottom: 15px;
}

#serverForm .form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
  font-size: 0.9rem;
  color: #313131;
}

#serverForm .form-group input, 
#serverForm .form-group textarea {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 2px solid #DDDDDD;
  font-family: 'Nunito', sans-serif;
  font-size: 0.9rem;
  transition: border-color 0.2s ease;
}

#serverForm .form-group input:focus, 
#serverForm .form-group textarea:focus {
  outline: none;
  border-color: #5FB672;
}

#serverForm .btn-primary {
  width: 100%;
  margin-top: 5px;
}

/* Títulos y Cajas del Formulario */
#serverForm .form-section-title {
  font-size: 1.3rem;
  color: #4D73B7;
  margin: 30px 0 15px;
  padding-bottom: 5px;
  border-bottom: 2px solid #DDDDDD;
}

.requirements-box {
  background-color: rgba(241, 161, 80, 0.1);
  border-left: 5px solid #F1A150;
  padding: 20px;
  border-radius: 0 10px 10px 0;
  margin-bottom: 30px;
}

.requirements-box h4 {
  color: #b97126;
  margin-bottom: 10px;
}

.requirements-box ul {
  margin-left: 20px;
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.requirements-box p {
  margin-bottom: 0;
  font-size: 0.9rem;
  font-weight: 700;
}

/* Archivos */
#serverForm .file-hint {
  font-size: 0.85rem;
  color: #7d7d7d;
  margin-bottom: 15px;
}

#serverForm .file-group {
  background-color: #FFFFFF;
  padding: 15px;
  border-radius: 10px;
  border: 1px dashed #DDDDDD;
}

#serverForm .file-group input[type="file"] {
  border: none;
  padding: 5px 0;
  background-color: transparent;
  font-size: 0.85rem;
}

/* Checkbox */
#serverForm .checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 30px 0 20px;
  background-color: rgba(77, 115, 183, 0.05);
  padding: 15px;
  border-radius: 10px;
}

#serverForm .checkbox-group input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: #5FB672;
}

#serverForm .checkbox-group label {
  margin-bottom: 0;
  font-size: 0.9rem;
  line-height: 1.4;
  cursor: pointer;
}

/* Mensaje de Respuesta */
#responseMessage {
  margin-top: 20px;
  padding: 12px;
  border-radius: 10px;
  text-align: center;
  font-weight: 700;
  font-size: 0.9rem;
}

#responseMessage.success {
  background-color: rgba(95, 182, 114, 0.1);
  color: #3f834f;
  border: 1px solid rgba(95, 182, 114, 0.3);
}

#responseMessage.error {
  background-color: rgba(233, 75, 93, 0.1);
  color: #c92235;
  border: 1px solid rgba(233, 75, 93, 0.3);
}

.hidden {
  display: none;
}

/* ==========================================
   Pie de página básico
   ========================================== */
.footer {
  padding: 30px 20px;
  text-align: center;
  border-top: 1px solid #DDDDDD;
  color: #7d7d7d;
  font-size: 0.8rem;
}

/* ==========================================
   Breakpoints (Responsividad)
   ========================================== */

/* Tablets y dispositivos medianos */
@media (min-width: 768px) {
  .hero {
    padding: 80px 0 100px;
  }
  .hero h2 { font-size: 3rem; }
  .hero p { font-size: 1.2rem; }
  .hero .hero-actions {
    flex-direction: row;
    justify-content: center;
    gap: 20px;
  }
  .btn-primary, .btn-secondary { width: auto; }

  .gallery {
    padding: 80px 0;
  }
  .gallery .section-title { font-size: 2.5rem; }
  .gallery .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
  .gallery .gallery-item img { height: 220px; }

  .servers-section {
    padding: 80px 0;
  }
  .servers-section .servers-content {
    flex-direction: row;
    gap: 50px;
  }
  .servers-section .servers-text h3 { font-size: 2.5rem; }
  .servers-section .servers-text p { font-size: 1.1rem; }
  
  .servers-form-container { padding: 40px; }
  
  /* Grid de Formulario a 2 columnas */
  .form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  .form-grid .form-group {
    margin-bottom: 0;
  }
}

/* Desktop y pantallas grandes */
@media (min-width: 1024px) {
  .container { padding: 0 20px; }
  .gallery .gallery-grid { grid-template-columns: repeat(4, 1fr); }
}







/* ==========================================
   COMBINACIÓN: ESTILO DOODLE (Opción 5)
   APLICADO AL FORMULARIO DETALLADO
   (Pegar al final de styles.css)
   ========================================== */

/* Variables (Mismas de la Opción 5) */
:root {
  --doodle-border-irregular: 255px 15px 225px 15px/15px 225px 15px 255px;
  --doodle-border-requirements: 10px 255px 10px 225px / 10px 10px 225px 10px;
}

/* --- HERO (Fondo Blanco y Acentos) --- */
.hero {
  background-color: #fff;
  border-bottom: 4px dashed #DDDDDD; /* Borde dashed inferior */
}
.hero h2 {
  font-weight: 900;
  letter-spacing: -1px;
  color: #4D73B7; /* Azul Taber Institucional */
}
.hero .logo span {
  color: #F1A150; /* Acento Naranja en 'Kids' */
}

/* --- BOTONES DOODLE --- */
.hero .btn-primary, .hero .btn-secondary,
#serverForm .btn-primary {
  border-radius: var(--doodle-border-irregular);
  border: 3px solid;
}

.hero .btn-primary {
  background-color: #F1A150;
  border-color: #c77b2f; /* Naranja oscuro para el trazo */
  color: #fff;
  box-shadow: 4px 4px 0 #c77b2f; /* Sombra sólida desfasada */
}
.hero .btn-primary:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 #c77b2f; /* Efecto presionar */
}

.hero .btn-secondary {
  background-color: transparent;
  border-color: #4D73B7;
  color: #4D73B7;
}
.hero .btn-secondary:hover {
    background-color: #f0f4f8;
}

/* --- GALERÍA POLAROID INCLINADA --- */
.gallery .gallery-grid {
  gap: 40px;
}
.gallery .gallery-item {
  background: #fff;
  padding: 10px 10px 20px 10px;
  border: 1px solid #ddd;
  box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.1);
  border-radius: 2px; /* Más cuadrado para el efecto */
  transition: transform 0.3s;
}
/* Inclinación desordenada */
.gallery .gallery-item:nth-child(even) {
  transform: rotate(2deg);
}
.gallery .gallery-item:nth-child(odd) {
  transform: rotate(-2deg);
}
.gallery .gallery-item:hover {
  transform: rotate(0deg) scale(1.05); /* Se endereza y agranda */
  z-index: 10;
  position: relative;
}
.gallery .gallery-item img {
  border-radius: 0;
}
.gallery .gallery-caption {
  font-family: 'Comic Sans MS', 'Nunito', sans-serif; /* Un toque de fuente cursiva */
}

/* --- SECCIÓN DE SERVIDORES Y FORMULARIO EXTENDIDO (DOODLE) --- */
/* (Usamos el verde acento para la sombra de bloque aquí) */
.servers-form-container {
  border-radius: 10px;
  border: 3px solid #313131; /* Borde sólido "trazo de lápiz" */
  box-shadow: -8px 8px 0 #5FB672; /* Sombra de bloque sólida verde */
  border-bottom: 8px solid #313131; /* Reafirmar el borde inferior sólido */
}

/* Botón de envío específico para el formulario detallado */
#serverForm .btn-primary {
    background-color: #5FB672; /* Verde acento para el botón de servidor */
    border-color: #3f834f;
    color: #fff;
    box-shadow: 4px 4px 0 #3f834f;
    margin-top: 30px;
}
#serverForm .btn-primary:hover {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 #3f834f;
}

/* Títulos de sección dentro del formulario */
#serverForm .form-section-title {
  font-size: 1.3rem;
  color: #4D73B7;
  margin: 30px 0 15px;
  padding-bottom: 5px;
  border-bottom: 2px dashed #DDDDDD; /* Borde dashed irregular */
}

/* Inputs, Textareas y Inputs de Fecha (Estilo Doodle) */
#serverForm .form-group input,
#serverForm .form-group textarea {
  border: 2px solid #313131;
  border-radius: 5px;
  background-color: #fff;
  transition: border-color 0.2s;
}
#serverForm .form-group input:focus,
#serverForm .form-group textarea:focus {
  outline: none;
  border-color: #5FB672;
  box-shadow: 0 0 10px rgba(95, 182, 114, 0.2);
}

/* Caja de Requisitos (Doodle) */
.requirements-box {
  background-color: rgba(241, 161, 80, 0.1);
  border: 2px solid #F1A150;
  border-radius: var(--doodle-border-requirements);
  padding: 20px;
  margin-bottom: 30px;
}
.requirements-box h4 {
  color: #b97126;
  margin-bottom: 10px;
}
.requirements-box ul {
  list-style-position: inside;
  margin-left: 0;
}

/* Contenedor de Archivos (Doodle) */
#serverForm .file-group {
  background-color: #fff;
  padding: 15px;
  border-radius: 10px;
  border: 2px dashed #313131; /* Borde dashed irregular */
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.05);
}
#serverForm .file-group input[type="file"] {
  border: none;
  padding: 5px 0;
  background-color: transparent;
  font-size: 0.85rem;
}

/* Checkbox (Doodle Acento) */
#serverForm .checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 30px 0 20px;
  background-color: rgba(77, 115, 183, 0.05);
  padding: 15px;
  border-radius: 10px;
  border: 1px solid rgba(77, 115, 183, 0.1);
}
#serverForm .checkbox-group input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: #5FB672; /* Verde acento para el checked */
  border: 2px solid #313131;
  border-radius: 4px;
}
#serverForm .checkbox-group label {
  cursor: pointer;
}

/* Grid responsivo (mismo del chat anterior) */
@media (min-width: 768px) {
  .form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
}