/* ===================================================
   WUIPI TELECOMUNICACIONES — Global Styles
   Brand: Egyptian Blue #03318C | Oxford Blue #060633 | Safety Orange #F46800
   Fonts: MADE Tommy Soft (headings) | Roboto (body)
   =================================================== */

/* MADE Tommy Soft loaded via <link> tag in HTML with display:swap */

/* === RESET === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { 
  font-family: 'Roboto', sans-serif; 
  background: #FAFBFE; 
  color: #3A4055;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6, .font-display { font-family: 'MADE Tommy Soft', 'Roboto', sans-serif; }
img { max-width: 100%; height: auto; }
a { text-decoration: none; }

/* === DARK ZONES === */
.dark-zone { background: #060633; color: #CDD6E8; }
.hero-bg {
  background: 
    radial-gradient(ellipse 70% 55% at 25% 40%, rgba(3,49,140,0.25) 0%, transparent 70%),
    radial-gradient(ellipse 50% 45% at 75% 25%, rgba(15,113,242,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 50% 85%, rgba(244,104,0,0.05) 0%, transparent 70%),
    #060633;
}
.hero-bg-mini {
  background: 
    radial-gradient(ellipse 80% 60% at 30% 50%, rgba(3,49,140,0.2) 0%, transparent 70%),
    radial-gradient(ellipse 50% 50% at 70% 40%, rgba(15,113,242,0.1) 0%, transparent 70%),
    #060633;
}
.grid-pattern-dark {
  background-image: 
    linear-gradient(rgba(153,175,242,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(153,175,242,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* === LIGHT ZONES === */
.light-zone { background: #FAFBFE; }
.light-zone-alt { background: #F1F4FA; }
.grid-pattern-light {
  background-image: 
    linear-gradient(rgba(3,49,140,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(3,49,140,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* === TRANSITIONS BETWEEN ZONES === */
.dark-to-light { background: linear-gradient(180deg, #060633 0%, #0d0d42 40%, #FAFBFE 100%); height: 120px; }
.light-to-dark { background: linear-gradient(180deg, #F1F4FA 0%, #060633 100%); height: 120px; }
.light-to-dark-alt { background: linear-gradient(180deg, #FAFBFE 0%, #060633 100%); height: 120px; }

/* === NAV === */
.nav-blur {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(6,6,51,0.92);
  border-bottom: 1px solid rgba(153,175,242,0.08);
}

/* === BUTTONS === */
.btn-primary {
  background: linear-gradient(135deg, #F46800, #F68633);
  color: white;
  font-family: 'MADE Tommy Soft', sans-serif;
  font-weight: 700;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(244,104,0,0.25); }
.btn-primary::after { content:''; position:absolute; inset:0; background:linear-gradient(135deg,#F68633,#F46800); opacity:0; transition:opacity 0.3s ease; }
.btn-primary:hover::after { opacity: 1; }
.btn-primary span { position: relative; z-index: 1; }

.btn-secondary {
  background: #03318C;
  color: white;
  font-family: 'MADE Tommy Soft', sans-serif;
  font-weight: 700;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-secondary:hover { background: #022569; transform: translateY(-2px); box-shadow: 0 10px 30px rgba(3,49,140,0.2); }

.btn-outline {
  border: 2px solid #03318C;
  color: #03318C;
  font-family: 'MADE Tommy Soft', sans-serif;
  font-weight: 700;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-outline:hover { background: #03318C; color: white; }

/* === CARDS (LIGHT) === */
.card-light {
  background: #FFFFFF;
  border: 1px solid #E4E9F2;
  border-radius: 1rem;
  transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
}
.card-light:hover {
  border-color: #03318C;
  transform: translateY(-4px);
  box-shadow: 0 15px 40px rgba(3,49,140,0.08);
}

/* === PLAN CARDS === */
.plan-card-light {
  background: #FFFFFF;
  border: 1px solid #E4E9F2;
  border-radius: 1rem;
  transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
}
.plan-card-light:hover {
  border-color: #03318C;
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(3,49,140,0.1);
}
.plan-card-light.popular {
  border: 2px solid #F46800;
  box-shadow: 0 8px 30px rgba(244,104,0,0.08);
}
.plan-card-light.popular:hover { box-shadow: 0 20px 50px rgba(244,104,0,0.12); }
.plan-card-light.popular::before {
  content: 'Más vendido';
  position: absolute; top: -1px; right: 20px;
  background: linear-gradient(135deg, #F46800, #F68633);
  color: white;
  font-family: 'MADE Tommy Soft', sans-serif;
  font-size: 0.68rem; font-weight: 700;
  padding: 5px 14px;
  border-radius: 0 0 8px 8px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* === FORM INPUTS === */
.form-input-light {
  background: #FFFFFF;
  border: 1px solid #D1D9E8;
  color: #0A0D1A;
  transition: all 0.3s ease;
  font-family: 'Roboto', sans-serif;
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
}
.form-input-light:focus { outline:none; border-color:#03318C; box-shadow:0 0 0 3px rgba(3,49,140,0.1); }
.form-input-light::placeholder { color: #9AADD1; }

.form-input-dark {
  background: rgba(13,13,66,0.8);
  border: 1px solid rgba(153,175,242,0.15);
  color: #EBEFFC;
  transition: all 0.3s ease;
  font-family: 'Roboto', sans-serif;
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
}
.form-input-dark:focus { outline:none; border-color:#F46800; box-shadow:0 0 0 3px rgba(244,104,0,0.15); }
.form-input-dark::placeholder { color: #6883BA; }

/* === TABS === */
.tab-btn { 
  transition: all 0.3s ease; 
  font-family: 'MADE Tommy Soft', sans-serif;
  cursor: pointer;
  border: none;
  background: none;
}
.tab-btn.active {
  color: #fff;
  background: #03318C;
  box-shadow: 0 4px 12px rgba(3,49,140,0.25);
}
.tab-content { display: none !important; }
.tab-content.active { display: grid !important; }

/* === ACCORDION === */
.accordion-item { border-bottom: 1px solid #E4E9F2; }
.accordion-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 0; cursor: pointer; width: 100%; border: none; background: none;
  font-family: 'MADE Tommy Soft', sans-serif; font-weight: 700; font-size: 1rem;
  color: #060633; text-align: left;
}
.accordion-header:hover { color: #03318C; }
.accordion-header svg { transition: transform 0.3s ease; flex-shrink: 0; }
.accordion-item.open .accordion-header svg { transform: rotate(180deg); }
.accordion-body {
  max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
  padding: 0; color: #3A4055; font-size: 0.9rem; line-height: 1.7;
}
.accordion-item.open .accordion-body { max-height: 500px; padding-bottom: 1.25rem; }

/* === ANIMATIONS === */
@keyframes fadeInUp { from { opacity:0; transform:translateY(30px); } to { opacity:1; transform:translateY(0); } }
.animate-in { animation: fadeInUp 0.7s ease forwards; }
.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }

@keyframes speed-move { 0%{transform:translateX(-100%);opacity:0;} 50%{opacity:1;} 100%{transform:translateX(250%);opacity:0;} }
.speed-line { position:absolute; height:2px; background:linear-gradient(90deg,transparent,rgba(15,113,242,0.35),transparent); animation:speed-move 4s linear infinite; }

/* === MOBILE MENU === */
.mobile-menu { 
  transform:translateX(100%); 
  transition:transform 0.3s ease;
  background: #060633 !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  z-index: 9999 !important;
}
.mobile-menu.open { transform:translateX(0); }
.mobile-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 9998;
  opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.mobile-backdrop.open { opacity: 1; pointer-events: auto; }

/* === UTILITY CLASSES === */
.check-blue { color: #03318C; }
.check-orange { color: #F46800; }
.text-accent { color: #F46800; }
.section-label { font-size:0.75rem; font-weight:700; letter-spacing:0.2em; color:#C45200; text-transform:uppercase; font-family:'MADE Tommy Soft',sans-serif; }

/* === SCROLLBAR === */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #F1F4FA; }
::-webkit-scrollbar-thumb { background: #03318C; border-radius: 4px; }

/* === CONTACT INFO CARDS === */
.contact-card {
  background: #FFFFFF;
  border: 1px solid #E4E9F2;
  border-radius: 1rem;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
}
.contact-card:hover {
  border-color: #03318C;
  box-shadow: 0 8px 30px rgba(3,49,140,0.06);
}

/* Inalámbrico plan cards - teal accent to differentiate from fibra */
.plan-card-wireless {
  border-top: 3px solid #0891B2 !important;
}
.plan-card-wireless .check-wireless { color: #0891B2; }

/* === ACCESSIBILITY: Focus Visible === */
*:focus-visible {
  outline: 2px solid #03318C;
  outline-offset: 2px;
  border-radius: 4px;
}
.dark-zone *:focus-visible,
.hero-bg *:focus-visible,
.hero-bg-mini *:focus-visible,
.nav-blur *:focus-visible {
  outline-color: #F68633;
}

/* === ACCESSIBILITY: Skip Navigation === */
.skip-nav {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 10000;
  background: #03318C;
  color: white;
  padding: 12px 24px;
  border-radius: 0 0 8px 8px;
  font-family: 'MADE Tommy Soft', sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-nav:focus {
  top: 0;
}

/* === ACCESSIBILITY: Contrast fix for section labels === */
.section-label { font-size:0.75rem; font-weight:700; letter-spacing:0.2em; color:#C45200; text-transform:uppercase; font-family:'MADE Tommy Soft',sans-serif; }

/* === FORM: Honeypot === */
.form-honey { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; overflow: hidden; }
