/* ===== CSS VARIABLES ===== */
:root {
    --dark:      #1c2535;
    --darker:    #151e2d;
    --orange:    #f0a500;
    --orange-h:  #d99300;
    --white:     #ffffff;
    --gray-bg:   #f4f6f8;
    --gray-lt:   #e8eaed;
    --gray-txt:  #6b7280;
    --text:      #1c2535;
    --border:    #dde1e7;
    --radius:    6px;
    --shadow:    0 2px 12px rgba(0,0,0,.10);
    --shadow-h:  0 10px 32px rgba(0,0,0,.18);
    --trans:     .25s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Barlow', sans-serif; background: var(--gray-bg); color: var(--text); font-size: 14px; line-height: 1.5; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ===== SCROLL REVEAL ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .5s ease, transform .5s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== TOP HEADER ===== */
.top-header { background: var(--dark); padding: 12px 0; }
.top-header .inner {
    max-width: 1200px; margin: 0 auto; padding: 0 20px;
    display: flex; align-items: center; gap: 24px;
}
.logo {
    display: flex; align-items: center; gap: 10px; flex-shrink: 0;
    transition: transform var(--trans);
}
.logo:hover { transform: scale(1.04); }
.logo-icon {
    width: 54px; height: 54px; border: 2px solid var(--white); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Barlow Condensed', sans-serif; font-size: 20px; font-weight: 800;
    color: var(--white);
}
.logo-text { color: var(--white); font-family: 'Barlow Condensed', sans-serif; font-size: 15px; font-weight: 700; line-height: 1.25; text-transform: uppercase; }
.logo-text span { display: block; font-size: 13px; font-weight: 500; opacity: .85; }

.search-bar { flex: 1; display: flex; max-width: 580px; border-radius: var(--radius); overflow: hidden; box-shadow: 0 0 0 2px transparent; transition: box-shadow var(--trans); }
.search-bar:focus-within { box-shadow: 0 0 0 2px var(--orange); }
.search-cat { background: var(--white); color: var(--text); padding: 0 14px; font-size: 13px; font-family: 'Barlow', sans-serif; border: none; border-right: 1px solid var(--border); cursor: pointer; white-space: nowrap; height: 42px; }
.search-cat:hover { background: var(--gray-lt); }
.search-input { flex: 1; height: 42px; border: none; padding: 0 14px; font-size: 13px; font-family: 'Barlow', sans-serif; background: var(--white); outline: none; }
.search-btn {
    background: var(--orange); color: var(--white); height: 42px; padding: 0 22px;
    font-family: 'Barlow Condensed', sans-serif; font-size: 15px; font-weight: 700;
    letter-spacing: 1px; text-transform: uppercase; border: none; cursor: pointer;
    position: relative; overflow: hidden; transition: background var(--trans);
}
.search-btn::after { content: ''; position: absolute; inset: 0; background: rgba(255,255,255,.2); transform: translateX(-100%); transition: transform .3s ease; }
.search-btn:hover { background: var(--orange-h); }
.search-btn:hover::after { transform: translateX(100%); }
.search-btn:active { transform: scale(.97); }

.contact-info { display: flex; align-items: center; gap: 12px; color: var(--white); margin-left: auto; flex-shrink: 0; }
.contact-icon { width: 42px; height: 42px; border: 2px solid rgba(255,255,255,.35); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; opacity: .85; }
.contact-txt p { font-size: 11px; opacity: .7; text-transform: uppercase; letter-spacing: .5px; }
.contact-txt strong { font-size: 15px; font-weight: 700; letter-spacing: .5px; }

/* ===== NAVBAR ===== */
.navbar { background: var(--darker); border-bottom: 2px solid rgba(255,255,255,.06); }
.navbar .inner { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: flex; align-items: stretch; height: 48px; }
.nav-cat-btn {
    background: var(--orange); color: var(--white); padding: 0 20px; border: none; cursor: pointer;
    font-family: 'Barlow Condensed', sans-serif; font-size: 15px; font-weight: 700;
    letter-spacing: 1px; text-transform: uppercase; display: flex; align-items: center; gap: 8px;
    transition: background var(--trans); flex-shrink: 0;
}
.nav-cat-btn:hover { background: var(--orange-h); }
.nav-links { display: flex; align-items: stretch; flex: 1; }
.nav-links a {
    color: rgba(255,255,255,.75); padding: 0 18px; display: flex; align-items: center;
    font-size: 13px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase;
    position: relative; transition: color var(--trans);
}
.nav-links a::after { content: ''; position: absolute; bottom: 0; left: 18px; right: 18px; height: 2px; background: var(--orange); transform: scaleX(0); transition: transform var(--trans); }
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--orange); }
.nav-search-btn { background: var(--dark); color: var(--white); padding: 0 18px; border: none; cursor: pointer; font-family: 'Barlow', sans-serif; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; margin-left: auto; display: flex; align-items: center; transition: background var(--trans); border-left: 1px solid rgba(255,255,255,.08); }
.nav-search-btn:hover { background: #2a3a50; color: var(--orange); }

/* ===== PAGE CONTENT ===== */
.page-wrapper { max-width: 1200px; margin: 30px auto 40px; padding: 0 20px; }

/* Breadcrumb */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--gray-txt); margin-bottom: 20px; }
.breadcrumb a { color: var(--orange); transition: color var(--trans); }
.breadcrumb a:hover { color: var(--orange-h); }
.breadcrumb i { font-size: 10px; }

