@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary-color: #003087; /* Pantone 287 */
  --secondary-color: #00b2a9; /* Pantone 7466 */
  --accent-yellow: #FFED00; /* Process Yellow */
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --bg-dark: transparent;
  --bg-gradient: linear-gradient(135deg, #0055b8 0%, #003087 100%);
  --bg-pattern-gradient: linear-gradient(135deg, rgba(0, 85, 184, 0.95) 0%, rgba(0, 48, 135, 0.95) 100%);
  --gray-gradient: linear-gradient(135deg, #ffffff 0%, #737a80 100%);
  --bg-card: var(--bg-gradient);
  --border-color: rgba(255, 255, 255, 0.1);
  --glass-bg: var(--bg-gradient);
  --glass-border: rgba(255, 255, 255, 0.08);
  
  --font-main: 'Raleway', sans-serif;
  --font-title: 'Blair', 'BlairMdITC TT', sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: #001133;
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6,
.hero-title, .form-title, .section-title, .situacion-title, .solucion-title, .cta-blue-title, .thank-you-title {
  font-family: var(--font-title) !important;
}

/* Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.text-gradient {
  background: var(--gray-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-accent {
  color: var(--secondary-color);
}

.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
}

/* Header */
header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  justify-content: center; /* Center logos as no menu */
  align-items: center;
  gap: 2rem;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: white;
  text-transform: uppercase;
}
.logo-span { color: var(--secondary-color); }

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 4rem 0 4rem;
  background-image: linear-gradient(to right, rgba(0,17,51,0.95) 0%, rgba(0,17,51,0.5) 100%), linear-gradient(to bottom, rgba(0,17,51,0) 60%, rgba(0,17,51,1) 100%), url('../images/hero_bg_new.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.hero-shape-yellow {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-53%);
  width: 48vw;
  height: 600px;
  object-fit: fill;
  opacity: 0.9;
  z-index: 1;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 650px;
}

.hero-title {
  font-size: clamp(1.5rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
  color: white;
}

.hero-subtitle {
  font-size: 1rem;
  color: var(--text-main);
  margin-bottom: 2.5rem;
  font-weight: 300;
  max-width: 90%;
}

.hero-mockup-wrapper {
  display: flex;
  align-items: center;
  position: relative;
  margin-top: 1rem;
}

.hero-mockup-img {
  width: 220px;
  height: auto;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 15px 25px rgba(0,0,0,0.5));
}

.yellow-ribbon {
  background-color: var(--accent-yellow);
  color: var(--primary-color);
  padding: 0.5rem 2rem 0.5rem 1.5rem;
  border-radius: 0 4px 4px 0;
  margin-left: -1rem;
  position: relative;
  z-index: 1;
  clip-path: polygon(0% 0%, 92% 0%, 100% 50%, 92% 100%, 0% 100%);
  box-shadow: 5px 5px 15px rgba(0,0,0,0.2);
}

.ribbon-small {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.ribbon-large {
  font-size: 0.95rem;
  font-weight: 800;
  display: block;
  margin-top: 0.1rem;
}

.hero-form-wrapper {
  padding: 2rem;
  background-color: var(--primary-color);
  border-radius: 8px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  position: relative;
  z-index: 2;
  max-width: 400px;
  margin-left: auto;
}

.form-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-align: center;
}

.form-group {
  margin-bottom: 1rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: white;
  font-family: var(--font-main);
  transition: var(--transition);
  font-size: 0.95rem;
}

.form-control:focus {
  outline: none;
  border-color: var(--secondary-color);
  background: rgba(255, 255, 255, 0.1);
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.2em;
}

.form-select option {
  background: var(--bg-dark);
  color: white;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.checkbox-group input {
  margin-top: 0.25rem;
  accent-color: var(--secondary-color);
}

.btn {
  display: inline-block;
  width: 100%;
  padding: 1rem 2rem;
  background: var(--accent-yellow);
  color: var(--primary-color);
  font-weight: 800;
  text-align: center;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-main);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn:hover {
  background: #FFD100;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -10px rgba(255, 237, 0, 0.5);
  color: var(--primary-color);
}

/* Section Situacion */
.section {
  padding: 6rem 0;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.section-subtitle {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 4rem;
  color: var(--text-muted);
  font-size: 1.125rem;
}

.situacion-section {
  background: linear-gradient(to bottom, #ffffff 0%, #dcf0ff 100%);
  position: relative;
  z-index: 2;
  padding: 5rem 0 6rem 0;
  margin-bottom: -2px; /* Prevent sub-pixel white gaps */
}

.situacion-glow {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 50%);
  width: 100vw;
  min-width: 1200px;
  height: auto;
  z-index: 1;
  pointer-events: none;
}

.situacion-title {
  color: #003087;
  text-align: center;
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.situacion-subtitle {
  color: #666666;
  text-align: center;
  font-size: 1.2rem;
  margin-bottom: 3.5rem;
  font-weight: 500;
}

.situacion-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

@media (max-width: 992px) {
  .situacion-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}
@media (max-width: 576px) {
  .situacion-cards-grid {
    grid-template-columns: 1fr;
  }
}

.sit-card {
  background-color: #003087;
  border-radius: 0 40px 0 0;
  padding: 2.5rem 1.5rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  color: #ffffff;
  position: relative;
}

.sit-icon {
  width: 70px;
  height: auto;
  margin-bottom: 1.5rem;
}

.sit-text {
  font-size: 1rem;
  line-height: 1.4;
  text-align: left;
  margin-bottom: 2rem;
  flex-grow: 1;
  width: 100%;
}

.sit-checkbox-btn {
  width: 100%;
  background-color: #004fb6;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 4px;
  padding: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.sit-checkbox-btn:hover {
  background-color: #0055b8;
}

.sit-check {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: var(--accent-yellow);
}

.sit-checkbox-btn label {
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.situacion-footer-text {
  color: #003087;
  text-align: center;
  font-weight: 700;
  font-size: 1.15rem;
}

.infografia {
  position: relative;
  width: 100%;
  padding-bottom: 100%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59,130,246,0.1) 0%, rgba(2,6,23,0) 70%);
  display: flex;
  justify-content: center;
  align-items: center;
}

.infografia-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  background: var(--bg-card);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 2px solid var(--secondary-color);
  z-index: 10;
  box-shadow: 0 0 30px rgba(0, 178, 169, 0.2);
}

.infografia-item {
  position: absolute;
  background: var(--glass-bg);
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  border: 1px solid var(--glass-border);
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
}

.item-1 { top: 10%; left: 50%; transform: translateX(-50%); }
.item-2 { top: 35%; right: 5%; }
.item-3 { bottom: 20%; right: 15%; }
.item-4 { bottom: 20%; left: 15%; }
.item-5 { top: 35%; left: 5%; }

/* Solucion Section */
.solucion-section {
  position: relative;
  background-image: url('../images/bg_section3.jpg');
  background-size: cover;
  background-position: center;
  padding: 6rem 0 6rem 0;
}

.solucion-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 48, 135, 0.85); /* Dark blue overlay */
  z-index: 1;
}

.solucion-title {
  color: #ffffff;
  text-align: center;
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 3rem;
  line-height: 1.2;
}

.solucion-cards-row {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
}

.sol-card {
  background-color: #004fb6;
  border: 1px solid var(--accent-yellow);
  border-radius: 8px;
  padding: 1.5rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
  min-width: 250px;
  color: white;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.sol-icon {
  width: 38px;
  height: auto;
  flex-shrink: 0;
}

.sol-text {
  display: flex;
  flex-direction: column;
}

.sol-text h4 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.sol-text p {
  font-size: 0.95rem;
  font-weight: 400;
  margin: 0;
}

.mockup-container {
  display: flex;
  justify-content: center;
  margin-top: 4rem;
}

.mockup-img {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  display: none;
}

.mockup-img.active {
  display: block;
  animation: fadeUp 0.6s ease forwards;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Beneficios */
.beneficios-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.beneficio-card {
  padding: 2rem;
  text-align: center;
  transition: var(--transition);
}

.beneficio-card:hover {
  transform: translateY(-5px);
  background: rgba(255,255,255,0.03);
}

.beneficio-icon {
  width: 60px;
  height: 60px;
  background: rgba(0, 178, 169, 0.1);
  color: var(--secondary-color);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  margin: 0 auto 1.5rem;
}

/* Testimonios */
.testimonios {
  background: var(--bg-dark);
}

.testimonios-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.testimonio-card {
  padding: 2rem;
  border-left: 4px solid var(--secondary-color);
}

.testimonio-text {
  font-size: 1.125rem;
  font-style: italic;
  margin-bottom: 1.5rem;
  color: #cbd5e1;
}

.testimonio-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--bg-darker);
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--text-muted);
}

