/* ============================================================
   VARIABLES (DESIGN TOKENS)
============================================================ */
:root {
  --color-azul-primario: #1E3A8A;
  --color-azul-oscuro: #004080;
  --color-azul-claro: #0073e6;
  --color-azul-suave: #e0f2fe;

  --color-naranja: #f97316;
  --color-naranja-oscuro: #cf4f0a;

  --color-fondo-claro: #F9FAFB;
  --color-amarillo-suave: #fff7ed;

  --radius-sm: 6px;
  --radius-base: 10px;
  --radius-lg: 15px;
  --radius-xl: 24px;

  --shadow-base: 0 4px 10px rgba(0,0,0,0.1);
  --shadow-hover: 0 6px 18px rgba(0,0,0,0.18);

  --font-base: "Poppins", Arial, sans-serif;
}

/* ============================================================
   RESET / BASE
============================================================ */
body {
  background-color: var(--color-azul-primario);
  font-family: var(--font-base);
  margin: 0;
  padding: 0;
  text-align: center;
}

.main-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: left;
}

/* ============================================================
   HEADER
============================================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--color-azul-primario);
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 150px;
  padding: 50px;
}

.header-logo-menu img {
  width: 150px;
  height: 150px;
}

.slogan {
  font-family: Candara, sans-serif;
  font-size: 30px;
  font-weight: bold;
  font-style: italic;
  text-align: center;
}

/* ============================================================
   DERECHA
============================================================ */

.derecha {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;   /* centra horizontalmente el contenido */
  justify-content: center;
  padding-right: 0;      /* quitamos empuje hacia la derecha */
}

/* ============================================================
   MENÚ
============================================================ */
.menu {
  background-color: var(--color-naranja);
  padding: 5px 20px;
  display: inline-block;
  border-radius: 999px;
  position: relative;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
  flex-direction: column;
  gap: 5px;
  width: 40px;
  height: 40px;
  justify-content: center;
  align-items: center;
}

.hamburger-line {
  width: 30px;
  height: 3px;
  background-color: white;
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* Animación cuando está abierto */
.menu-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

.menubar {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  gap: 30px;
}

.menubar a {
  text-decoration: none;
  color: white;
  font-size: 24px;
  font-weight: 600;
  padding: 12px 18px;
  display: block;
  transition: 0.3s;
}

.menubar a:hover {
  color: var(--color-azul-claro);
  background-color: white;
  border-radius: var(--radius-base);
}

/* ============================================================
   HERO
============================================================ */
.promo-hero-animado {
  text-align: center;
  font-size: 30px;
  font-weight: 700;
  color: var(--color-naranja);
  margin-bottom: 30px;
  position: relative;
}

.promo-hero-animado::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -5px;
  width: 80%;
  height: 3px;
  background: var(--color-naranja);
  animation: pulse-subrayado 1.5s infinite;
  border-radius: 2px;
}

@keyframes pulse-subrayado {
  0% { opacity: 0.4; }
  50% { opacity: 1; }
  100% { opacity: 0.4; }
}

/* ============================================================
   BENEFICIOS GENERALES
============================================================ */
.general-benefits {
  display: flex;
  justify-content: center;
  gap: 32px;
  background-color: var(--color-fondo-claro);
  padding: 40px 20px;
  border-radius: var(--radius-lg);
}

.specific-benefits {
  text-align: center;
  width: 250px;
}

.specific-benefits i {
  font-size: 36px;
  color: var(--color-azul-oscuro);
}

.specific-benefits p {
  font-size: 18px;
  color: var(--color-azul-primario);
}

/* ============================================================
   SECCIONES DESCRIPTIVAS (TÍTULOS)
============================================================ */
.section-descriptiva {
  background-color: var(--color-azul-primario);
  border-radius: var(--radius-lg);
  margin: 30px auto;
  text-align: center;
  height: 55px;
}

.section-descriptiva h2 {
  color: white;
  font-size: 2.5rem;
}

/* ============================================================
   BENEFICIOS DE SECCIÓN
============================================================ */
.hosting-benefits {
  background-color: var(--color-fondo-claro);
  padding: 40px 20px;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.hosting-benefits p {
  color: var(--color-azul-oscuro);
  text-align: left;
  padding-left: 28px;
  max-width: 600px;
  width: 100%;
  font-size: 18px;
  position: relative;
  line-height: 1;
  margin-top: 4px;
  margin-bottom: 4px;

}

.hosting-benefits p:not(.hosting-cierre)::before {
  content: "\f058";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: var(--color-azul-oscuro);
  position: absolute;
  left: 0;
  top: 3px;
  font-size: 14px;
}

.promo-hosting-detalle {
  background: var(--color-amarillo-suave);
  border-left: 5px solid var(--color-naranja);
  padding: 15px 20px;
  border-radius: var(--radius-base);
  color: #7c2d12;
  font-size: 17px;
  width: 60%;
}

/* ============================================================
   TARJETAS DE PLANES
============================================================ */
.hosting-planes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin: 40px 0;
}