/* Section Header */
.section-header { margin-bottom: 6px; }
.section-header h1 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 28px; font-weight: 800; color: var(--dark);
    text-transform: uppercase; letter-spacing: .5px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--orange);
    display: inline-block;
}
.section-header p { font-size: 18px; color: var(--gray-txt); margin-top: 10px; max-width: 680px; line-height: 1.6; }

/* Operators card container */
.operators-container {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 50px 40px;
    margin-top: 24px;
}

.operators-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px;
}

/* Each operator card */
.operator-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    width: 210px;
}

.operator-logo {
    width: 200px;
    height: 200px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    transition: transform var(--trans), box-shadow var(--trans);
    box-shadow: 0 4px 18px rgba(0,0,0,.14);
}
.operator-card:hover .operator-logo {
    transform: translateY(-6px) scale(1.03);
    box-shadow: var(--shadow-h);
}

/* Shine overlay on hover */
.operator-logo::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,.25) 0%, transparent 60%);
    opacity: 0;
    transition: opacity var(--trans);
}
.operator-card:hover .operator-logo::after { opacity: 1; }

.operator-name {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 17px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .5px;
    color: var(--dark);
    transition: color var(--trans);
}
.operator-card:hover .operator-name { color: var(--orange); }

/* Operator-specific brand colors & logos */
/* DIGI */
.logo-digi {
    background: linear-gradient(135deg, #1a7cc2 0%, #0e5fa0 40%, #1e9bdb 100%);
}
.logo-digi .brand-text {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 62px; font-weight: 800;
    color: white; letter-spacing: -1px;
}
/* Decorative arcs for DIGI */
.logo-digi .arcs {
    position: absolute; right: -10px; top: 0; bottom: 0;
    display: flex; flex-direction: column; justify-content: center; gap: 8px;
}
.logo-digi .arcs span {
    display: block; width: 60px; height: 60px;
    border: 8px solid rgba(255,255,255,.15);
    border-radius: 50%;
    margin-right: -30px;
}

/* MASMOVIL */
.logo-masmovil { background: #f5c800; }
.logo-masmovil .brand-text {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 36px; font-weight: 800;
    color: #222; letter-spacing: -1px;
    text-align: center; line-height: 1;
}
.logo-masmovil .brand-text em { font-style: normal; font-weight: 400; }

/* PEPEPHONE */
.logo-pepephone { background: #cc0000; }
.logo-pepephone .brand-wrap { text-align: center; }
.logo-pepephone .pepe-line1 {
    font-family: 'Barlow', sans-serif;
    font-size: 52px; font-weight: 800;
    color: white; letter-spacing: -2px; line-height: 1;
    display: block;
}
.logo-pepephone .pepe-line2 {
    font-family: 'Barlow', sans-serif;
    font-size: 52px; font-weight: 300;
    color: #ffcccc; letter-spacing: -2px; line-height: 1;
    display: block;
}

/* JAZZTEL */
.logo-jazztel { background: #f5c800; }
.logo-jazztel .brand-text {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 52px; font-weight: 800;
    color: #111; letter-spacing: -2px; font-style: italic;
}

/* LOWI */
.logo-lowi { background: #ffffff; border: 2px solid var(--border); }
.logo-lowi .brand-text {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 72px; font-weight: 900;
    color: #111; letter-spacing: -3px;
    position: relative;
}
.logo-lowi .lowi-dot {
    position: absolute; top: 2px; right: -8px;
    width: 22px; height: 22px;
    background: #e53935; border-radius: 50%;
}

/* Info strip */
.info-strip {
    background: linear-gradient(135deg, var(--dark) 0%, #253248 100%);
    border-radius: var(--radius);
    padding: 28px 32px;
    margin-top: 28px;
    display: flex; align-items: center; gap: 24px;
    box-shadow: var(--shadow);
}
.info-strip-icon {
    width: 56px; height: 56px; flex-shrink: 0;
    background: var(--orange);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; color: var(--white);
}
.info-strip-text h3 {
    color: var(--white);
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 18px; font-weight: 800;
    text-transform: uppercase; letter-spacing: .5px;
    margin-bottom: 4px;
}
.info-strip-text p { color: rgba(255,255,255,.65); font-size: 13px; line-height: 1.55; }
.info-strip-btn {
    margin-left: auto; flex-shrink: 0;
    background: var(--orange);
    color: var(--white);
    padding: 12px 26px;
    border-radius: var(--radius);
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 15px; font-weight: 700;
    letter-spacing: .8px; text-transform: uppercase;
    border: none; cursor: pointer;
    transition: background var(--trans), transform .15s;
}
.info-strip-btn:hover { background: var(--orange-h); transform: translateY(-2px); }

/* ===== FOOTER ===== */
footer { background: var(--dark); color: rgba(255,255,255,.75); padding: 48px 0 0; }
.footer-inner {
    max-width: 1200px; margin: 0 auto; padding: 0 20px 32px;
    display: grid; grid-template-columns: repeat(4, 1fr) 260px; gap: 28px;
}
.footer-col h4 {
    color: var(--white); font-family: 'Barlow Condensed', sans-serif;
    font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px;
    margin-bottom: 16px; padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-col ul li { margin-bottom: 9px; }
.footer-col ul li a { font-size: 13px; color: rgba(255,255,255,.65); transition: color var(--trans), padding-left var(--trans); display: inline-block; }
.footer-col ul li a:hover { color: var(--orange); padding-left: 5px; }
.footer-contact li { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; margin-bottom: 8px; color: rgba(255,255,255,.7); }
.footer-contact li i { color: var(--orange); font-size: 13px; margin-top: 2px; flex-shrink: 0; }
.footer-brand { border-left: 1px solid rgba(255,255,255,.08); padding-left: 24px; }
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-logo-icon { width: 44px; height: 44px; border: 2px solid var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: 'Barlow Condensed', sans-serif; font-size: 14px; font-weight: 800; color: var(--white); flex-shrink: 0; }
.footer-logo-text { color: var(--white); font-family: 'Barlow Condensed', sans-serif; font-size: 14px; font-weight: 700; text-transform: uppercase; line-height: 1.25; }
.footer-desc { font-size: 12.5px; color: rgba(255,255,255,.6); line-height: 1.6; }
.copy-bar { background: var(--darker); border-top: 1px solid rgba(255,255,255,.07); }
.copy-inner { max-width: 1200px; margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; }
.copy-inner p { font-size: 12px; color: rgba(255,255,255,.5); }
.social-links { display: flex; gap: 14px; }
.social-links a { color: rgba(255,255,255,.5); font-size: 16px; transition: color var(--trans), transform .15s; }
.social-links a:hover { color: var(--orange); transform: translateY(-2px); }

/* Cookie */
.cookie-bar { position: fixed; bottom: 0; left: 0; right: 0; background: var(--darker); border-top: 2px solid var(--orange); padding: 12px 20px; display: flex; align-items: center; justify-content: center; gap: 20px; z-index: 999; font-size: 12.5px; color: rgba(255,255,255,.75); box-shadow: 0 -4px 20px rgba(0,0,0,.3); }
.cookie-bar p { flex: 1; text-align: center; }
.cookie-bar a { color: var(--orange); text-decoration: underline; }
.cookie-accept { background: var(--orange); color: var(--white); padding: 8px 20px; border-radius: var(--radius); font-size: 13px; font-weight: 700; font-family: 'Barlow', sans-serif; text-transform: uppercase; letter-spacing: .5px; border: none; cursor: pointer; transition: background var(--trans), transform .15s; white-space: nowrap; }
.cookie-accept:hover { background: var(--orange-h); transform: scale(1.04); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) { .footer-inner { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 768px) {
    .operators-grid { gap: 16px; }
    .operator-logo { width: 140px; height: 140px; }
    .operator-card { width: 140px; }
    .logo-digi .brand-text, .logo-jazztel .brand-text { font-size: 38px; }
    .logo-masmovil .brand-text { font-size: 22px; }
    .logo-pepephone .pepe-line1, .logo-pepephone .pepe-line2 { font-size: 32px; }
    .logo-lowi .brand-text { font-size: 44px; }
    .info-strip { flex-direction: column; text-align: center; }
    .info-strip-btn { margin-left: 0; }
    .top-header .inner { flex-wrap: wrap; gap: 10px; }
    .contact-info { margin-left: 0; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
    .footer-inner { grid-template-columns: 1fr; }
    .operator-logo { width: 120px; height: 120px; }
    .operator-card { width: 120px; }
}