/* --- Professional CTA Section --- */
.cta-content {
    background: linear-gradient(135deg, #1a1d29 0%, #242938 100%);
    border-radius: 16px;
    box-shadow: 0 8px 48px rgba(0,0,0,0.25);
    padding: 64px 32px;
    margin: 64px auto;
    max-width: 1100px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* --- Diagnostic Block Styles --- */
.diagnostic-block {
    background: linear-gradient(135deg, #1a1d29 0%, #242938 100%);
    border-radius: 16px;
    box-shadow: 0 8px 48px rgba(0,0,0,0.25);
    padding: 64px 32px;
    margin: 0 auto 64px auto;
    max-width: 1100px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.diagnostic-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.cta-text {
    font-size: 1.2rem;
    color: #e0e0e0;
    margin-bottom: 32px;
    max-width: 600px;
    line-height: 1.5;
}

.diagnostic-subtitle {
    font-size: 1.2rem;
    color: #e0e0e0;
    margin-bottom: 32px;
    max-width: 600px;
    line-height: 1.5;
}

.cta-content .cta-btn {
    display: inline-block;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 16px 40px;
    border-radius: 8px;
    background: #4A90E2;
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 16px rgba(74, 144, 226, 0.25);
    transition: all 0.3s ease;
    text-decoration: none;
}

.diagnostic-btn {
    display: inline-block;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 16px 40px;
    border-radius: 8px;
    background: #4A90E2;
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 16px rgba(74, 144, 226, 0.25);
    transition: all 0.3s ease;
    text-decoration: none;
}

.cta-content .cta-btn:hover {
    background: #357ABD;
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(74, 144, 226, 0.35);
}

.diagnostic-btn:hover {
    background: #357ABD;
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(74, 144, 226, 0.35);
}
/* Footer de las cards de producto */
.product-footer {
    background: transparent;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: 32px 0 0 0;
    min-height: 120px;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding-left: 24px;
    padding-right: 24px;
}
/* Botones de productos alineados en fila */
.products-btn-row {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 32px;
}
/* Professional pricing styles consolidated */
.price-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #1a202c;
  text-align: center;
  letter-spacing: -0.02em;
}

.price-card .price {
  display: block;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 1.3rem;
  padding: 12px 24px;
  border-radius: 12px;
  margin: 0 auto 24px auto;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.25);
  text-align: center;
  text-decoration: none;
  max-width: 160px;
  transition: all 0.3s ease;
}

.price-card:nth-child(2) .price {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.25);
  font-size: 1.4rem;
}

.price-card:nth-child(3) .price {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.25);
}

.price-card .price:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
}

.component-card {
  text-align: center;
}

