/* style.css */
:root {
  --primary: #e8312b; /* Rojo corporativo, color principal de la marca */
  --accent: #0a3a6a; /* Azul corporativo para contrastes si es necesario */
  --text: #333333;
  --text-light: #555555;
  --bg-light: #f8f9fa;
  --white: #ffffff;
  --shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
  --radius: 8px;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", system-ui, sans-serif;
}
body {
  background: var(--bg-light);
  color: var(--text);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main {
  flex: 1;
}
a {
  text-decoration: none;
  color: inherit;
}
ul {
  list-style: none;
}
h1,
h2,
h3 {
  line-height: 1.2;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  text-align: center;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(211, 47, 47, 0.3);
}
.btn:hover {
  background: #b71c1c;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(211, 47, 47, 0.4);
}

/* Header & Nav */
header {
  background: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 80px;
  padding: 10px 0;
}
.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
}
.img-logo {
  max-height: 80px; /* Aumentamos el tamaño del logo */
  width: auto;
  transition: transform 0.3s ease;
  margin-right: 15px; /* Espacio entre el logo y el texto */
}
.img-logo:hover {
  transform: scale(1.05); /* Efecto interactivo moderno */
}
.logo-text {
  /* Hereda el tamaño, color y peso de la clase .logo principal */
  white-space: nowrap;
}
.nav-links {
  display: flex;
  gap: 25px;
  align-items: center;
}
.nav-links li {
  position: relative;
}
.nav-links a {
  font-weight: 500;
  transition: var(--transition);
  color: var(--text);
  padding: 5px 0;
}
.nav-links a:hover {
  color: var(--primary);
}

/* Dropdown */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  min-width: 220px;
  flex-direction: column;
  padding: 10px 0;
  border: 1px solid #eee;
}
.dropdown:hover .dropdown-menu {
  display: flex;
}
.dropdown-menu a {
  padding: 10px 20px;
  font-size: 0.95rem;
}
.dropdown-menu a:hover {
  background: var(--bg-light);
  color: var(--primary);
}

.menu-toggle {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--primary);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, #8b1d19 100%);
  color: var(--white);
  padding: 120px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
/* Animaciones modernas con Keyframes */
.hero > div {
  animation: slideUp 1s ease-out forwards;
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  font-weight: 700;
}
.hero p {
  font-size: 1.25rem;
  margin-bottom: 35px;
  opacity: 0.9;
  max-width: 800px;
  margin-inline: auto;
}

/* Features */
.features {
  padding: 80px 0;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}
.card-link {
  text-decoration: none; /* Asegura que el hipervínculo no subraye los textos de las fichas */
  color: inherit;
  display: block;
  height: 100%; /* Para que todas las fichas tengan la misma altura */
}
.feature-card {
  background: var(--white);
  padding: 0 0 30px; /* Quitamos padding superior para que la imagen ocupe todo el ancho */
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Función de transición dinámica */
  border: 1px solid rgba(0, 0, 0, 0.05);
  overflow: hidden; /* Corta bordes de la imagen para que respete el radio */
  position: relative;
  height: 100%;
}
.feature-card:hover {
  transform: translateY(-8px) scale(1.01); /* Escala ligeramente en hover */
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}
/* Subrayado dinámico al hacer hover usando pseudoelementos ::after */
.feature-card::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 5px;
  background: var(--primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: center;
}
.feature-card:hover::after {
  transform: scaleX(1);
}
.feature-content {
  padding: 20px 25px; /* Contenedor interno de los textos */
}
.feature-card h3 {
  color: var(--primary);
  margin-bottom: 15px;
  font-size: 1.4rem;
}
.feature-card p {
  color: var(--text-light);
}

/* Footer */
footer {
  background: var(--primary);
  color: var(--white);
  padding: 50px 0 30px;
  text-align: center;
  margin-top: auto;
}
.footer-info h3 {
  margin-bottom: 15px;
  font-size: 1.5rem;
}
.footer-info p {
  margin-bottom: 8px;
  color: #d0dbe5;
}
.footer-info a {
  color: var(--white);
  text-decoration: underline;
}
.footer-bottom {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  color: #a1b8ce;
}

