/* Variables globales */

:root {
  --color-bg: #ffffff; /* Fondo general claro */
  --color-text-light: #000000; /* Letras claras o texto principal */
  --color-text-dark: #000000;
  --color-text: #000000; /* Texto general */
  --color-primary: #007BFF; /* Color principal (botones, links) */
  --color-primary-hover: #339CFF;
  --color-dark-bg: #ffffff; /* Fondos oscuros (inputs, etc.) */
  --color-panel: #f5f5f5; /* Paneles claros */
  --color-panel-alt: #eaeaea; /* Panel alternativo claro */
  --color-border: #cccccc; /* Bordes */
  --color-muted: #666666; /* Texto o elementos menos relevantes */
  --color-light: #ffffff; /* Color claro usado en tablas y otros */
  --color-success: #27AE60; /* Éxito */
  --color-error: #E74C3C; /* Error */
  --color-table-even: #f9f9f9; /* Filas pares de tabla */
  --color-table-odd: #e6f2ff; /* Filas impares tabla */
  --color-list-marker: #007BFF; /* Color de puntos o números en listas */
  --color-list-marker-bg: transparent; /* Fondo de los marcadores si aplica */
}


/* Reset y estilos globales */
* {
  max-width: 100vw;
  box-sizing: border-box;
}

html {
  font-size: 16px; /* Base para escritorio */
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 16px;
  margin: 2px 10px;
  padding: 0;
  overflow-x: hidden;
  height: 100%;
}

/* Enlaces y botones CTA */
a {
  color: var(--color-primary);
  text-align: center;
  font-size: 1.1rem;
  margin: auto;
  width: auto; /* changed from 50% to avoid mobile issues */
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--color-primary-hover);
}

.cta {
  display: inline-block;
  text-align: center;
  margin: 0 auto;
  background-color: var(--color-primary);
  color: var(--color-text-light);
  padding: 12px 24px;
  font-size: 1rem;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.cta:hover {
  background-color: var(--color-primary-hover);
  color:white;
}

/* Container y layout */
.container {
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
}

.main-content {
  margin-top: 80px;
  padding: 20px;
}

/* Header */
.header {
  position: relative;
  left: -20px;
  width: calc(100% + 50px);
  height: 300px;
  padding: 0;
  text-align: center;
  background-image: url(/img/rode.jpeg);
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: var(--color-text);
}

.header h1 {
  margin: 0;
  font-size: 2.5rem;
  color:#ffffff;
}

.header p {
  margin: 0;
  font-size: 1.25rem;
  font-style: italic;
}

.header img {
  cursor: pointer;
  width: 100px;
  height: auto;
  margin-bottom: 10px;
  margin-top: 45px;
}

.header button:hover {
  background-color: var(--color-panel);
  color: var(--color-text);
}

/* Barra de navegación fija (imported/adjusted from styles copy.css) */
.topnav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #f5f5f5; /* Always light gray, never black */
  z-index: 1000;
  display: flex;
  justify-content: space-between; /* Changed: space between for better layout */
  align-items: center;
  padding: 10px 20px;
  flex-wrap: wrap; /* Allow wrapping for mobile menu */
}

/* contenedor interno opcional dentro del topnav */
.topnav-container {
  width: 100%;
  max-width: 1200px; /* igual que .container */
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px; /* margen interno */
  position: relative; /* Para posicionar elementos absolutos */
}

/* Hide hamburger by default on larger screens; shown via media query on small screens */
.menu-toggle { 
  display: none; 
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 12px;
  z-index: 1001;
  order: -1; /* Show first on mobile */
  min-width: 44px; /* Minimum tap target size */
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

.menu-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  background-color: var(--color-text);
  margin: 4px 0;
  transition: 0.3s;
}

/* Centrar los enlaces del menú */
.menu-links {
  display: flex;
  gap: 15px;
  align-items: center;
  justify-content: center; /* Center the links */
  flex: 1; /* Take available space to center properly */
  margin: 0; /* Remove auto margin */
}


