/* ========================================
   PC-CORE INTERNET — Estilos principales
   Colores: Rojo #CC0000, Blanco, Oscuro #1a1a2e
   ======================================== */

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

:root {
    --red: #1E88E5;
    --red-dark: #1565C0;
    --red-light: #64B5F6;
    --orange: #F57C00;
    --dark: #1a2744;
    --dark2: #0f1b35;
    --gray: #f4f6f8;
    --gray2: #e8ecf0;
    --text: #2d2d2d;
    --text-light: #666;
    --white: #ffffff;
    --shadow: 0 2px 12px rgba(0,0,0,0.10);
    --shadow-hover: 0 6px 24px rgba(30,136,229,0.18);
    --radius: 10px;
    --radius-lg: 16px;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--text);
    line-height: 1.6;
    font-size: 16px;
}

a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---- HEADER ---- */
header {
    background: var(--dark);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding-top: 12px;
    padding-bottom: 12px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.logo-img { height: 44px; width: auto; }

.brand-name {
    color: var(--white);
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

.brand-slogan {
    color: #aaa;
    font-size: 0.75rem;
    font-style: italic;
}

.main-nav { flex: 1; }

.main-nav ul {
    display: flex;
    gap: 0.25rem;
    list-style: none;
    justify-content: center;
}

.main-nav a {
    color: #ccc;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.main-nav a:hover {
    color: var(--white);
    background: rgba(255,255,255,0.08);
    text-decoration: none;
}

.btn-call {
    background: var(--red);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: background 0.2s;
    flex-shrink: 0;
}

.btn-call:hover { background: var(--red-dark); text-decoration: none; }

/* ---- HERO ---- */
.hero {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark2) 60%, #0a1628 100%);
    color: var(--white);
    padding: 72px 0 64px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -60px; right: -80px;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(204,0,0,0.18) 0%, transparent 70%);
    pointer-events: none;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3rem;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    background: rgba(30,136,229,0.2);
    border: 1px solid rgba(30,136,229,0.5);
    color: #90CAF9;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    margin-bottom: 1rem;
    letter-spacing: 0.3px;
}

.hero h1 {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 1rem;
}

.hero p {
    color: #bbb;
    font-size: 1rem;
    margin-bottom: 1.75rem;
    max-width: 520px;
}

.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn-primary {
    background: var(--red);
    color: var(--white);
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: background 0.2s, transform 0.1s;
    display: inline-block;
}

.btn-primary:hover {
    background: var(--red-dark);
    text-decoration: none;
    transform: translateY(-1px);
}

.btn-secondary {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--white);
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: background 0.2s;
    display: inline-block;
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.15);
    text-decoration: none;
}

.hero-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hero-stat {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius);
    padding: 16px 24px;
    text-align: center;
    min-width: 150px;
}

.hero-stat strong {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--red-light);
}

.hero-stat span {
    font-size: 0.78rem;
    color: #999;
}

/* ---- SECTIONS GENERAL ---- */
section { padding: 72px 0; }

h2 {
    font-size: 1.9rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.6rem;
    color: var(--dark);
}

.section-sub {
    text-align: center;
    color: var(--text-light);
    max-width: 680px;
    margin: 0 auto 2.5rem;
    font-size: 0.97rem;
}

/* ---- SERVICIO ---- */
.servicio { background: var(--gray); }

.servicio-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.servicio-item {
    background: var(--white);
    border-radius: var(--radius);
    padding: 28px 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: box-shadow 0.2s, transform 0.2s;
}

.servicio-item:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
}

.s-icon { font-size: 2.2rem; margin-bottom: 0.75rem; }

.servicio-item h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.servicio-item p { font-size: 0.9rem; color: var(--text-light); }

/* ---- PLANES ---- */
.planes { background: var(--white); }

.ift-folios {
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-radius: var(--radius);
    padding: 12px 18px;
    margin-bottom: 2rem;
    font-size: 0.88rem;
    color: #6d4c00;
    text-align: center;
}

.ift-folios small { display: block; margin-top: 4px; opacity: 0.8; }

.planes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
    align-items: start;
}

.plan-card {
    background: var(--white);
    border: 2px solid var(--gray2);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    position: relative;
    transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
}

.plan-card:hover {
    box-shadow: var(--shadow-hover);
    border-color: var(--red);
    transform: translateY(-4px);
}

.plan-card.featured {
    border-color: var(--orange);
    box-shadow: 0 8px 32px rgba(245,124,0,0.15);
}

.plan-popular {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--orange);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 16px;
    border-radius: 20px;
    white-space: nowrap;
    letter-spacing: 0.5px;
}