.component-card .price {
  text-align: center;
  text-decoration: none;
  background: #4A90E2;
}
/* --- Price Calculator Modern Styles --- */
.footer-data {
  background: #f8fafc;
  padding: 100px 0 60px 0;
}
.price-calculator .section-title {
  font-size: 2.2rem;
  color: #fff;
  font-weight: 800;
  margin-bottom: 38px;
  text-align: center;
}
.price-packages {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: center;
  margin-bottom: 48px;
}
.price-card {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
  min-width: 280px;
  max-width: 360px;
  flex: 1 1 320px;
  color: #1a202c;
  padding: 40px 32px 32px 32px;
  border: 2px solid rgba(226, 232, 240, 0.8);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.price-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.price-card:nth-child(2)::before {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

.price-card:nth-child(3)::before {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}
.price-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 25px 60px rgba(0,0,0,0.15);
  border-color: rgba(59, 130, 246, 0.4);
}

.price-card:hover::before {
  opacity: 1;
}

.price-card:nth-child(2) {
  transform: scale(1.05);
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: 0 15px 50px rgba(59, 130, 246, 0.2);
}

.price-card:nth-child(2)::after {
  content: 'MÁS POPULAR';
  position: absolute;
  top: -1px;
  right: 20px;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: white;
  padding: 8px 16px;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 0 0 12px 12px;
  letter-spacing: 0.5px;
}
.price-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: #fff;
}
.price-card .price {
  background: linear-gradient(90deg, #ff6a5b 0%, #ffb86c 100%);
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 4px 16px;
  border-radius: 18px;
  margin-left: 10px;
  box-shadow: 0 2px 8px rgba(255,107,107,0.10);
}
.price-card ul {
  list-style: none;
  margin-bottom: 18px;
  padding-left: 0;
}
.price-card ul li {
  color: #4a5568;
  font-size: 1.05rem;
  margin-bottom: 12px;
  position: relative;
  padding-left: 28px;
  transition: color 0.2s ease;
}

.price-card ul li:hover {
  color: #2d3748;
}
.price-card ul li:before {
  content: "✓";
  color: #10b981;
  font-weight: bold;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.1rem;
  background: rgba(16, 185, 129, 0.1);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.price-note {
  color: #6b7280;
  font-size: 0.95rem;
  margin-top: 16px;
  line-height: 1.5;
  font-style: italic;
}
.price-components {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  margin-bottom: 32px;
}
.component-card {
  background: #f8fafc;
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.12);
  min-width: 220px;
  max-width: 260px;
  flex: 1 1 220px;
  color: #fff;
  padding: 18px 16px;
  border: 2px solid #23243a;
  font-size: 1rem;
  position: relative;
}
.component-card .price {
  background: linear-gradient(90deg, #ff6a5b 0%, #ffb86c 100%);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  padding: 2px 12px;
  border-radius: 14px;
  margin-left: 8px;
  box-shadow: 0 2px 8px rgba(255,107,107,0.10);
}
.component-card .price-note {
  color: #ffb86b;
  font-size: 0.95rem;
  margin-top: 6px;
  display: block;
}
.price-warning {
  background: #f8fafc;
  color: #ff6a5b;
  border-radius: 14px;
  padding: 18px 20px;
  font-size: 1rem;
  margin: 0 auto;
  max-width: 700px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.10);
  text-align: left;
}
/* --- Logo Styles --- */
.logo {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 0;
}
.logo-main {
  color: #fff;
}
.logo-accent {
  color: #ff6a5b;
}
/* --- CTA Section Modern Styles --- */
.cta-section {
  background: linear-gradient(90deg, #23242a 0%, #18191f 100%);
  padding: 60px 0;
  margin: 0;
}
.cta-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}
.cta-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 18px;
}
.cta-text {
  font-size: 1.2rem;
  color: #d1d1d1;
  margin-bottom: 32px;
}
.cta-btn {
  background: linear-gradient(90deg, #ff6a5b 0%, #ffb86c 100%);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  padding: 16px 38px;
  border: none;
  border-radius: 32px;
  box-shadow: 0 4px 24px rgba(255, 107, 91, 0.15);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  margin-top: 10px;
}
.cta-btn:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 8px 32px rgba(255, 184, 108, 0.18);
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: #ffffff;
    color: #2c3e50;
    line-height: 1.6;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0px 15px 0px 15px;
}

/* Header Styles */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
}

.logo {
    font-size: 2.2rem;
    font-weight: 800;
    color: #1a202c;
    letter-spacing: -0.02em;
}

.logo span {
    color: #3b82f6;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 32px;
}

nav ul li a {
    color: #4a5568;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

nav ul li a:hover {
    color: #3b82f6;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    color: #1a202c;
    padding: 180px 0 140px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23000" opacity="0.02"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') repeat;
    pointer-events: none;
}

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.badge {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.btn-secondary {
    background: transparent;
    color: #4a5568;
    border: 2px solid #e2e8f0;
    box-shadow: none;
}

.btn-secondary:hover {
    background: #f7fafc;
    color: #2d3748;
    border-color: #cbd5e0;
    transform: translateY(-2px);
}

.social-proof {
    margin-top: 48px;
    opacity: 0.8;
}

.social-proof p {
    font-size: 1rem;
    color: #4a5568;
    margin: 0;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: #1a202c;
    background: linear-gradient(135deg, #1a202c 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.25rem;
    max-width: 720px;
    margin: 0 auto 48px;
    color: #4a5568;
    line-height: 1.7;
    font-weight: 400;
    opacity: 0.9;
}

.btn {
    display: inline-block;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: #ffffff;
    padding: 18px 40px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    border: none;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.4);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

/* Products Section */
.products {
    padding: 120px 0 80px;
    background: #ffffff;
    text-align: center;
    position: relative;
}

.section-title {
    font-size: 2.6rem;
    margin-bottom: 64px;
    color: #1a202c;
    font-weight: 700;
    text-align: center;
    letter-spacing: -0.02em;
    line-height: 1.2;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border-radius: 2px;
}

.products-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px;
    margin: 0 auto;
    max-width: 1200px;
}

.product-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    min-width: 290px;
    max-width: 360px;
    flex: 1 1 320px;
    color: #1a202c;
    padding: 0 0 40px 0;
    position: relative;
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: all 0.4s ease;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 60px rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.3);
}