.author-info h4 {
  font-size: 1rem;
  font-weight: 600;
}

.author-info p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Respaldo */
.respaldo-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  margin-top: 3rem;
}

.respaldo-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: rgba(255,255,255,0.5);
  transition: var(--transition);
}

.respaldo-logo:hover {
  color: white;
}

/* FAQ */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--glass-border);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 1.5rem 0;
  background: none;
  border: none;
  color: white;
  font-size: 1.125rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-main);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: var(--transition);
  color: var(--text-muted);
}

.faq-answer p {
  padding-bottom: 1.5rem;
}

.faq-item.active .faq-answer {
  max-height: 200px;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

/* CTA Final (Section 4) */
.cta-final {
  background: white;
  text-align: center;
  padding: 6rem 0;
}

.cta-blue-title {
  color: #004fb6;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 2.5rem;
}

.btn-blue {
  background-color: #004fb6;
  color: white;
  border: none;
  font-weight: 700;
  border-radius: 8px;
  padding: 1rem 3rem;
  box-shadow: 0 4px 15px rgba(0, 79, 182, 0.4);
  font-size: 1.1rem;
  width: auto;
  display: inline-block;
  text-transform: none;
}

.btn-blue:hover {
  background-color: #003087;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 79, 182, 0.6);
}

.respaldo-logos-img {
  margin-top: 3rem;
}

.footer-logos {
  max-width: 100%;
  height: auto;
  max-height: 50px;
}

/* Footer (Section 5) */
.site-footer {
  background: #003087;
  padding: 4rem 0 2rem;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3rem;
}

.footer-links a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
}