/* Contact Form */
.contact-section {
  padding: 80px 0;
}
.form-group {
  margin-bottom: 20px;
  text-align: left;
}
.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text);
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px;
  border: 1px solid #ddd;
  border-radius: var(--radius);
  font-size: 1rem;
  transition: var(--transition);
  background: #fafafa;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(10, 58, 106, 0.1);
}

/* Alerts */
.alert {
  padding: 15px;
  border-radius: var(--radius);
  margin-bottom: 25px;
  text-align: center;
  font-weight: 500;
}
.alert-success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}
.alert-error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}
/* Static Pages & Advanced Layouts */
.page-header {
  background: linear-gradient(135deg, var(--primary) 0%, #8b1d19 100%);
  color: var(--white);
  padding: 120px 20px 100px; /* Incrementado el padding top para que no se pegue al menú */
  text-align: center;
  margin-top: 0;
}
.page-title-alt {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.page-subtitle {
  font-size: 1.2rem;
  opacity: 0.9;
}
.content-wrapper {
  max-width: 900px;
  margin: -60px auto 40px; /* Offset to overlap the header */
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  overflow: hidden;
}
.info-block {
  padding: 60px 50px;
  border-bottom: 1px solid #f0f0f0;
}
.info-block:last-child {
  border-bottom: none;
}
.bg-gray {
  background-color: var(--bg-light);
}
.info-text h2 {
  color: var(--primary);
  font-size: 2rem;
  margin-bottom: 25px;
  position: relative;
  display: inline-block;
}
.info-text h2::after {
  content: '';
  position: absolute;
  width: 50%;
  height: 3px;
  background: var(--accent);
  bottom: -10px;
  left: 0;
}
.text-center h2::after {
  left: 50%;
  transform: translateX(-50%);
}
.info-text p {
  color: var(--text-light);
  line-height: 2; /* Mayor espacio entre las líneas del párrafo (interlineado) */
  font-size: 1.15rem; /* Letra un poco más grande */
  margin-bottom: 25px; /* Mayor espacio entre párrafos */
}
.text-center { text-align: center; }
.fw-bold { font-weight: 700; }
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.mb-40 { margin-bottom: 40px; }

/* Highlight Boxes & Split Features */
.highlight-box {
  background: rgba(10, 58, 106, 0.05);
  border-left: 4px solid var(--accent);
  padding: 20px 25px;
  border-radius: 0 8px 8px 0;
  margin: 30px 0;
}
.highlight-box p { margin: 0; }

.split-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin: 40px 0 20px;
}
.feature-box {
  background: var(--white);
  border: 1px solid #eaeaea;
  padding: 30px;
  border-radius: var(--radius);
  box-shadow: 0 4px 15px rgba(0,0,0,0.02);
  transition: transform 0.3s ease;
}
.feature-box:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
}
.feature-box h3 {
  color: var(--accent);
  margin-bottom: 15px;
  font-size: 1.3rem;
}

/* Pricing Grid (Instead of a standard table) */
.pricing-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}
.price-card {
  background: var(--white);
  border: 1px solid #eaeaea;
  border-radius: var(--radius);
  padding: 25px 30px;
  text-align: center;
  min-width: 150px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.price-card:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 20px rgba(0,0,0,0.08);
  border-color: var(--primary);
  z-index: 2;
}
.price-card .level {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 10px;
}
.price-card .price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
}
.price-card.popular {
  border-color: var(--primary);
  box-shadow: 0 8px 20px rgba(232, 49, 43, 0.15);
  transform: scale(1.02);
}
.popular-badge {
  position: absolute;
  top: 0; left: 0; right: 0;
  background: var(--primary);
  color: var(--white);
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: bold;
  padding: 4px 0;
}
.price-card.popular .level { margin-top: 15px; }