.product-card:hover::before {
    opacity: 1;
}

.product-header {
    padding: 36px 24px 18px 24px;
}

.product-title {
    font-size: 1.7rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: #1a202c;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.product-price {
    font-size: 2rem;
    font-weight: 700;
    color: #ffb86b;
    margin-bottom: 18px;
}

.product-features {
    padding: 0 24px 50px 24px;
    text-align: left;
}

.product-features ul {
    list-style: none;
    margin-bottom: 24px;
}

.product-features ul li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    color: #4a5568;
    font-size: 1.05rem;
    transition: color 0.2s ease;
}

.product-features ul li:hover {
    color: #2d3748;
}

.product-features ul li:before {
    content: "✓";
    color: #10b981;
    font-weight: bold;
    margin-right: 12px;
    font-size: 1.1rem;
}

.btn primary-btn cta-btn {
    display: block;
    margin: 0 auto;
    background: #4A90E2;
    color: #fff;
    padding: 12px 0;
    width: 80%;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    border: none;
    box-shadow: 0 2px 8px rgba(255,107,107,0.15);
    transition: background 0.3s, color 0.3s, box-shadow 0.3s;
    text-align: center !important;
    /* alinear el texto al centro */    
}

.btn primary-btn cta-btn:hover {
    background: linear-gradient(90deg, #ffb86b 0%, #ff6b6b 100%);
    color: #fff;
    box-shadow: 0 4px 16px rgba(255,184,107,0.15);
}

.custom-product {
    border: 2px solid #ffb86b;
}

.custom-product .product-title {
    color: #ffb86b;
}

.custom-product .btn primary-btn cta-btn {
    background: linear-gradient(90deg, #ffb86b 0%, #ff6b6b 100%);
}

.custom-product .btn primary-btn cta-btn:hover {
    background: #4A90E2;
}

/* Contact Section Modern */
footer {
    background: #f8fafc;
    color: #1a202c;
    text-align: center;
    padding: 80px 0 60px 0;
    position: relative;
    border-top: 1px solid #e2e8f0;
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
    margin-top: 30px;
}

.contact-info, .contact-form {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px 32px;
    min-width: 300px;
    max-width: 420px;
    flex: 1 1 340px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.contact-info h3, .contact-form h3 {
    color: #1a202c;
    margin-bottom: 24px;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

/* Contact Info: mejorar visibilidad de enlaces */
.contact-info p {
  color: #4a5568;
  margin-bottom: 16px;
  font-size: 1.05rem;
  line-height: 1.6;
}
.contact-info a {
  color: #3b82f6;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s;
  border-bottom: 1px solid transparent;
}
.contact-info a:hover {
  color: #1d4ed8;
  border-bottom-color: #1d4ed8;
}

.map-container {
    margin-top: 18px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}

.contact-form .form-group {
    margin-bottom: 18px;
}

/* Inputs con borde visible y efecto de foco */
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 16px;
  border-radius: 12px;
  font-size: 1rem;
  background-color: #f8fafc;
  color: #1a202c;
  border: 2px solid #e2e8f0;
  transition: all 0.3s ease;
  outline: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border: 2px solid #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  background-color: #ffffff;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #9ca3af;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form .btn {
    width: 100%;
    margin-top: 10px;
}

/* WhatsApp Icon Modern */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: transform 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

.whatsapp-icon {
    width: 32px;
    height: 32px;
    background: url('https://upload.wikimedia.org/wikipedia/commons/6/6b/WhatsApp.svg') no-repeat center center/cover;
    display: block;
}

/* --- Hamburger Menu --- */
.hamburger {
    display: none; /* Oculto en desktop por defecto */
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    position: relative;
    width: 40px;
    height: 40px;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #1a202c;
    margin: 5px auto; /* Centrar las barras */
    transition: all 0.3s ease-in-out;
    border-radius: 2px;
    position: relative;
}
/* Responsive Modern */
@media (max-width: 900px) {
    .products-grid {
        flex-direction: column;
        align-items: center;
        gap: 32px;       
    }
    
    .contact-container {
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }

    .product-card {
        max-width: calc(100vw - 40px);
        min-width: 320px;
        margin: 0 20px 24px 20px;
    }
    
    .contact-info, .contact-form {
        max-width: 90vw;
        min-width: 300px;
    }

    /* Estilos del menú para móvil */
    .hamburger {
        display: block; /* Mostrar el botón hamburger */
    }

    nav {
        /* El contenedor nav ahora es el panel */
        position: fixed;
        top: 0;
        right: -100%; /* Empieza fuera de la pantalla */
        width: 70%;
        max-width: 320px;
        height: 100vh;
        background: #f8fafc;
        transition: right 0.4s ease-in-out;
        box-shadow: -5px 0 15px rgba(0,0,0,0.2);
        z-index: 1000; /* Detrás del hamburger pero sobre el contenido */
    }

    .nav-links {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        height: 100%;
        padding-top: 60px;
    }

    .nav-links li {
        margin: 25px 0;
    }

    /* Estado abierto */
    body.nav-open nav {
        right: 0; /* Deslizar el menú a la vista */
    }

    /* Animación del hamburger a 'X' */
    body.nav-open .hamburger span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    body.nav-open .hamburger span:nth-child(2) {
        
}

}

@media (max-width: 600px) {
    .hero h1 {
        font-size: 2.2rem;
        line-height: 1.3;
    }

    .section-title {
        font-size: 1.8rem;
        text-align: center;
        margin-bottom: 40px;
    }
    
    .product-title {
        font-size: 1.5rem;
        line-height: 1.3;
        margin-bottom: 20px;
        text-align: center;
        padding: 0 10px;
    }
    
    .product-card {
        min-width: 300px;
        max-width: calc(100vw - 32px);
        margin: 0 0px 32px 0px;
        min-height: 800px;
    }
    
    .product-header {
        padding: 32px 24px 20px 24px;
    }
    
    .product-features {
        padding: 0 24px 60px 24px;
    }
    
    .product-features p {
        font-size: 1.05rem;
        line-height: 1.6;
        margin-bottom: 20px;
        text-align: left;
    }
    
    .product-features ul {
        margin-bottom: 30px;
    }
    
    .product-features ul li {
        font-size: 1rem;
        padding: 12px 0;
        line-height: 1.5;
        padding-left: 32px;
    }
    
    .trust-badges {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }
    
    .badge {
        font-size: 0.85rem;
        padding: 6px 12px;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 280px;
        padding: 16px 24px;
        font-size: 1rem;
    }
 
}

/* Spinner Moderno */
#loading-spinner {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(30, 41, 59, 0.55);
    z-index: 9999;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(2px);
}

.spinner {
    border: 8px solid #e0e7ef;
    border-top: 8px solid #4A90E2;
    border-right: 8px solid #10b981;
    border-bottom: 8px solid #ffb86b;
    border-left: 8px solid #8b5cf6;
    border-radius: 50%;
    width: 70px;
    height: 70px;
    animation: spin 1.2s cubic-bezier(.68,-0.55,.27,1.55) infinite;
    box-shadow: 0 4px 32px rgba(74,144,226,0.15);
}

.spinner-text {
    margin-top: 24px;
    color: #fff;
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.18);
    font-family: 'Segoe UI', 'Inter', sans-serif;
}

@keyframes spin {
    0% { transform: rotate(0deg);}
    100% { transform: rotate(360deg);}
}

nav ul li a {
    text-decoration: none;
}

/* --- Modal Styles --- */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
}