.topnav button {
  color: var(--color-text);
  padding: 10px 15px;
  font-size: 15px;
  transition: background-color 0.3s, color 0.3s;
}

/* Menú y dropdown - removed duplicate .menu-links definition */
.menu-links a {
  color: var(--color-text);
  padding: 10px 15px;
  font-size: 15px;
  transition: background-color 0.3s, color 0.3s;
  text-decoration: none;
}

.menu-links a:hover {
  background-color: var(--color-light);
  color: var(--color-panel);
}

.topnav-right {
  display: flex;
  align-items: center;
  margin-left: auto; /* Push to the right */
}

.dropdown {
  position: relative;
}

.dropdown .dropbtn {
  background-color: #f5f5f5; /* Always light gray */
  border: none;
  color: var(--color-text);
  cursor: pointer;
  padding: 10px 15px;
}

.dropdown button:hover {
  background-color: var(--color-light);
  color: var(--color-panel);
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  left: auto;
  background-color: #f5f5f5; /* Always light gray */
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  min-width: 200px;
  z-index: 10;
  font-size: 15px;
}

.dropdown-content a {
  display: block;
  background-color: #f5f5f5; /* Always light gray */
  color: var(--color-text);
  padding: 12px 16px;
  text-decoration: none;
}

.dropdown-content a:hover {
  background-color: var(--color-light);
  color: var(--color-panel);
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* NAVBAR FIXES: override global 'a { width:50% }' and prevent username truncation */
.topnav a,
.topnav .dropbtn,
.topnav .menu-links a,
.topnav .dropdown-content a {
  width: auto !important;
  max-width: 320px;
  font-size: 15px; /* Desktop base size */
}

/* Allow dropdown content to grow/wrap so long usernames are visible instead of cut */
.topnav .dropdown-content {
  min-width: 220px;
  max-width: calc(100vw - 24px);
  right: 8px;
  left: auto;
  white-space: normal;
  word-break: break-word;
}

/* Ensure the right side has breathing room and dropdown does not go off-screen */
.topnav-right { padding-right: 10px; }

/* Formularios generales */
form {
  max-width: 600px;
  margin: 40px auto;
  padding: 30px;
  background-color: lightgray;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(92, 89, 89, 0.1);
  color: var(--color-text);
  font-family: 'Segoe UI', Roboto, sans-serif;
}

form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-text);
}

form input[type="text"],
form input[type="email"],
form input[type="password"],
form input {
  width: 100%;
  padding: 12px;
  margin-bottom: 20px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background-color: var(--color-dark-bg);
  color: var(--color-text);
  font-size: 1rem;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}

form input:focus {
  border-color: var(--color-primary);
  outline: none;
}

form .input-group {
  margin-bottom: 20px;
}

form .input-group label {
  margin-bottom: 5px;
  color: var(--color-text);
}

form button {
  width: 100%;
  padding: 12px;
  background-color: var(--color-primary);
  color: var(--color-text-light);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

form button:hover {
  background-color: var(--color-primary-hover);
  transform: scale(1.03);
}

/* Texto auxiliar en formulario */
form p {
  text-align: center;
  color: var(--color-muted);
  font-size: 0.95rem;
}

/* Tabla general */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 30px 0;
  font-size: 16px;
  text-align: left;
  background-color: var(--color-bg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  overflow: hidden;
}

table th {
  background-color: var(--color-border);
  color: var(--color-text);
  font-weight: 600;
  padding: 12px;
  border-bottom: 1px solid var(--color-panel);
}

table td {
  border-bottom: 1px solid var(--color-panel);
  padding: 10px;
  color: var(--color-text);
  background-color: var(--color-light);
}

table tbody tr:nth-child(odd) {
  background-color: var(--color-table-odd);
}

table tbody tr:nth-child(even) {
  background-color: var(--color-table-even);
}

table input[type="text"],
table input[type="number"],
table select {
  width: 100%;
  padding: 8px;
  font-size: 14px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  background-color: var(--color-bg);
  color: var(--color-text);
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}

table input:focus,
table select:focus {
  border-color: var(--color-primary);
  outline: none;
}

/* Total mensual */
#total-mes {
  text-align: center;
  margin-top: 30px;
  font-size: 18px;
  color: var(--color-text);
}

