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



body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #ffffff;
}
body {
  margin: 0;
  padding-top: 90px;   /* misma altura que el header */
}
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo img {
  height: 60px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}

/* Tu barra */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 90px;        /* ajusta a lo que mida tu barra */
  background-color: #f7f7f7;
  z-index: 1000;
}
/* Modern CSS Variables */
:root {
  --primary-color: #005A8D;
  --primary-dark:  #003F63;
  --accent-color:  #44C2F0;
  --secondary-color: #EAF6FC;
  --text-primary:   #2D3A4A;
  --text-secondary: #52738A;
  --text-light:     #8CA6B8;
  --border-color: #C5DEEB;
  --shadow-sm: 0 1px 2px rgba(0, 90, 141, .1);
  --shadow-md: 0 4px 12px rgba(0, 90, 141, .18);
  --shadow-lg: 0 8px 24px rgba(0, 90, 141, .28);
  --border-radius: 8px;
  --border-radius-lg: 14px;
  --transition: all 0.28s ease;
}

/* Utility Classes */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--border-radius);
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1rem;
  line-height: 1.5;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
  background-color: var(--primary-color);
  color: white;
}

.section {
  padding: 5rem 0;
}

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

.mb-4 {
  margin-bottom: 1rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  transition: var(--transition);
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.nav-brand h2 {
  color: var(--primary-color);
  font-weight: 700;
  font-size: 1.5rem;
}

.nav-menu {
  display: flex;
  gap: 2rem;
}

.nav-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-link:hover {
  color: var(--primary-color);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: var(--primary-color);
  font-weight: 600;
}

/* Loading */
.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  gap: 1rem;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--border-color);
  border-top: 4px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