.plan-label {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--red);
    margin-bottom: 4px;
    text-transform: uppercase;
}

.plan-card.featured .plan-label { color: var(--orange); }

.plan-header { text-align: center; margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--gray2); }

.plan-header h3 { font-size: 1.3rem; font-weight: 700; color: var(--dark); margin-bottom: 0.5rem; }

.plan-price { font-size: 2.4rem; font-weight: 700; color: var(--orange); }

.plan-price span { font-size: 1rem; color: var(--text-light); font-weight: 400; }

.plan-features { list-style: none; margin-bottom: 1.75rem; }

.plan-features li {
    padding: 7px 0;
    font-size: 0.95rem;
    color: var(--text);
    border-bottom: 1px solid var(--gray2);
}

.plan-features li:last-child { border-bottom: none; }

.btn-plan {
    display: block;
    text-align: center;
    background: var(--red);
    color: var(--white);
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: background 0.2s;
}

.btn-plan:hover { background: var(--red-dark); text-decoration: none; }

/* ---- Plan type headers ---- */
.planes-tipo-header {
    text-align: center;
    margin: 2.5rem 0 1.75rem;
}

.wireless-header { margin-top: 3.5rem; }

.planes-tipo-badge {
    display: inline-block;
    padding: 5px 18px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    letter-spacing: 0.5px;
}

.planes-tipo-badge.fibra {
    background: #e3f2fd;
    color: var(--red-dark);
    border: 1px solid #90caf9;
}

.planes-tipo-badge.wireless {
    background: #fff3e0;
    color: #e65100;
    border: 1px solid #ffcc80;
}

.planes-tipo-titulo {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.4rem;
}

.planes-tipo-sub {
    color: var(--text-light);
    font-size: 0.9rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ---- Fiber plan cards ---- */
.planes-fibra { margin-bottom: 0; }

.fibra-card {
    border-width: 2px;
    box-shadow: 0 4px 20px rgba(30,136,229,0.08);
}

.fibra-card:hover {
    border-color: var(--red);
    box-shadow: 0 8px 32px rgba(30,136,229,0.2);
}

.featured-fibra {
    border-color: var(--orange) !important;
    box-shadow: 0 8px 32px rgba(245,124,0,0.18) !important;
    transform: scale(1.03);
}

.featured-fibra:hover { transform: scale(1.05) translateY(-4px); }

.fibra-label { color: var(--red); }

.fibra-popular {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--orange);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 16px;
    border-radius: 20px;
    white-space: nowrap;
}

/* ---- Wireless plan cards ---- */
.planes-wireless .plan-card {
    border-color: #ffe0b2;
    background: #fffaf5;
}

.wireless-card:hover {
    border-color: var(--orange) !important;
    box-shadow: 0 6px 24px rgba(245,124,0,0.15) !important;
}

.wireless-label { color: #e65100; }

.wireless-price { color: #e65100 !important; }

.btn-plan-wireless {
    background: #e65100 !important;
}

.btn-plan-wireless:hover { background: #bf360c !important; }

/* ---- Quality table section headers ---- */
.tr-fibra-header td {
    background: #e3f2fd;
    color: var(--red-dark);
    font-size: 0.85rem;
    padding: 8px 16px;
}

.tr-wireless-header td {
    background: #fff3e0;
    color: #e65100;
    font-size: 0.85rem;
    padding: 8px 16px;
}

.planes-nota {
    margin-top: 2rem;
    text-align: center;
    font-size: 0.82rem;
    color: var(--text-light);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* ---- CALIDAD ---- */
.calidad { background: var(--gray); }

.table-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 1rem;
}

.mes-placeholder {
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-radius: 4px;
    padding: 1px 8px;
    font-size: 0.85rem;
    color: #6d4c00;
    font-weight: 400;
}

.table-wrap {
    overflow-x: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 0.75rem;
}

.ift-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    font-size: 0.92rem;
}

.ift-table thead {
    background: var(--dark);
    color: var(--white);
}

.ift-table th {
    padding: 13px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 0.85rem;
    white-space: nowrap;
}

.ift-table td { padding: 12px 16px; border-bottom: 1px solid var(--gray2); }

.ift-table tbody tr:last-child td { border-bottom: none; }

.ift-table tbody tr:hover { background: #fafafa; }

.badge-san {
    background: #fff0f0;
    color: var(--red);
    border: 1px solid #ffcccc;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
}

.badge-inf {
    background: #e8f4fd;
    color: #1565c0;
    border: 1px solid #bbdefb;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
}

.table-fecha {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

/* ---- DOCUMENTOS ---- */
.documentos { background: var(--white); }

.docs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.doc-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--white);
    border: 1px solid var(--gray2);
    border-radius: var(--radius);
    padding: 18px 16px;
    transition: box-shadow 0.2s, border-color 0.2s;
    cursor: pointer;
}

.doc-card:hover {
    border-color: var(--red);
    box-shadow: var(--shadow-hover);
    text-decoration: none;
}

.doc-card.pending {
    opacity: 0.6;
    cursor: default;
    background: var(--gray);
}

.doc-card.pending:hover {
    border-color: var(--gray2);
    box-shadow: none;
}

.doc-num {
    background: var(--dark);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.doc-info { flex: 1; min-width: 0; }

.doc-info h4 {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 3px;
    line-height: 1.3;
}

.doc-info p { font-size: 0.78rem; color: var(--text-light); line-height: 1.3; }

.doc-dl {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--red);
    white-space: nowrap;
    flex-shrink: 0;
}

.doc-dl.pending { color: var(--text-light); }

/* ---- TRAMITES ---- */
.tramites { background: var(--gray); }

.tramites-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.tramite-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px 20px;
    box-shadow: var(--shadow);
    position: relative;
}

.tramite-num {
    position: absolute;
    top: -12px;
    left: 20px;
    background: var(--red);
    color: var(--white);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
}

.tramite-card h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark);
    padding-top: 0.25rem;
}