#total-mes h2 {
  font-size: 22px;
  color: var(--color-primary);
  margin-bottom: 10px;
}

#total-mes p {
  font-size: 26px;
  font-weight: bold;
  color: var(--color-primary);
}

/* Layout de columnas (actualizado con Flexbox) */
.row {
  display: flex;
  justify-content: space-between;
  align-items: stretch; /* Misma altura */
  gap: 20px;
  margin: 40px 0;
}

.column {
  flex: 1;
  padding: 20px;
  text-align: center;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.column h3 {
  margin: 10px 0;
  font-size: 1rem;
}

.column input[type="checkbox"],
.column input[type="radio"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.left {
  background-color: var(--color-panel-alt);
}

.middle {
  background-color: var(--color-panel);
}

.right {
  background-color: var(--color-panel-alt);
}

/* Centrados */
.center {
  text-align: center;
}

/* Footer */
.footer {
  background-color: var(--color-border);
  color: var(--color-text);
  padding: 20px 0;
  text-align: center;
  font-size: 0.9rem;
  margin: 0 -10px;
}

.footer hr {
  border: 1px solid var(--color-panel);
  width: 80%;
  margin: 10px auto;
}

.footer-container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer-row {
  display: flex;
  justify-content: space-around;
  width: 100%;
}

.footer-column {
  flex: 1;
  min-width: 200px;
  text-align: center;
}

.footer-column h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--color-text);
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column ul li {
  margin: 5px 0;
  font-size: 0.9rem;
}

.footer-column ul li a {
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-column ul li a:hover {
  color: var(--color-primary);
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.social-icons a {
  color: var(--color-text);
  font-size: 1.5rem;
  transition: color 0.3s;
}

.social-icons a:hover {
  color: var(--color-primary);
}

.footer-bottom {
  text-align: center;
  font-size: 0.8rem;
  color: var(--color-muted);
  border-top: 1px solid var(--color-panel);
  padding-top: 10px;
  width: 100%;
}

.enlaces a {
  font-size: 0.9rem;
  color: var(--color-primary);
}

/* Botón submit personalizado */
.button-submit {
  background-color: var(--color-panel);
  border-radius: 4px;
  border: none;
  color: var(--color-text);
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  padding: 9px 20px 8px;
  text-align: center;
  width: 100%;
  transition: opacity 0.2s ease;
}

.button-submit:hover,
.button-submit:focus {
  opacity: 0.75;
}

/* Popup (dialog) */
dialog {
  border: none;
  border-radius: 10px;
  padding: 20px;
  width: 300px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  text-align: center;
  background-color: var(--color-panel);
  color: var(--color-text);
}

dialog::backdrop {
  background-color: rgba(0, 0, 0, 0.777);
}

/* Cookie dialog: mobile-first responsive styling */
#cookie-popup {
  width: 100%;
  max-width: 520px; /* desktop cap */
  border: none;
  border-radius: 12px;
  padding: 18px;
  background: var(--color-panel);
  color: var(--color-text);
  box-shadow: 0 12px 30px rgba(0,0,0,0.45);
}

#cookie-popup::backdrop {
  background: rgba(0,0,0,0.6);
}

#cookie-popup .cookie-content { gap: 10px; display: flex; flex-direction: column; }

#cookie-popup p { margin: 0 0 8px 0; font-size: 1rem; line-height: 1.4; }

#cookie-popup .cookie-actions { display:flex; gap:12px; justify-content:flex-end; margin-top:8px; }

#cookie-popup .cookie-actions button {
  padding: 12px 16px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-weight: 700;
}