/* Aesthetic Comparative Tables */
.aesthetic-table table {
  width: 100%;
  border-collapse: collapse; /* Cambiamos a collapse para poder poner bordes internos vistosos */
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  margin-top: 30px;
  border: 1px solid #dcdcdc; /* Borde exterior visible */
}
.aesthetic-table th, .aesthetic-table td {
  padding: 20px;
  text-align: center;
  border: 1px solid #eaeaea; /* Bordes interiores divisorios tipo cuadrícula clásica pero moderna */
}
.aesthetic-table th {
  background: var(--accent);
  color: var(--white);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.95rem;
  border-bottom: 3px solid var(--primary); /* Línea gruesa debajo de la cabecera para resaltar */
}
.aesthetic-table th:not(:last-child) {
  border-right: 1px solid rgba(255,255,255,0.2);
}
.aesthetic-table tbody tr:hover td {
  background: #fdfdfd;
}
.aesthetic-table tbody tr:nth-child(even) {
  background-color: #fafafa; /* Efecto cebra para distinguir filas fácilmente */
}
.aesthetic-table tbody tr:last-child td {
  border-bottom: none;
}
/* Highlight LanguageCert Columns/Rows */
.lc-highlight {
  background: rgba(232, 49, 43, 0.04);
}
.aesthetic-table th.lc-highlight {
  background: var(--primary);
}
.aesthetic-table td.lc-highlight {
  color: var(--primary);
  font-weight: 700;
  font-size: 1.1rem;
}

/* Icons for Tables */
.check-icon {
  display: inline-block;
  color: var(--white);
  background: #2e7d32;
  width: 28px;
  height: 28px;
  line-height: 28px;
  border-radius: 50%;
  font-size: 1rem;
  box-shadow: 0 2px 5px rgba(46,125,50,0.3);
}
.cross-icon {
  display: inline-block;
  color: var(--white);
  background: #e0e0e0;
  width: 28px;
  height: 28px;
  line-height: 28px;
  border-radius: 50%;
  font-size: 1rem;
}
.mobile-label { display: none; }
.btn-large {
  font-size: 1.1rem;
  padding: 16px 35px;
}


/* Downloads Grid */
.downloads-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 20px;
}
.download-card {
  background: var(--bg-light);
  border: 1px solid #eaeaea;
  border-radius: var(--radius);
  padding: 35px 30px 30px;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.download-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
  border-color: var(--primary);
}
.level-badge {
  position: absolute;
  top: -15px;
  right: 20px;
  background: var(--primary);
  color: var(--white);
  font-weight: 700;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
  box-shadow: 0 4px 10px rgba(232, 49, 43, 0.3);
}
.download-card h3 {
  color: var(--accent);
  margin-bottom: 25px;
  padding-right: 40px;
  font-size: 1.4rem;
}
.download-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.dl-link {
  display: flex;
  align-items: center;
  background: var(--white);
  padding: 12px 15px;
  border-radius: 6px;
  color: var(--text);
  font-size: 0.9rem;
  border: 1px solid #e0e0e0;
  transition: all 0.2s ease;
}
.dl-link:hover {
  border-color: var(--accent);
  background: rgba(10, 58, 106, 0.02);
  color: var(--accent);
}
.dl-link .icon {
  margin-right: 12px;
  font-size: 1.2rem;
}
.video-link {
  border-color: #fce4e4;
  background: #fffafa;
}
.video-link:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(232, 49, 43, 0.03);
}


/* Horizontal Info Ribbons for Homepage */
.info-ribbon {
  background: var(--accent);
  color: var(--white);
  padding: 40px 20px;
  text-align: center;
  margin: 60px 0;
  box-shadow: inset 0 3px 15px rgba(0,0,0,0.15);
}
.info-ribbon.light {
  background: var(--primary);
}
.info-ribbon h3 {
  font-size: 1.8rem;
  margin-bottom: 10px;
}
.info-ribbon p {
  font-size: 1.2rem;
  opacity: 0.9;
  max-width: 800px;
  margin: 0 auto;
}


@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.2rem;
  }
  .hero p {
    font-size: 1.1rem;
  }
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: var(--white);
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
    padding: 20px 0;
    gap: 15px;
  }
  .nav-links.active {
    display: flex;
  }
  .menu-toggle {
    display: block;
  }
  .dropdown-menu {
    position: static;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    width: 100%;
    padding-left: 20px;
    border: none;
    align-items: center;
  }
  .dropdown:hover .dropdown-menu {
    display: flex;
  }
  .dropdown-menu a {
    text-align: center;
  }
  
  .pricing-grid { gap: 15px; }
  .price-card { flex: 1 1 calc(50% - 15px); }
  .split-features { grid-template-columns: 1fr; }
  .aesthetic-table td, .aesthetic-table th { padding: 12px; font-size: 0.85rem; }
  
  /* Feature table mobile adjustment */
  .mobile-label { display: inline-block; margin-left: 5px; font-size: 0.8rem; }
}