.modal-content {
    background: #ffffff;
    margin: 5% auto;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

.diagnostic-modal {
    max-width: 700px;
    max-height: 80vh;
    overflow-y: auto;
    margin: 2% auto;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    right: 20px;
    top: 15px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover,
.close:focus {
    color: #1a202c;
}

.modal-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 16px;
    text-align: center;
    letter-spacing: -0.02em;
}

.modal-description {
    font-size: 1.1rem;
    color: #4a5568;
    margin-bottom: 32px;
    text-align: center;
    line-height: 1.6;
}

.modal .form-group {
    margin-bottom: 24px;
}

.modal input[type="email"] {
    width: 100%;
    padding: 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    background-color: #f8fafc;
    color: #1a202c;
    transition: all 0.3s ease;
    outline: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.modal input[type="email"]:focus {
    border: 2px solid #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background-color: #ffffff;
}

.modal input[type="email"]::placeholder {
    color: #9ca3af;
}

.modal-btn {
    width: 100%;
    margin-top: 16px;
    padding: 18px;
    font-size: 1.1rem;
    font-weight: 600;
}

/* --- Estilos del formulario de diagnóstico --- */
.question-group {
    margin-bottom: 32px;
}

.question-label {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 16px;
    line-height: 1.5;
}

.question-subtitle {
    font-weight: 400;
    color: #6b7280;
    font-size: 0.95rem;
}

.radio-group, .checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radio-option, .checkbox-option {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: #f8fafc;
    position: relative;
}

.radio-option:hover, .checkbox-option:hover {
    border-color: #3b82f6;
    background: #f0f7ff;
}

.radio-option input[type="radio"], 
.checkbox-option input[type="checkbox"] {
    opacity: 0;
    position: absolute;
    width: 0;
    height: 0;
}

.radio-custom, .checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #cbd5e0;
    margin-right: 12px;
    margin-top: 2px;
    flex-shrink: 0;
    transition: all 0.3s ease;
    position: relative;
}

.radio-custom {
    border-radius: 50%;
}

.checkbox-custom {
    border-radius: 4px;
}

.radio-option input[type="radio"]:checked + .radio-custom {
    border-color: #3b82f6;
    background: #3b82f6;
}

.radio-option input[type="radio"]:checked + .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: white;
}