#cookie-popup .btn-accept { background: var(--color-primary); color: var(--color-light); }
#cookie-popup .btn-exit { background: transparent; color: var(--color-text); border: 1px solid rgba(0,0,0,0.08); }

/* Mobile adjustments: full-width, stacked buttons for easy tapping */
@media (max-width: 480px) {
  #cookie-popup { width: calc(100% - 24px); padding: 16px; margin: 0 auto; border-radius: 12px; }
  #cookie-popup .cookie-actions { flex-direction: column-reverse; gap: 10px; }
  #cookie-popup .cookie-actions button { width: 100%; padding: 14px; font-size: 1.05rem; }
  #cookie-popup p { font-size: 1.05rem; }
}

/* Small tablet: slightly larger dialog */
@media (min-width: 481px) and (max-width: 768px) {
  #cookie-popup { max-width: 640px; padding: 18px; }
  #cookie-popup p { font-size: 1.05rem; }
}

/* Accessibility helpers inside dialog */
#cookie-popup [role="document"] { outline: none; }

/* ============================================
   RESPONSIVE BREAKPOINTS (Mobile-First Tweaks)
   ============================================ */

/* Tablet landscape and smaller (1024px and below) */
@media (max-width: 1024px) {
  html { font-size: 17px; }
  body { font-size: 17px; }
  
  .header h1 { font-size: 2.2rem; }
  .cta { font-size: 1.1rem; padding: 12px 24px; }
  
  .topnav .dropbtn, 
  .topnav button, 
  .menu-links a { font-size: 16px; padding: 11px 15px; }
  
  .button-submit, 
  form button { font-size: 1rem; padding: 13px; }
}

/* Tablet portrait and smaller (768px and below) */
@media (max-width: 768px) {
  html { font-size: 18px; }
  body { font-size: 18px; }
  
  .header h1 { font-size: 2rem; }
  .header p { font-size: 1.1rem; }
  
  .cta { font-size: 1.15rem; padding: 14px 26px; }
  
  .button-submit { font-size: 1.05rem; padding: 14px 20px; border-radius: 8px; }
  
  table { font-size: 15px; }
  
  .action-btn { padding: 12px 20px; font-size: 1.05rem; border-radius: 9px; }
  
  /* Mobile navbar: hamburger menu */
  .topnav {
    justify-content: space-between;
    padding: 10px 15px;
  }
  
  .menu-toggle {
    display: flex !important; /* Force show hamburger */
    flex-direction: column;
    cursor: pointer;
    order: -1; /* Show first */
  }

  .menu-toggle span {
    width: 28px;
    height: 3px;
    background-color: var(--color-text);
    transition: 0.3s;
    display: block;
  }
  
  .menu-links {
    display: none; /* Hidden by default on mobile */
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #f5f5f5;
    padding: 10px 0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    z-index: 999;
  }

  .menu-links.active {
    display: flex !important; /* Show when active */
  }
  
  .menu-links a {
    padding: 12px 20px;
    width: 100%;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
  }
  
  .menu-links a:last-child {
    border-bottom: none;
  }

  .dropdown-content {
    position: static;
    box-shadow: none;
  }

  .footer {
    padding: 15px 0;
    font-size: 0.8rem;
  }

  .footer-container {
    gap: 15px;
  }

  .footer-row {
    flex-direction: column;
    align-items: center;
  }

  .footer-column {
    flex: none;
    min-width: auto;
    margin-bottom: 15px;
  }

  .footer-column h3 {
    font-size: 1rem;
  }

  .footer-column ul li {
    font-size: 0.8rem;
  }

  .social-icons a {
    font-size: 1.2rem;
    margin: 0 5px;
  }

  button.button-submit {
    width: 100%;
  }
  
  /* Contacto: mantener horizontal pero más compacto */
  .row {
    display: flex;
    flex-direction: row;
    gap: 10px;
    margin: 20px 0;
  }
  
  .column {
    width: 100%;
    padding: 12px 8px;
  }
  
  .column h3 {
    font-size: 0.85rem;
    margin: 5px 0;
  }
  
  .column p {
    margin: 5px 0;
  }
}

