/* ============================================================
   SYNERGY LIGHT - Responsive Design
   Breakpoints: Mobile < 768px, Tablet 768-1024px, Desktop > 1024px
   ============================================================ */

/* ----- TABLET (768px - 1024px) ----- */
@media (max-width: 1024px) {
  :root {
    --section-padding: 80px 0;
  }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero-text {
    max-width: 100%;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-cards {
    max-width: 500px;
    margin: 30px auto 0;
  }

  .hero-visual {
    display: none;
  }

  .hero h1 {
    font-size: clamp(2.5rem, 5vw, 3rem);
  }

  .planes-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
  }
  
  .plan-card.featured {
    transform: scale(1);
  }
  
  .plan-card.featured:hover {
    transform: translateY(-10px);
  }
  
  .plan-price-amount {
    font-size: 3.5rem;
  }

  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .coverage-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-image img {
    height: 300px;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .calculator-wrapper {
    grid-template-columns: 1fr;
    padding: 30px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  .testimonial-nav {
    display: none;
  }

  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .lang-selector {
    display: none;
  }
}

/* ----- MOBILE (< 768px) ----- */
@media (max-width: 767px) {
  :root {
    --header-height: 70px;
    --section-padding: 60px 0;
  }

  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.2rem; }

  .container {
    padding: 0 16px;
  }

  /* Header Mobile */
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 350px;
    height: 100vh;
    background: var(--dark-bg);
    flex-direction: column;
    padding: 100px 30px 30px;
    gap: 4px;
    transition: var(--transition-base);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
    z-index: 1000;
    border-left: 1px solid rgba(0, 255, 136, 0.1);
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-link {
    font-size: 1rem;
    padding: 12px 16px;
    width: 100%;
  }

  .nav-cta {
    flex-direction: column;
    width: 100%;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-cta .btn {
    width: 100%;
    justify-content: center;
  }

  .hamburger {
    display: flex;
  }

  /* Hero Mobile */
  .hero {
    min-height: auto;
    padding: 100px 0 60px;
  }

  .hero-content {
    padding: 40px 0;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-description {
    font-size: 0.95rem;
  }

  .hero-actions {
    flex-direction: column;
    gap: 12px;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-cards {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .hero-badge {
    font-size: 0.75rem;
    padding: 6px 14px;
  }

  .scroll-indicator {
    display: none;
  }

  /* Benefits Mobile */
  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .benefit-card {
    padding: 24px 20px;
  }

  /* Plans Mobile */
  .planes-section {
    padding: 60px 0;
  }
  
  .planes-section .section-title {
    font-size: 2rem;
  }
  
  .planes-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 15px;
  }
  
  .plan-card {
    padding: 30px 20px;
  }
  
  .plan-card.featured {
    transform: none;
  }
  
  .plan-price-amount {
    font-size: 3rem;
  }
  
  .plan-name {
    font-size: 1.1rem;
  }
  
  .plan-features li {
    font-size: 0.9rem;
  }

  .section-header {
    margin-bottom: 40px;
  }

  /* Coverage Mobile */
  .coverage-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .city-card {
    height: 160px;
  }

  .coverage-map svg {
    max-width: 100%;
  }

  /* About Mobile */
  .about-image img {
    height: 250px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .stat-number {
    font-size: 1.8rem;
  }

  /* Testimonials Mobile */
  .testimonial-card {
    padding: 24px;
  }

  .testimonial-text {
    font-size: 1rem;
  }

  /* FAQ Mobile */
  .faq-question {
    padding: 16px 18px;
    font-size: 0.95rem;
  }

  .faq-answer p {
    padding: 0 18px 16px;
    font-size: 0.9rem;
  }

  /* Contact Mobile */
  .contact-info,
  .contact-form {
    padding: 20px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-info-item {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  /* Calculator Mobile */
  .calculator-wrapper {
    padding: 20px;
  }

  .result-item .amount {
    font-size: 1.5rem;
  }

  .result-item .amount.savings {
    font-size: 2rem;
  }

  /* Footer Mobile */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }

  .footer-brand p {
    max-width: 100%;
    margin: 0 auto;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-newsletter {
    flex-direction: column;
    gap: 10px;
  }

  .footer-newsletter input {
    width: 100%;
  }

  .footer-newsletter button {
    width: 100%;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .footer-bottom-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }

  /* Page Hero Mobile */
  .page-hero {
    padding: 120px 0 60px;
  }

  .page-hero h1 {
    font-size: 1.8rem;
  }

  .page-hero p {
    font-size: 1rem;
  }

  /* WhatsApp Button Mobile */
  .whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 16px;
    right: 16px;
    font-size: 1.5rem;
  }

  .whatsapp-tooltip {
    display: none;
  }

  .back-to-top {
    bottom: 80px;
    right: 16px;
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  /* Blog Mobile */
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .blog-sidebar {
    display: none;
  }

  .article-content {
    grid-template-columns: 1fr;
  }
}

/* ----- NEW SECTIONS RESPONSIVE ----- */
@media (max-width: 1024px) {
  .nosotros-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .nosotros-stats {
    grid-template-columns: 1fr;
  }
  
  .nosotros-features {
    grid-template-columns: 1fr;
  }
  
  .contacto-content {
    grid-template-columns: 1fr;
  }
  
  .contacto-info {
    grid-template-columns: 1fr;
  }
  
  .phone-icon-large {
    width: 150px;
    height: 150px;
  }
  
  .phone-icon-large .icon {
    font-size: 60px;
  }
  
  .cities-grid {
    grid-template-columns: 1fr;
  }
  
  .texas-map-container {
    padding: 20px;
  }
}

@media (max-width: 768px) {
  .contacto-acciones {
    flex-direction: column;
  }
  
  .btn-whatsapp-large,
  .btn-phone-large {
    width: 100%;
    justify-content: center;
  }
  
  .testimonial-card {
    min-width: 100%;
    max-width: 100%;
  }
}

/* Video container - asegurar 16:9 */
.video-container {
  position: relative !important;
  width: 100% !important;
  max-width: 850px !important;
  margin: 40px auto !important;
  padding-bottom: 56.25% !important; /* 16:9 aspect ratio */
  height: 0 !important;
  overflow: hidden !important;
  border-radius: 20px !important;
  border: 3px solid rgba(3, 188, 137, 0.4) !important;
  box-shadow: 0 0 40px rgba(3, 188, 137, 0.4), 0 10px 60px rgba(0, 0, 0, 0.5) !important;
  background: #000 !important;
}

.video-container iframe {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  border: none !important;
}

@media (max-width: 768px) {
  .video-container {
    max-width: 100% !important;
    margin: 30px 15px !important;
    padding-bottom: 56.25% !important;
  }
}

/* ═══════════════════════════════════════════════════════
   CORRECCIONES SOBRE NOSOTROS - MÓVIL
   ═══════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  /* Video container - forzar 16:9 */
  .nosotros-hero-section .video-container,
  #nosotros .video-container,
  section[id*="nosotros"] .video-container {
    max-width: 100% !important;
    margin: 30px 15px !important;
    padding-bottom: 56.25% !important; /* 16:9 */
    height: 0 !important;
    border-radius: 15px !important;
  }
  
  /* Equipo - Imágenes dentro del círculo */
  .equipo-section .equipo-avatar,
  #equipo .equipo-avatar,
  section[id*="equipo"] .equipo-avatar {
    width: 150px !important;
    height: 150px !important;
    min-width: 150px !important;
    min-height: 150px !important;
    max-width: 150px !important;
    max-height: 150px !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    border: 4px solid #03bc89 !important;
    box-shadow: 0 0 30px rgba(3, 188, 137, 0.4) !important;
    margin: 0 auto 25px !important;
    display: block !important;
  }
  
  .equipo-section .equipo-avatar img,
  #equipo .equipo-avatar img,
  section[id*="equipo"] .equipo-avatar img {
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    min-height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    border-radius: 50% !important;
    display: block !important;
  }
  
  /* Contacto - Tarjetas más juntas */
  .contacto-section-premium .contacto-info-wrapper,
  #contacto .contacto-info-wrapper,
  section[id*="contacto"] .contacto-info-wrapper {
    gap: 12px !important;
    margin-bottom: 30px !important;
  }
  
  .contacto-section-premium .contacto-card,
  #contacto .contacto-card,
  section[id*="contacto"] .contacto-card {
    padding: 15px !important;
    margin-bottom: 0 !important;
    min-height: auto !important;
  }
  
  .contacto-section-premium .contacto-card-icon,
  #contacto .contacto-card-icon,
  section[id*="contacto"] .contacto-card-icon {
    width: 45px !important;
    height: 45px !important;
    min-width: 45px !important;
    min-height: 45px !important;
    padding: 8px !important;
  }
  
  .contacto-section-premium .contacto-card-icon img,
  #contacto .contacto-card-icon img,
  section[id*="contacto"] .contacto-card-icon img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
  }
  
  .contacto-section-premium .card-title,
  #contacto .card-title,
  section[id*="contacto"] .card-title {
    font-size: 0.75rem !important;
    margin-bottom: 3px !important;
    line-height: 1.2 !important;
  }
  
  .contacto-section-premium .card-link,
  #contacto .card-link,
  section[id*="contacto"] .card-link {
    font-size: 0.95rem !important;
    margin-bottom: 2px !important;
    line-height: 1.3 !important;
  }
  
  .contacto-section-premium .card-note,
  #contacto .card-note,
  section[id*="contacto"] .card-note {
    font-size: 0.7rem !important;
    line-height: 1.3 !important;
    margin: 0 !important;
  }
  
  .contacto-section-premium .card-highlight,
  #contacto .card-highlight,
  section[id*="contacto"] .card-highlight {
    font-size: 0.95rem !important;
    margin-bottom: 2px !important;
    line-height: 1.2 !important;
  }
  
  /* Contacto - Hover solo en desktop */
  .contacto-section-premium .contacto-card:hover,
  #contacto .contacto-card:hover,
  section[id*="contacto"] .contacto-card:hover {
    transform: translateX(8px) !important;
    border-color: #03bc89 !important;
    box-shadow: 0 8px 25px rgba(3, 188, 137, 0.2) !important;
  }
  
  /* Cobertura - Reducir espacio mapa-tarjetas */
  .texas-map-container,
  .texas-map-container-premium,
  .texas-map-interactive-wrapper {
    margin-bottom: 30px !important;
    padding: 20px !important;
  }
  
  .cities-grid {
    margin-top: 20px !important;
    gap: 20px !important;
  }
  
  .cobertura-section {
    padding-bottom: 40px !important;
  }
}

/* ═══════════════════════════════════════════════════════
   SMALL MOBILE (< 480px)
   ═══════════════════════════════════════════════════════ */
@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.5rem;
  }

  .hero-cards {
    grid-template-columns: 1fr;
  }

  .benefits-grid {
    gap: 12px;
  }

  .planes-grid {
    gap: 16px;
  }

  .btn {
    padding: 12px 24px;
    font-size: 0.9rem;
  }

  .btn-lg {
    padding: 14px 30px;
    font-size: 1rem;
  }

  .logo img {
    height: 35px;
  }

  .logo span {
    font-size: 1.1rem;
  }
}

/* ----- LARGE DESKTOP (> 1440px) ----- */
@media (min-width: 1440px) {
  :root {
    --container-width: 1320px;
  }

  .hero-content {
    gap: 80px;
  }

  .hero-glow-circle {
    width: 500px;
    height: 500px;
  }

  .hero-glow-circle-inner {
    width: 320px;
    height: 320px;
  }

  .benefits-grid {
    gap: 30px;
  }

  .planes-grid {
    gap: 40px;
  }
}

/* ═══════════════════════════════════════════════════════
   HERO MÓVIL - EVITAR QUE "ELECTRICIDAD?" SE PARTE
   ═══════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .hero-title-1 {
    font-size: clamp(1.4rem, 7vw, 2rem) !important;
    white-space: nowrap !important;
  }
  
  .hero-title-2 {
    font-size: clamp(1.4rem, 7vw, 2rem) !important;
    white-space: nowrap !important;
    line-height: 1.1 !important;
  }
}

/* ═══════════════════════════════════════════════════════
   CORRECCIONES FORZADAS - TESTIMONIOS MÓVIL
   ═══════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  /* Testimonios - Imágenes dentro del círculo */
  .testimonios-section .testimonial-avatar,
  #testimonios .testimonial-avatar {
    width: 60px !important;
    height: 60px !important;
    min-width: 60px !important;
    min-height: 60px !important;
    max-width: 60px !important;
    max-height: 60px !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    border: 3px solid #03bc89 !important;
    box-shadow: 0 0 15px rgba(3, 188, 137, 0.4) !important;
    flex-shrink: 0 !important;
    display: block !important;
    position: relative !important;
  }
  
  .testimonios-section .testimonial-avatar img,
  #testimonios .testimonial-avatar img {
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    min-height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    border-radius: 50% !important;
    display: block !important;
  }
}

/* Testimonios - Desktop también forzado */
.testimonios-section .testimonial-avatar,
#testimonios .testimonial-avatar {
  overflow: hidden !important;
  border-radius: 50% !important;
}

.testimonios-section .testimonial-avatar img,
#testimonios .testimonial-avatar img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 50% !important;
}

/* Desktop - Forzar correcciones equipo */
.equipo-section .equipo-avatar,
#equipo .equipo-avatar,
section[id*="equipo"] .equipo-avatar {
  overflow: hidden !important;
  border-radius: 50% !important;
}

.equipo-section .equipo-avatar img,
#equipo .equipo-avatar img,
section[id*="equipo"] .equipo-avatar img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 50% !important;
}

/* Contacto - Hover en desktop forzado */
.contacto-section-premium .contacto-card:hover,
#contacto .contacto-card:hover,
section[id*="contacto"] .contacto-card:hover {
  transform: translateX(10px) !important;
  border-color: #03bc89 !important;
  box-shadow: 0 10px 30px rgba(3, 188, 137, 0.2) !important;
  transition: all 0.3s ease !important;
}
