/* Hero principal */
.hero-index {
  background-color: #00a8b3;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 60px 40px;
  flex-wrap: wrap;
}

.hero-contenido h1 {
  font-size: 48px;
  font-weight: 900;
  margin-bottom: 10px;
  line-height: 1.2;
}

.hero-contenido p {
  font-size: 18px;
  margin-bottom: 30px;
}

/* Footer */
.medina-footer {
  background-color: #222;
  color: white;
  text-align: center;
  padding: 20px;
}

.rrss a img {
  width: 24px;
  margin: 0 10px;
}

/* Botón WhatsApp flotante */
.boton-whatsapp {
  position: fixed;
  bottom: 40px;
  left: 120px;
  width: 60px;
  height: 60px;
  z-index: 999;
  transition: all 0.3s ease;
}

.boton-whatsapp img {
  width: 100%;
  height: auto;
}

/* Versión responsive en móviles */
@media (max-width: 768px) {
  .boton-whatsapp {
    width: 40px;
    height: 40px;
    bottom: 25px;
    left: 80px;
  }
}

.politica {
  font-size: 12px;
  margin-top: 10px;
}
.politica a {
  color: #00a8b3;
}
.campo-telefono {
  display: flex;
  align-items: center;
}
.campo-telefono input {
  flex: 1;
}
.boton-enviar {
  background-color: #6961c6;
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 20px;
  width: 44px;
  height: 44px;
  margin-left: 10px;
  cursor: pointer;
  transition: background 0.3s ease;
}
.boton-enviar:hover {
  background-color: #6961c6;
}

.instagram-widget-container {
  position: relative;
  z-index: 1; /* o al menos 1 */
}

.hero-imagen {
  display: flex;
  justify-content: flex-end; /* Alinea hijos a la derecha */
}

.hero-imagen img {
  width: 100%; /* Tamaño ajustable */
  height: auto;
}

/* Estilos generales del hero */
.hero {
  background-color: var(--color-principal); /* Usa tu variable global */
  padding: 60px 0;
  color: white;
}

/* Contenedor principal (2 columnas) */
.hero-contenido {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Formulario de teléfono */
.form-telefono {
  display: flex;
  margin-bottom: 20px;
  max-width: 400px;
}

.form-telefono input {
  flex: 1;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 5px 0 0 5px;
  font-size: 1rem;
}

.form-telefono button {
  padding: 0 20px;
  background-color: var(--color-tercero);
  color: white;
  border: none;
  border-radius: 0 5px 5px 0;
  cursor: pointer;
  font-size: 1.2rem;
  transition: background-color 0.3s;
}

.form-telefono button:hover {
  background-color: var(--color-hover);
}

/* Columna de imagen */
.hero-imagen {
  text-align: right;
}

.hero-imagen img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

/* Responsive: Apilar en móviles */
@media (max-width: 768px) {
  .hero-contenido {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .hero-imagen {
    text-align: center;
    order: -1; /* Opcional: imagen arriba en móviles */
  }
  
  .hero-texto {
    text-align: center;
  }
  
  .form-telefono {
    margin: 0 auto 20px;
  }
}

.formulario-contacto {
  padding: 40px 20px;
  background-color: #f9f9f9;
}

.formulario-grid form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
  background-color: white;
  padding: 30px;
  border-radius: var(--radio-borde);
  box-shadow: var(--sombra-suave);
  flex-wrap: wrap;
}

.formulario-col input,
.formulario-col textarea {
  width: 100%;
  padding: 10px;
  font-size: 14px;
  margin-bottom: 12px;
  border-radius: var(--radio-borde);
  border: 1px solid #ccc;
}

.formulario-col textarea {
  resize: vertical;
  min-height: 100px;
}

.formulario-col label {
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
}

.formulario-boton-centro {
  grid-column: span 2;
  text-align: center;
  margin-top: 5px;
}

.formulario-boton-centro button {
  background-color: var(--color-principal);
  color: white;
  border: none;
  padding: 10px 25px;
  font-size: 16px;
  border-radius: 30px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin: 0 auto; /* centra el botón */
}

.formulario-boton-centro button:hover {
  background-color: var(--color-hover);
}

@media (max-width: 768px) {
  .formulario-grid form {
    grid-template-columns: 1fr 1fr;
  }

  .formulario-boton-centro {
    grid-column: 0.5;
  }
}

.titulo-formulario {
  text-align: center;
  font-size: 1.8rem;
  margin-top: 40px;
  margin-bottom: 20px;
  color: var(--color-principal);
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: var(--color-secundario);
}

.checkbox-grid {
  display: grid;
  grid-template-columns: 1 1fr;
  gap: 10px 20px;
}

.checkbox-grid label {
  font-size: 14px;
}

/* Checkbox de política */
.check-politica {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: #7f8c8d;
}

.check-politica a:hover {
  text-decoration: underline;
}

.check-politica {
  grid-column: span 2;
  font-size: 13px;
  margin-top: 10px;
  color: white;
}

.check-politica a {
  color: none;
}

/* Para móviles pequeños: hasta 576px */
@media (max-width: 576px) {
  .hero-contenido {
    flex-direction: column;
  }

  .hero-texto {
    order: 1;
    width: 100%;
  }

  .hero-imagen {
    order: 2;
    width: 100%;
    margin-top: 20px;
    text-align: center;
  }

  .hero-imagen img {
    width: 100%;
    height: auto;
    max-width: 100%;
  }
}


.check-politica {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: #fff;
  margin-top: 10px;
  max-width: 400px;       /* mismo ancho que el input de teléfono */
  margin-left: auto;
  margin-right: auto;     /* centrado horizontal */
}

.form-politica {
  grid-column: span 2;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin-top: 15px;
  font-size: 13px;
  color: #333;
  gap: 6px;
}


/* Columna de texto */
.hero-texto h1 {
  font-size: 2.5rem;
  color: var(--color-principal);
  margin-bottom: 15px;
  line-height: 1.2;
}

@media (max-width: 768px) {
  .hero-texto h1 {
    font-size: 1.8rem;
    padding: 0 20px;
    text-align: center;
  }

  .hero-texto p {
    font-size: 1rem;
    text-align: center;
  }
}

.hero-texto p {
  color: white;
  font-size: 1.1rem;
  margin-bottom: 25px;
}

.hero-texto h1 span {
  color: white; /* Color para el span */
  font-weight: 900; /* Negrita */
  font-size: 3rem; /* Tamaño de fuente */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Sombra */
}

/* CONTACTO */
.seccion-redes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
  padding: 60px 40px;
  background-color: #f9f9f9;
}