/* Mobile phones (480px and below) */
@media (max-width: 480px) {
  html { font-size: 18px; } /* Keep readable but not too large */
  body { 
    font-size: 18px; 
    margin: 6px 8px; 
  }
  
  .header {
    left: -10px;
  }

  .header h1 {
    font-size: 1.8rem;
  }

  .header p {
    font-size: 1rem;
  }

  .header img {
    width: 80px;
  }

  a {
    font-size: 1rem;
    max-width: 90%;
  }
  
  .cta { 
    font-size: 1.15rem; 
    padding: 14px 24px; 
    border-radius: 8px; 
  }
  
  .menu-toggle span { width: 32px; height: 4px; }
  
  .topnav .menu-links { display: none; }
  .topnav { padding-right: 8px; }
  .topnav .dropbtn { padding: 10px 12px; font-size: 16px; }
  .topnav button, 
  .menu-links a { font-size: 16px; padding: 10px 12px; }
  
  .button-submit { 
    font-size: 1.05rem; 
    padding: 14px; 
    border-radius: 10px; 
  }
  
  form { padding: 20px; }
  form input, 
  form textarea { padding: 13px; font-size: 1rem; }
  
  #cookie-popup .cookie-actions button { 
    font-size: 1rem; 
    padding: 14px; 
  }
  
  table td, 
  table th { padding: 10px; }
  table { font-size: 14px; }
  
  .action-btn { 
    padding: 13px 18px; 
    font-size: 1.05rem; 
  }

  /* Contacto: ultra compacto en pantallas muy pequeñas */
  .row {
    display: flex;
    flex-direction: row;
    gap: 6px;
    margin: 15px 0;
  }
  
  .column {
    width: 100%;
    padding: 8px 4px;
  }
  
  .column h3 {
    font-size: 0.75rem;
    margin: 3px 0;
  }
  
  .column p {
    margin: 3px 0;
  }
  
  .column input[type="checkbox"],
  .column input[type="radio"] {
    width: 16px;
    height: 16px;
  }

  .footer {
    padding: 10px 0;
    font-size: 0.8rem;
  }

  .footer hr {
    width: 90%;
  }

  .social-icons a {
    font-size: 1.1rem;
  }

  .footer-column ul li {
    font-size: 0.8rem;
  }

  .enlaces a {
    font-size: 1rem;
  }

  .footer-bottom {
    font-size: 0.85rem;
  }
}

ul {
  list-style-position: inside;
  text-align: center;
  padding-left: 0;
  margin: 10px 0;
}

li {
  margin: 5px 0;
}

/* Action button reusable class */
.action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 700;
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 1rem;
  cursor: pointer;
  background-color: var(--color-primary);
  color: var(--color-light);
  border: none;
}

/* Small improvement: ensure buttons in tables and action areas look consistent */
.table-action, .btn, .btn-accept, .btn-exit, .button-submit { 
  display: inline-flex; 
  align-items: center; 
  justify-content: center; 
}

/* Values Section - Responsive Cards */
.values-section {
  margin: 40px 0;
  padding: 20px 0;
}

.values-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.value-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(0,0,0,0.02));
  padding: 28px 20px;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  text-align: center;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.value-card h2 {
  font-size: 1.3rem;
  color: var(--color-primary);
  margin: 0;
  font-weight: 700;
}

.value-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-text);
  margin: 0;
}