.plan-card {
  background: white;
  border: 2px solid var(--color-azul-claro);
  border-radius: var(--radius-lg);
  width: 300px;
  box-shadow: var(--shadow-base);
  display: flex;
  flex-direction: column;
  height: 520px;
}

/* Tarjeta de dominios con altura automática */
.plan-card-dominio {
  height: auto;
  min-height: auto;
}

.plan-header {
  background-color: var(--color-azul-claro);
  color: white;
  font-weight: bold;
  font-size: 20px;
  padding: 15px;
  text-align: center;
}

.plan-precios {
  padding: 15px;
  text-align: center;
  color: var(--color-azul-oscuro);
}

.plan-precios strong {
  font-size: 24px;
  display: block;
}

/* Precios de dominios - formato específico */
.plan-precios-dominio {
  padding: 20px 15px;
}

.plan-precios-dominio strong {
  font-size: 18px;
  color: var(--color-azul-oscuro);
  display: block;
  margin: 8px 0;
  font-weight: 600;
}

.plan-precios-dominio .b-currency {
  display: block;
  margin-top: 15px;
  font-size: 14px;
  color: #6b7280;
  font-weight: 500;
}

.servicios,
.plan-caracteristicas {
  list-style: none;
  padding: 15px 25px;
  margin: 0;
  color: var(--color-azul-oscuro);
  font-size: 16px;
}

.plan-footer {
  margin-top: auto;
  padding: 15px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.promo-plan-mini {
  background: var(--color-amarillo-suave);
  color: #7c2d12;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  text-align: center;
}

/* ============================================================
   BOTONES
============================================================ */
.btn-comprar-plan,
.modal-boton,
.form-container button {
  background: var(--color-naranja);
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: var(--radius-base);
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.25s ease;
  width: 100%;
}

.btn-comprar-plan:hover,
.modal-boton:hover,
.form-container button:hover {
  background: var(--color-naranja-oscuro);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

/* ============================================================
   FORMULARIO
============================================================ */
.form-container {
  background-color: #f4f4f4;
  padding: 30px;
  margin: 20px auto;
  max-width: 400px;
  border-radius: var(--radius-base);
  box-shadow: var(--shadow-base);
  text-align: left;
}

.form-container input,
.form-container select,
.form-container textarea {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: var(--radius-base);
}

/* ============================================================
   MODALES
============================================================ */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.50);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal-contenedor {
  background: white;
  width: 90%;
  max-width: 700px;
  padding: 30px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-base);
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}

.modal-scroll {
  padding: 30px;
  max-height: 70vh;
  overflow-y: auto;
}

.modal-cerrar {
  position: absolute;
  top: 18px;
  right: 22px;
  font-size: 22px;
  cursor: pointer;
  color: #555;
}

.modal-titulo {
  text-align: center;
  color: var(--color-azul-oscuro);
  font-size: 26px;
}

.modal-plan {
  text-align: center;
  background: #F3F4F6;
  padding: 10px;
  border-radius: var(--radius-base);
  color: var(--color-azul-oscuro);
  margin-bottom: 25px;
  font-weight: 600;
}

.modal-subtitulo {
  color: var(--color-azul-oscuro);
  font-size: 18px;
  margin-top: 20px;
}

.modal-linea {
  height: 1px;
  background: #E5E7EB;
  margin-bottom: 15px;
}

.fila {
  display: flex;
  gap: 12px;
}

/* ============================================================
   MENSAJES FLOTANTES
============================================================ */
.mensaje-exito,
.mensaje-error {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 16px 22px;
  border-radius: var(--radius-base);
  color: white;
  font-size: 16px;
  opacity: 0;
  transform: translateY(-10px);
  transition: 0.3s ease;
  z-index: 99999;
}