.hero-description {
  font-size: 1.125rem;
  margin-bottom: 2.5rem;
  opacity: 0.8;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Features Section */
.features-section {
  background: var(--secondary-color);
  padding: 6rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.feature-card {
  background: white;
  padding: 2.5rem 2rem;
  border-radius: var(--border-radius-lg);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.feature-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.feature-description {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Stats Section */
.stats-section {
  background: var(--primary-color);
  color: white;
  padding: 4rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-item {
  padding: 1rem;
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1.125rem;
  opacity: 0.9;
}

/* CTA Section */
.cta-section {
  background: white;
  padding: 6rem 0;
  text-align: center;
}

.cta-content h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.cta-content p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

/* Footer */
.footer {
  background: var(--text-primary);
  color: white;
  padding: 3rem 0 1rem;
  margin-top: auto;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
  margin-bottom: 1rem;
  color: white;
}

.footer-section p {
  color: #9ca3af;
  line-height: 1.6;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul li a {
  color: #9ca3af;
  text-decoration: none;
  transition: var(--transition);
}

.footer-section ul li a:hover {
  color: var(--primary-color);
}

.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 1rem;
  text-align: center;
  color: #9ca3af;
}

/* Form Styles */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  font-size: 1rem;
  transition: var(--transition);
  background: white;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-input:invalid {
  border-color: #dc2626;
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.form-message {
  padding: 1rem;
  border-radius: var(--border-radius);
  font-weight: 500;
  text-align: center;
}

.form-message.success {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.form-message.error {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

/* Mobile Menu */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 0.5rem;
  background: none;
  border: none;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--primary-color);
  margin: 3px 0;
  transition: var(--transition);
  border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

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

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border-top: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  z-index: 999;
}

.mobile-menu.active {
  display: block;
}

.mobile-menu .nav-link {
  display: block;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-primary);
  font-weight: 500;
}

.mobile-menu .nav-link:hover {
  background: var(--secondary-color);
  color: var(--primary-color);
}

.mobile-menu .nav-link:last-child {
  border-bottom: none;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .hero-title {
    font-size: 2.5rem;
    word-wrap: break-word;
    hyphens: auto;
    line-height: 1.1;
  }
  
  .hero-subtitle {
    font-size: 1.25rem;
  }
  
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .hero-actions .btn {
    width: 100%;
    max-width: 300px;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .feature-card {
    padding: 2rem 1.5rem;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .section-header h2,
  .cta-content h2 {
    font-size: 2rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .contact-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  
  .form-row {
    grid-template-columns: 1fr !important;
  }
}

/* Extra small screens for long titles */
@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
    line-height: 1.1;
    word-break: break-word;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .section-header h2 {
    font-size: 1.75rem;
    line-height: 1.2;
  }
  
  .cta-content h2 {
    font-size: 1.75rem;
    line-height: 1.2;
  }
}

/* Models section layout (si no lo tienes ya) */
.models-section {
  background: white;
  padding: 6rem 0;
}

.models-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.model-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  text-align: center;
}

.model-title {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.model-text {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

/* ===== PORTA CAROUSEL ===== */
.porta-carousel-section {
  margin-bottom: 2rem;
}

.porta-carousel {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  max-width: 330px;
  margin: 0 auto 1.5rem auto;
  min-height: 215px;
}

.porta-carousel-control {
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--primary-color, #0077ac);
  cursor: pointer;
  transition: color 0.2s;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
}

.porta-carousel-control:hover {
  color: #33b5e5;
}

.porta-carousel-track {
  display: flex;
  width: 210px;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  position: relative;
}

.porta-carousel-card {
  display: none;
  align-items: center;
  justify-content: center;
  width: 210px;
  height: 215px;
}

.porta-carousel-card.active {
  display: flex;
}

.porta-carousel-img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.09);
  margin: 0 auto;
  background: #f4f4f4;
  border: 2px solid #dbecf7;
}

@media (max-width: 600px) {
  .porta-carousel-track,
  .porta-carousel-card,
  .porta-carousel-img {
    width: 140px;
    height: 140px;
  }

  .porta-carousel-img {
    min-width: 120px;
    min-height: 120px;
  }
}


/* carrusel 2 */

/* === PPC Feature Carousel (Our Promise) === */
.ppc-carousel-section {
  padding: 40px 0 30px 0;
  background: #f8f9fa;
}

.ppc-carousel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 520px;           /* un poco más ancho para la imagen grande */
  margin: 0 auto;
}

.ppc-carousel .carousel-control {
  background: none;
  border: none;
  font-size: 2rem;
  color: #0077ac;
  cursor: pointer;
  transition: color 0.2s;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
}

.ppc-carousel .carousel-control:hover {
  color: #33b5e5;
}

.ppc-carousel .carousel-track {
  display: flex;
  width: 100%;
  max-width: 420px;           /* más ancho para la imagen */
  min-height: 380px;          /* más alto para que quepa la imagen grande */
  overflow: hidden;
  justify-content: center;
  align-items: center;
  position: relative;
}

/* Tarjeta del carrusel */
.ppc-carousel .carousel-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08), 0 1.5px 0px rgba(0,119,172,0.04);
  padding: 18px 18px 22px 18px;  /* menos padding para que mande la imagen */
  width: 360px;
  text-align: center;
  display: none;
  flex-direction: column;
  align-items: center;
  transition: box-shadow 0.2s;
  flex-shrink: 0;
  margin: 0 0.5em;
}

.ppc-carousel .carousel-card.active {
  display: flex;
}

/* Fallback: si el JS no corre, muestra la primera tarjeta */
.ppc-carousel .carousel-card:first-child {
  display: flex;
}

/* Imagen MUCHO más grande */
.ppc-carousel .carousel-icon img {
  width: 230px;
  height: 230px;
  margin-bottom: 14px;
  object-fit: cover;
  filter: drop-shadow(0 1px 4px rgba(0,119,172,0.08));
  border-radius: 12px;
  background: #f1f9fa;
  border: 2px solid #dbecf7;
}

/* Texto más pequeño dentro del cuadro */
.ppc-carousel .carousel-title {
  font-size: 0.95rem;       /* antes ~1.18rem */
  margin-bottom: 6px;
  color: #0077ac;
  font-weight: 600;
}

.ppc-carousel .carousel-description {
  font-size: 0.85rem;       /* antes 1rem */
  color: #444;
  margin-bottom: 0;
}

@media (max-width: 700px) {
  .ppc-carousel {
    max-width: 96vw;
  }

  .ppc-carousel .carousel-track {
    max-width: 96vw;
    min-height: 360px;
  }

  .ppc-carousel .carousel-card {
    width: 90vw;
    min-width: 230px;
    max-width: 96vw;
    padding: 16px 12px 18px 12px;
  }

  .ppc-carousel .carousel-icon img {
    width: 200px;
    height: 200px;
  }
}