.seccion-redes img {
  max-width: 100%;
  height: auto;
}

.seccion-redes .texto-redes h2 {
  font-size: 36px;
  color: var(--color-secundario);
  margin-bottom: 20px;
}

.seccion-redes .texto-redes p {
  font-size: 20px;
  color: #333;
}

.seccion-redes .texto-redes p strong {
  color: var(--color-secundario);
}

/* Botón subir */
.boton-subir {
  position: fixed;
  bottom: 130px; /* igual que el de WhatsApp */
  left: 10px;    /* justo a la derecha del botón WhatsApp */
  background-color: #7b4cc1;
  color: white;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
  z-index: 999;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transition: opacity 0.3s ease;
}


.boton-subir:hover {
  background-color: #6a3cb0;
}

/* Responsive */
@media (max-width: 768px) {
  .seccion-redes {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .seccion-redes .texto-redes h2 {
    font-size: 28px;
  }

  .seccion-redes .texto-redes p {
    font-size: 18px;
  }

  .boton-subir {
    left: 90px; /* más hacia adentro en pantallas pequeñas */
  }
}

@media (max-width: 480px) {
  .boton-subir {
    bottom: 80px;
    left: 20px;
  }
}

.contacto {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 80px;
  background-color: #f9f9f9;
  text-align: center;
}

.redes-texto h2 {
  font-size: 2.5rem;
  color: var(--color-secundario);
  margin-bottom: 20px;
  text-align: center;
}

.redes-texto p {
  font-size: 2rem;
  color: #333;
  line-height: 1.6;
  
}

.enlace-accesible {
  color: #cc0066; /* Mejor contraste que naranja */
  font-weight: bold;
  text-decoration: underline; /* Subrayado para accesibilidad */
  transition: color 0.3s ease;
}

.enlace-accesible:hover {
  color: var(--color-hover); /* Rosa fresa u otro color destacado */
}

.formulario-boton-contacto {
  text-align: center;
}

.formulario-boton-contacto button {
  background-color: var(--color-principal);
  color: white;
  border: none;
  padding: 14px 36px;
  border-radius: 30px;
  font-size: 1.3rem;
  cursor: pointer;
  transition: background-color 0.3s;
}

.formulario-boton-contacto button:hover {
  background-color: var(--color-hover);
}

.formulario-boton-contacto button a {
  color: white;
  text-decoration: none;
  font-size: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
  .contacto {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .redes-texto h2,
  .redes-texto p {
    text-align: center;
  }
}


.formulario-contacto {
  background-color: var(--color-principal);
}

.titulo-formulario {
  color: white;
}

.formulario-contacto label,
.formulario-contacto input,
.formulario-contacto textarea {
  color: #333;
}

.formulario-contacto h3 {
  color: var(--color-secundario);
}

/* BOTÓN ENVIAR */
.formulario-boton-centro button {
  background-color: var(--color-tercero);
  padding: 10px 30px;
  font-size: 1rem;
  border-radius: 30px;
  color: white;
  border: none;
  transition: background-color 0.3s ease;
}

.formulario-boton-centro button:hover {
  background-color: var(--color-hover);
}

/* Validación */
.error-politica {
  color: #e74c3c !important;
  font-size: 0.8em;
  width: 100%;
  display: none;
}

input[type="checkbox"]:invalid ~ .error-politica {
  display: block;
}

/* Estilo para el checkbox no marcado cuando se intenta enviar */
.form-telefono:invalid input[type="checkbox"] {
  outline: 2px solid #e74c3c !important;
}

.hero .check-politica a {
  color: white;
  font-weight: 500;
  text-decoration: underline;
}

.hero .check-politica a:hover {
  color: var(--color-secundario); /* o el color hover que uses en botones */
}

/* Estilos responsive para móvil */
@media (max-width: 768px) {
  .hero-contenido {
    flex-direction: column;
  }

  .hero-texto {
    order: 1;
    width: 100%;
  }

  .hero-imagen {
    order: 2;
    width: 100%;
    margin-top: 20px;
    text-align: left;
  }

  .hero-imagen img {
    max-width: 100%;
    height: auto;
  }
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap !important;
}