.mensaje-exito { background-color: #0a7a0a; }
.mensaje-error { background-color: #b00000; }

.mensaje-exito.visible,
.mensaje-error.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   BOTÓN VOLVER ARRIBA
============================================================ */
.back-to-top {
  position: fixed;
  bottom: 200px;
  right: 250px;
  background-color: var(--color-azul-claro);
  color: white;
  padding: 12px 15px;
  border-radius: 50%;
  font-size: 20px;
  box-shadow: var(--shadow-base);
  cursor: pointer;
}

.back-to-top:hover {
  background-color: var(--color-azul-oscuro);
}

/* ============================================================
   ANIMACIONES
============================================================ */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}/* ============================================================
   ESTILOS ADICIONALES Y COMPLEMENTARIOS
   Agregar al final de style.css
============================================================ */

/* Estilos para elementos faltantes */
.promo-modal-info {
  background: #f0f9ff;
  border-left: 4px solid var(--color-azul-claro);
  padding: 15px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  color: #1e3a8a;
  font-size: 15px;
  line-height: 1.6;
}

.promo-footer-legal {
  background: #f9fafb;
  padding: 20px;
  border-radius: var(--radius-base);
  margin-top: 30px;
  color: #4b5563;
  font-size: 14px;
  line-height: 1.8;
}

.domain-search {
  text-align: center;
  padding: 40px 20px;
  background: white;
  border-radius: var(--radius-lg);
  margin: 30px 0;
  box-shadow: var(--shadow-base);
}

.domain-search h2 {
  color: var(--color-azul-primario);
  font-size: 28px;
  margin-bottom: 10px;
}

.domain-search p {
  color: #6b7280;
  margin-bottom: 25px;
}

.search-box {
  display: flex;
  justify-content: center;
  gap: 10px;
  max-width: 600px;
  margin: 0 auto;
}

.search-box input {
  flex: 1;
  padding: 14px 20px;
  border: 2px solid #e5e7eb;
  border-radius: var(--radius-base);
  font-size: 16px;
  transition: 0.3s;
}

.search-box input:focus {
  outline: none;
  border-color: var(--color-azul-claro);
  box-shadow: 0 0 0 3px rgba(0, 115, 230, 0.1);
}

.search-box button {
  padding: 14px 30px;
  background: var(--color-naranja);
  color: white;
  border: none;
  border-radius: var(--radius-base);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

.search-box button:hover {
  background: var(--color-naranja-oscuro);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

/* Estilos para resultados de búsqueda */
.available {
  color: #059669;
  font-weight: 600;
}

.unavailable {
  color: #dc2626;
  font-weight: 600;
}

/* Input de formulario mejorado */
input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  box-sizing: border-box;
  font-family: var(--font-base);
}

/* Modal form específico */
.modal-form input,
.modal-form select {
  width: 100%;
  padding: 12px;
  margin-bottom: 12px;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-sm);
  font-size: 15px;
  transition: 0.3s;
}

.modal-form input:focus,
.modal-form select:focus {
  outline: none;
  border-color: var(--color-azul-claro);
  box-shadow: 0 0 0 3px rgba(0, 115, 230, 0.1);
}

/* Responsive mejoras */
/* ============================================================
   RESPONSIVE DESIGN
============================================================ */

/* Tablet y Mobile (< 992px) */
@media (max-width: 991px) {
  /* Header más compacto */
  .header {
    height: auto;
    padding: 20px 15px;
    flex-direction: column;
    gap: 15px;
  }
  
  .header-logo-menu img {
    width: 100px;
    height: 100px;
  }
  
  .slogan {
    font-size: 18px;
    text-align: center;
  }
  
  /* MENÚ HAMBURGUESA ACTIVADO */
  .menu {
    background-color: transparent;
    padding: 0;
    width: 100%;
  }
  
  .menu-toggle {
    display: flex;
    background-color: var(--color-naranja);
    border-radius: var(--radius-base);
    margin: 0 auto;
  }
  
  .menubar {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: var(--color-azul-primario);
    padding: 80px 20px 20px;
    gap: 10px;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
    transition: right 0.3s ease;
    z-index: 1000;
  }
  
  .menubar.active {
    display: flex;
    right: 0;
  }
  
  .menubar a {
    font-size: 20px;
    padding: 15px 20px;
    text-align: left;
    border-radius: var(--radius-base);
    background-color: rgba(255, 255, 255, 0.1);
  }
  
  .menubar a:hover {
    background-color: var(--color-naranja);
    color: white;
  }
}

/* Tablet (768px - 991px) */
@media (max-width: 768px) {
  /* Container con padding lateral */
  .main-container {
    padding: 0 15px;
  }
  
  /* Hero más pequeño */
  .promo-hero-animado {
    font-size: 20px;
    padding: 15px;
  }
  
  /* Beneficios en columna */
  .general-benefits {
    flex-direction: column;
    gap: 20px;
    padding: 30px 15px;
  }
  
  .specific-benefits {
    width: 100%;
  }
  
  /* Títulos de sección */
  .section-descriptiva h2 {
    font-size: 1.8rem;
  }
  
  /* Beneficios de hosting */
  .hosting-benefits {
    padding: 30px 15px;
  }
  
  .hosting-benefits p {
    font-size: 16px;
  }
  
  /* Planes en columna */
  .hosting-planes {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  
  .plan-card {
    width: 100%;
    max-width: 400px;
  }
  
  /* Búsqueda de dominios */
  .domain-search {
    padding: 30px 15px;
  }
  
  .search-box {
    flex-direction: column;
    width: 100%;
  }
  
  .search-box input,
  .search-box button {
    width: 100%;
  }
  
  /* Formularios */
  .fila {
    flex-direction: column;
  }
  
  .form-container {
    padding: 20px 15px;
    margin: 20px 15px;
  }
  
  /* Modales */
  .modal-contenedor {
    width: 95%;
    margin: 10px;
    padding: 20px;
  }
  
  .modal-scroll {
    padding: 15px;
    max-height: 80vh;
  }
  
  .modal-titulo {
    font-size: 22px;
  }
  
  /* Botón volver arriba */
  .back-to-top {
    bottom: 20px;
    right: 20px;
  }
}

/* Mobile (< 576px) */
@media (max-width: 575px) {
  /* Header ultra compacto */
  .header {
    padding: 15px 10px;
  }
  
  .header-logo-menu img {
    width: 80px;
    height: 80px;
  }
  
  .slogan {
    font-size: 16px;
    line-height: 1.3;
  }
  
  /* Menú más compacto */
  .menubar a {
    font-size: 16px;
    padding: 8px 12px;
  }
  
  /* Hero */
  .promo-hero-animado {
    font-size: 18px;
    padding: 12px;
  }
  
  /* Títulos más pequeños */
  .section-descriptiva {
    height: auto;
    padding: 10px;
  }
  
  .section-descriptiva h2 {
    font-size: 1.5rem;
  }
  
  /* Beneficios */
  .specific-benefits i {
    font-size: 28px;
  }
  
  .specific-benefits p {
    font-size: 16px;
  }
  
  /* Tarjetas de planes */
  .plan-card {
    max-width: 100%;
    height: auto;
  }
  
  .plan-header {
    font-size: 18px;
    padding: 12px;
  }
  
  .plan-precios strong {
    font-size: 20px;
  }
  
  .servicios,
  .plan-caracteristicas {
    font-size: 15px;
    padding: 10px 20px;
  }
  
  /* Promo boxes */
  .promo-hosting-detalle,
  .promo-plan-mini {
    font-size: 14px;
    padding: 10px 15px;
  }
  
  /* Búsqueda dominios */
  .domain-search h2 {
    font-size: 24px;
  }
  
  .domain-search p {
    font-size: 15px;
  }
  
  /* Formularios */
  .form-container {
    max-width: 100%;
    padding: 15px;
  }
  
  .form-container h2 {
    font-size: 20px;
  }
  
  .form-container input,
  .form-container select,
  .form-container textarea {
    font-size: 16px; /* Evita zoom en iOS */
  }
  
  /* Modales mobile-first */
  .modal-contenedor {
    width: 100%;
    max-width: 100%;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
    margin: 0;
  }
  
  .modal-scroll {
    max-height: calc(100vh - 60px);
    padding: 10px;
  }
  
  .modal-titulo {
    font-size: 20px;
  }
  
  .modal-form input,
  .modal-form select {
    font-size: 16px; /* Evita zoom en iOS */
  }
  
  /* Botones más grandes en mobile */
  .btn-comprar-plan,
  .modal-boton {
    font-size: 16px;
    padding: 14px 20px;
  }
  
  /* Mensajes flotantes */
  .mensaje-exito,
  .mensaje-error {
    right: 10px;
    left: 10px;
    top: 10px;
    font-size: 14px;
  }
}

/* Mobile muy pequeño (< 375px) */
@media (max-width: 374px) {
  .header-logo-menu img {
    width: 60px;
    height: 60px;
  }
  
  .slogan {
    font-size: 14px;
  }
  
  .menubar a {
    font-size: 14px;
  }
  
  .section-descriptiva h2 {
    font-size: 1.3rem;
  }
}

/* Accesibilidad */
button:focus,
a:focus {
  outline: 2px solid var(--color-azul-claro);
  outline-offset: 2px;
}

/* Loading state para botones */
button.loading {
  position: relative;
  color: transparent;
}

button.loading::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  top: 50%;
  left: 50%;
  margin-left: -8px;
  margin-top: -8px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