.value-card .cta {
  margin-top: 12px;
  display: inline-block;
  align-self: center;
  padding: 10px 20px;
  background-color: var(--color-primary);
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.value-card .cta:hover {
  background-color: var(--color-primary-hover);
  transform: scale(1.05);
}

/* Tablet (768px) */
@media (max-width: 768px) {
  .values-container {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 0 12px;
  }
  
  .value-card {
    padding: 20px 16px;
  }
  
  .value-card h2 {
    font-size: 1.15rem;
  }
  
  .value-card p {
    font-size: 0.9rem;
  }
}

/* Mobile (480px) */
@media (max-width: 480px) {
  .values-section {
    margin: 30px 0;
  }
  
  .values-container {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 0 8px;
  }
  
  .value-card {
    padding: 16px 12px;
    border-radius: 8px;
  }
  
  .value-card h2 {
    font-size: 1rem;
    margin: 0 0 8px 0;
  }
  
  .value-card p {
    font-size: 0.85rem;
    line-height: 1.5;
  }
  
  .value-card .cta {
    padding: 8px 16px;
    font-size: 0.8rem;
  }
}

/* Services Section - Responsive Cards */
.services-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 30px auto 0;
  padding: 0 16px;
}

.service-card {
  background: linear-gradient(135deg, rgba(0,123,255,0.05), rgba(0,123,255,0.02));
  padding: 24px 18px;
  border-radius: 10px;
  border: 1px solid rgba(0,123,255,0.1);
  text-align: center;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0,123,255,0.12);
  border-color: rgba(0,123,255,0.3);
}

.service-card h2 {
  font-size: 1.2rem;
  color: var(--color-primary);
  margin: 0;
  font-weight: 700;
}

.service-card p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--color-text);
  margin: 0;
}

/* Tablet (768px) */
@media (max-width: 768px) {
  .services-container {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 0 12px;
    margin: 25px auto 0;
  }
  
  .service-card {
    padding: 18px 14px;
  }
  
  .service-card h2 {
    font-size: 1.05rem;
  }
  
  .service-card p {
    font-size: 0.85rem;
  }
}

/* Mobile (480px) */
@media (max-width: 480px) {
  .services-container {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 0 8px;
    margin: 20px auto 0;
  }
  
  .service-card {
    padding: 14px 10px;
    border-radius: 8px;
  }
  
  .service-card h2 {
    font-size: 0.95rem;
    margin: 0 0 6px 0;
  }
  
  .service-card p {
    font-size: 0.8rem;
    line-height: 1.5;
  }
}

/* Centrar imagen de perfil */
section img {
  display: block;
  margin: 20px auto;
  max-width: 400px;
  width: 100%;
  height: auto;
  border-radius: 10px;
}

@media (max-width: 768px) {
  section img {
    max-width: 300px;
    margin: 15px auto;
  }
}

@media (max-width: 480px) {
  section img {
    max-width: 250px;
    margin: 10px auto;
  }
}

/* ========== PÁGINA SOBRE NOSOTROS ========== */

/* Sección de introducción principal */
.container > section:first-of-type {
  background: linear-gradient(135deg, rgba(0,123,255,0.08) 0%, rgba(0,123,255,0.03) 100%);
  padding: 40px 20px;
  border-radius: 12px;
  margin-bottom: 30px;
}

.container > section:first-of-type h1 {
  font-size: 2.5rem;
  color: var(--color-primary);
  margin: 0 0 15px 0;
  font-weight: 800;
}

.container > section:first-of-type p {
  font-size: 1.1rem;
  color: var(--color-text);
  margin: 0;
  line-height: 1.6;
}

/* Sección de misión mejorada */
.about-list {
  background: linear-gradient(135deg, rgba(39,174,96,0.08) 0%, rgba(39,174,96,0.03) 100%);
  padding: 30px 25px;
  border-left: 4px solid var(--color-success);
  border-radius: 8px;
  margin: 30px 0;
}

.about-list h2 {
  color: var(--color-success);
  font-size: 1.8rem;
  margin: 0 0 15px 0;
}

.about-list p {
  font-size: 1rem;
  line-height: 1.6;
  margin: 0 0 15px 0;
}

.about-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.about-list li {
  padding: 10px 0;
  font-size: 0.95rem;
  color: var(--color-text);
  line-height: 1.5;
}

.about-list li:before {
  content: "✓ ";
  color: var(--color-success);
  font-weight: bold;
  font-size: 1rem;
  margin-right: 8px;
}