.footer-links a:hover {
  opacity: 0.8;
}

.copyright {
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  margin-top: 2rem;
}

/* Responsive */
@media (min-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .situacion-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .beneficios-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .testimonios-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .beneficios-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Thank you page styles */
.thank-you-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
}

.thank-you-content {
  max-width: 600px;
  padding: 3rem;
}

.icon-success {
  font-size: 4rem;
  color: #10b981;
  margin-bottom: 2rem;
}

.thank-you-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.thank-you-text {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 3rem;
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--accent-yellow);
  color: var(--accent-yellow);
  margin-top: 1rem;
}

.btn-secondary:hover {
  background: rgba(255, 237, 0, 0.1);
  box-shadow: none;
  color: var(--accent-yellow);
}

@media (max-width: 767px) {
  .hero-shape-yellow {
    display: none;
  }
  .hero-form-wrapper {
    margin: 3rem auto 0;
    max-width: 100%;
  }
  .cta-blue-title {
    font-size: 1.5rem;
  }
  .footer-links {
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
  }
  .hero {
    padding: 6rem 0 4rem;
  }
  .solucion-title {
    font-size: 2rem;
  }
  .section-title {
    font-size: 2rem;
  }
  .header-inner {
    flex-direction: column;
    gap: 1rem;
  }
}

/* WhatsApp Floating Button */
@keyframes wapp-pulse {
  0%   { box-shadow: 0 6px 24px rgba(37, 211, 102, 0.6), 0 0 0 0 rgba(37, 211, 102, 0.4); }
  70%  { box-shadow: 0 6px 24px rgba(37, 211, 102, 0.6), 0 0 0 14px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 6px 24px rgba(37, 211, 102, 0.6), 0 0 0 0 rgba(37, 211, 102, 0); }
}

.whatsapp-fab {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 62px;
  height: 62px;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.55), 0 2px 8px rgba(0,0,0,0.25);
  animation: wapp-pulse 2s ease-out infinite;
  transition: transform 0.2s ease;
}
.whatsapp-fab:hover {
  transform: scale(1.12) translateY(-3px);
  animation: none;
  box-shadow: 0 14px 40px rgba(37, 211, 102, 0.75), 0 4px 12px rgba(0,0,0,0.3);
}
.whatsapp-fab svg {
  width: 62px;
  height: 62px;
}