.tramite-table { width: 100%; font-size: 0.85rem; border-collapse: collapse; }

.tramite-table tr { border-bottom: 1px solid var(--gray2); }

.tramite-table tr:last-child { border-bottom: none; }

.tramite-table th {
    text-align: left;
    color: var(--text-light);
    font-weight: 600;
    padding: 6px 8px 6px 0;
    width: 38%;
    white-space: nowrap;
}

.tramite-table td {
    padding: 6px 0;
    color: var(--text);
}

/* ---- CONTACTO ---- */
.contacto { background: var(--white); }

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

.contacto-bloque h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--orange);
}

.contact-list { list-style: none; }

.contact-list li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px solid var(--gray2);
}

.contact-list li:last-child { border-bottom: none; }

.ci { font-size: 1.3rem; flex-shrink: 0; margin-top: 2px; }

.contact-list strong { display: block; font-size: 0.85rem; color: var(--text-light); margin-bottom: 2px; }

.contact-list p { font-size: 0.95rem; }

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

.pago-item {
    background: var(--gray);
    border-radius: var(--radius);
    padding: 20px 16px;
    text-align: center;
}

.pago-icon { font-size: 2rem; margin-bottom: 0.5rem; }

.pago-item h4 { font-size: 0.9rem; font-weight: 600; margin-bottom: 0.4rem; color: var(--dark); }

.pago-item p { font-size: 0.82rem; color: var(--text-light); }

.quejas-list { list-style: none; }

.quejas-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--gray2);
    font-size: 0.9rem;
    line-height: 1.6;
}

.quejas-list li:last-child { border-bottom: none; }

/* ---- FOOTER ---- */
footer {
    background: var(--dark);
    color: #aaa;
    padding: 56px 0 0;
}

.footer-brand {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.75rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 2.5rem;
    padding-bottom: 2.5rem;
}

.footer-grid p { font-size: 0.88rem; margin-bottom: 4px; }

.footer-grid strong {
    display: block;
    color: var(--white);
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

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

.footer-grid ul li { margin-bottom: 6px; font-size: 0.88rem; }

.footer-grid a { color: #aaa; }

.footer-grid a:hover { color: var(--white); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p { font-size: 0.8rem; line-height: 1.6; }

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
    .servicio-grid { grid-template-columns: repeat(2, 1fr); }
    .docs-grid { grid-template-columns: repeat(2, 1fr); }
    .tramites-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
    .header-inner { flex-wrap: wrap; }
    .main-nav { order: 3; width: 100%; }
    .main-nav ul { flex-wrap: wrap; justify-content: flex-start; }
    .btn-call { margin-left: auto; }

    .hero-inner { grid-template-columns: 1fr; }
    .hero-cards { flex-direction: row; justify-content: center; }
    .hero h1 { font-size: 1.7rem; }

    .planes-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
    .contacto-grid { grid-template-columns: 1fr; }
    .tramites-grid { grid-template-columns: 1fr; }
    .docs-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }

    h2 { font-size: 1.5rem; }
    section { padding: 52px 0; }
}

@media (max-width: 480px) {
    .hero-cards { flex-direction: column; align-items: center; }
    .footer-grid { grid-template-columns: 1fr; }
    .pagos-grid { grid-template-columns: 1fr; }
    .servicio-grid { grid-template-columns: 1fr; }
}