/* Sección de equipo y visión en dos columnas */
.about-column {
  display: inline-block;
  width: calc(50% - 15px);
  background: linear-gradient(135deg, rgba(0,123,255,0.05) 0%, rgba(0,123,255,0.02) 100%);
  padding: 25px;
  border-radius: 10px;
  border: 1px solid rgba(0,123,255,0.1);
  margin: 10px;
  box-shadow: 0 2px 8px rgba(0,123,255,0.08);
  transition: all 0.3s ease;
  vertical-align: top;
}

.about-column:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0,123,255,0.15);
}

.about-column h2 {
  color: var(--color-primary);
  font-size: 1.4rem;
  margin: 0 0 12px 0;
}

.about-column p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-text);
  margin: 0;
}

/* Sección de historia mejorada */
.about-history {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  background: linear-gradient(135deg, rgba(100,200,255,0.08) 0%, rgba(100,200,255,0.03) 100%);
  padding: 40px 30px;
  border-radius: 12px;
  margin: 30px 0;
}

.about-history-text h2 {
  color: var(--color-primary);
  font-size: 1.8rem;
  margin: 0 0 20px 0;
  text-align: left;
}

.about-history-text p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--color-text);
  margin: 0 0 15px 0;
}

.about-history-text ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.about-history-text li {
  padding: 8px 0;
  font-size: 0.9rem;
  line-height: 1.6;
}

.about-history-text li:before {
  content: "→ ";
  color: var(--color-primary);
  font-weight: bold;
  margin-right: 6px;
}

.about-history img {
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,123,255,0.2);
  transition: all 0.3s ease;
}

.about-history img:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 32px rgba(0,123,255,0.3);
}

/* CTA final mejorado */
.container > section:last-of-type {
  color: black;
  padding: 50px 30px;
  border-radius: 12px;
  margin-top: 40px;
}

.container > section:last-of-type h2 {
  color: black;
  font-size: 2rem;
  margin: 0 0 15px 0;
}

.container > section:last-of-type p {
  color: black;
  font-size: 1.05rem;
  margin: 0 0 25px 0;
}

.container > section:last-of-type .cta {
  background: white;
  color: var(--color-primary);
  padding: 12px 30px;
  border-radius: 8px;
  font-weight: 700;
  transition: all 0.3s ease;
}

.container > section:last-of-type .cta:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Responsive para about */
@media (max-width: 768px) {
  .about-column {
    width: calc(100% - 20px);
    margin: 10px;
  }
  
  .about-history {
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 30px 20px;
  }
  
  .about-history-text h2 {
    text-align: center;
  }
  
  .container > section:first-of-type h1 {
    font-size: 2rem;
  }
  
  .about-list h2 {
    font-size: 1.4rem;
  }
  
  .container > section:last-of-type h2 {
    font-size: 1.6rem;
  }
}

@media (max-width: 480px) {
  .about-list {
    padding: 20px 15px;
    margin: 20px 0;
  }
  
  .about-list h2 {
    font-size: 1.2rem;
  }
  
  .about-list li {
    padding: 8px 0 8px 25px;
    font-size: 0.9rem;
  }
  
  .about-history {
    padding: 20px 15px;
    margin: 20px 0;
  }
  
  .about-history-text h2 {
    font-size: 1.3rem;
  }
  
  .about-history-text p {
    font-size: 0.85rem;
  }
  
  .container > section:first-of-type h1 {
    font-size: 1.6rem;
  }
  
  .container > section:first-of-type p {
    font-size: 0.95rem;
  }
  
  .container > section:last-of-type {
    padding: 30px 15px;
  }
  
  .container > section:last-of-type h2 {
    font-size: 1.3rem;
  }
}

/* Iconos inline SVG - heredan color del texto */
.icon-inline {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: -0.125em;
  margin-right: 0.25em;
  fill: currentColor;
  stroke: currentColor;
  color: inherit;
}