.checkbox-option input[type="checkbox"]:checked + .checkbox-custom {
    border-color: #3b82f6;
    background: #3b82f6;
}

.checkbox-option input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.radio-option input[type="radio"]:checked,
.checkbox-option input[type="checkbox"]:checked {
    & + .radio-custom,
    & + .checkbox-custom {
        & ~ * {
            color: #1a202c;
        }
    }
}

.radio-option input[type="radio"]:checked ~ span:not(.radio-custom),
.checkbox-option input[type="checkbox"]:checked ~ span:not(.checkbox-custom) {
    color: #1a202c;
    font-weight: 500;
}

.email-input {
    width: 100%;
    padding: 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    background-color: #f8fafc;
    color: #1a202c;
    transition: all 0.3s ease;
    outline: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-top: 8px;
}

.email-input:focus {
    border: 2px solid #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background-color: #ffffff;
}

.email-input::placeholder {
    color: #9ca3af;
}

/* Responsive para el modal */
@media (max-width: 600px) {
    .modal-content {
        margin: 10% auto;
        padding: 30px 24px;
        width: 95%;
    }
    
    .diagnostic-modal {
        margin: 5% auto;
        padding: 24px 20px;
        max-height: 90vh;
    }
    
    .modal-title {
        font-size: 1.5rem;
    }
    
    .modal-description {
        font-size: 1rem;
    }

    .question-label {
        font-size: 1rem;
    }

    .radio-option, .checkbox-option {
        padding: 10px 12px;
        font-size: 0.95rem;
    }

    .question-group {
        margin-bottom: 24px;
    }
}

