
* { box-sizing: border-box; }

:root { --bg-dark: #121212; --bg-sidebar: #000000; --text-light: #ffffff; --accent-red: #ff0000; --card-bg: #1e1e1e; --border-color: #333333; }
body { margin: 0; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background-color: var(--bg-dark); color: var(--text-light); display: flex; min-height: 100vh; overflow-x: hidden; width: 100vw; max-width: 100vw;}

/* SIDEBAR INTRANET */
.sidebar { width: 260px; background-color: var(--bg-sidebar); padding: 20px; border-right: 1px solid var(--border-color); flex-shrink: 0; }
.sidebar h2 { color: white; text-align: left; margin-top: 0; border-bottom: 2px solid var(--accent-red); padding-bottom: 10px; font-size: 24px;}
.menu-container details { margin-bottom: 5px; }
.menu-container summary { color: white; cursor: pointer; padding: 12px 0; font-weight: bold; font-size: 16px; list-style: none; display: flex; align-items: center; border-bottom: 1px solid #1a1a1a; transition: color 0.2s;}
.menu-container summary::-webkit-details-marker { display: none; }
.menu-container summary::before { content: '›'; margin-right: 10px; font-size: 20px; transition: transform 0.2s; display: inline-block; color: var(--accent-red); }
.menu-container details[open] > summary::before { transform: rotate(90deg); }
.menu-container summary:hover { color: var(--accent-red); }
.menu-level-2 summary { font-size: 15px; padding: 10px 0 10px 15px; color: #ddd; border-bottom: none;}
.menu-content ul { list-style: none; padding: 0 0 10px 40px; margin: 0; }
.menu-content a { color: #888; text-decoration: none; display: block; padding: 8px 0; font-size: 14px; transition: color 0.2s;}
.menu-content a:hover, .menu-content a.active { color: white; font-weight: bold; }

/* MAIN CONTENT */
.main-content { flex: 1; padding: 40px; width: calc(100% - 260px); max-width: calc(100% - 260px); overflow-x: hidden; }
.main-content h1 { border-bottom: 1px solid var(--border-color); padding-bottom: 10px; margin-top: 0; font-size: 28px;}

/* BENEFICIOS ACCORDION */
.beneficios-accordion { margin: 30px auto; width: 100%; max-width: 1000px; border-bottom: 1px solid #ddd; padding-bottom: 10px;}
.beneficios-accordion summary { display: flex; justify-content: center; align-items: center; gap: 10px; font-size: 32px; font-weight: 900; cursor: pointer; list-style: none; color: var(--accent-red); outline: none;}
.beneficios-accordion summary::-webkit-details-marker { display: none; }
.beneficios-accordion summary:after { content: '⌄'; font-size: 24px; font-weight: normal; }
.beneficios-accordion[open] summary:after { content: '⌃'; }
.beneficios-accordion.blue summary { color: #4facf7; }
.beneficios-accordion[open] { border-bottom: none; }

/* TARJETAS GLOBALES */
.grid-container { display: flex; flex-wrap: nowrap; gap: 12px; margin-bottom: 50px; overflow-x: auto; padding-bottom: 10px;}
.grid-wrap-4 { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; margin: 30px auto 50px auto; width: 100%; }
.grid-wrap-4 .plan-card { flex: 0 1 calc(25% - 20px); min-width: 220px; max-width: 280px; }
.plan-card { flex: 1 1 0; min-width: 0; background: #ffffff; color: #000; border: 2px solid #ddd; padding: 20px 10px; border-radius: 6px; text-align: center; box-shadow: 0 4px 6px rgba(0,0,0,0.1); word-break: break-word; }
.plan-card h3 { font-size: 26px; margin-top: 0; border-bottom: 2px solid #eee; padding-bottom: 12px; font-weight: 900;}
.price-strike { text-decoration: line-through; color: #666; font-size: 13px; margin-bottom: 5px; font-weight: bold;}
.discount-text { color: #000; font-weight: bold; margin: 0; font-size: 14px; }
.price-final { color: var(--accent-red); font-size: 24px; font-weight: 900; margin: 12px 0; }
.benefits p { font-size: 13px; color: #333; margin: 8px 0; padding: 3px; font-weight: 500;}
.highlight-yellow { background: orange; color: black; padding: 2px 5px; font-weight: bold;}

.plan-card-dark { background: #333; color: white; border: 1px solid #555; }
.plan-card-dark h3 { border-bottom: 1px solid #555; }
.plan-card-dark .price-strike { color: #aaa; }
.plan-card-dark .discount-text { color: white; }
.plan-card-dark .benefits p { color: #ddd; }
.plan-card-dark .price-final { color: red; }

/* EXCEL VIEWER */
.excel-container { border: 1px solid #ccc; border-radius: 4px; overflow: hidden; font-family: 'Calibri', sans-serif;}
.excel-tabs { display: flex; background: #f3f3f3; border-bottom: 1px solid #ccc; padding: 5px 5px 0 5px; overflow-x: auto;}
.excel-tab { background: #e1e1e1; border: 1px solid #ccc; border-bottom: none; padding: 6px 15px; cursor: pointer; border-radius: 4px 4px 0 0; margin-right: 2px; font-size: 13px; color: #333;}
.excel-tab.active { background: white; font-weight: bold; border-bottom: 1px solid white; margin-bottom: -1px; color: #000;}
.excel-table-wrapper { overflow: auto; max-height: 400px; background: white; }
.excel-table { border-collapse: collapse; white-space: nowrap; font-size: 13px; user-select: all; width: max-content; min-width: 100%;}
.excel-table th { background: #f8f9fa; border: 1px solid #ddd; padding: 6px 10px; font-weight: normal; color: #333; text-align: center; position: sticky; top: 0; z-index: 1; border-bottom: 2px solid #ccc;}
.excel-table td { border: 1px solid #eee; padding: 6px 10px; color: #000; cursor: cell; text-align: left; }
.excel-table td:hover { outline: 2px solid #1a73e8; background: #e8f0fe; z-index: 2; position: relative;}
.excel-table tr:hover { background-color: #f9f9f9; }

/* ACORDEONES */
.cierres-section { margin-top: 20px; width: 100%; overflow-x: hidden; }
.cierre-accordion { margin-bottom: 15px; background: #ffffff; color: #000000; border-radius: 6px; overflow: hidden; border: 2px solid #ddd; width: 100%;}
.cierre-accordion summary { padding: 15px 20px; font-weight: 900; font-size: 16px; cursor: pointer; background: #f8f9fa; list-style: none; display: flex; justify-content: space-between; align-items: center; text-transform: uppercase; letter-spacing: 0.5px;}
.cierre-accordion summary::-webkit-details-marker { display: none; }
.cierre-accordion summary:after { content: '+'; font-size: 24px; font-weight: normal; color: var(--accent-red); }
.cierre-accordion[open] summary:after { content: '-'; }
.accordion-content { padding: 25px; background: #ffffff; border-top: 1px solid #ddd; font-size: 15px; line-height: 1.6; }

/* ADMIN STYLES */
.admin-sidebar a.admin-nav { display: block; padding: 12px 15px; color: #aaa; text-decoration: none; border-radius: 4px; font-size: 15px; margin-bottom: 5px; font-weight:bold;}
.admin-sidebar a.admin-nav:hover, .admin-sidebar a.admin-nav.active { background: #222; color: white;}
.card { background: var(--card-bg); padding: 30px; border-radius: 8px; border: 1px solid var(--border-color); }
.card h3 { margin-top: 0; color: var(--accent-red); border-bottom: 1px solid #333; padding-bottom: 10px;}
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; color: #ccc; font-size: 14px; font-weight: bold;}
.form-group input { width: 100%; padding: 12px; background: #111; border: 1px solid #444; color: white; border-radius: 4px; box-sizing: border-box; font-size: 15px;}
.form-group input:focus { outline: 1px solid var(--accent-red); border-color: var(--accent-red); }
.row { display: flex; gap: 20px; }
.col { flex: 1; }
.btn-primary { background: var(--accent-red); color: white; padding: 15px 20px; border: none; border-radius: 4px; cursor: pointer; width: 100%; font-size: 16px; font-weight: bold; text-transform: uppercase;}
.btn-primary:hover { opacity: 0.8; }
.btn-secondary { background: #444; color: white; padding: 15px 20px; border: none; border-radius: 4px; cursor: pointer; width: 100%; font-size: 15px; font-weight: bold;}
.btn-secondary:hover { background: #555; }
.mt-2 { margin-top: 30px; }
.lista-planes { list-style: none; padding: 0; }
.lista-planes li { background: #111; margin-bottom: 10px; padding: 15px; border-radius: 4px; border: 1px solid #333; display: flex; justify-content: space-between; align-items: center;}
.actions-group { display: flex; gap: 10px; }
.btn-delete { background: #222; border: 1px solid #555; color: #ff4747; padding: 8px 12px; border-radius: 4px; cursor: pointer; font-weight: bold;}
.btn-edit { background: #222; border: 1px solid #555; color: #4facf7; padding: 8px 12px; border-radius: 4px; cursor: pointer; font-weight: bold;}
.ql-toolbar { background: #f1f1f1; border-top-left-radius: 4px; border-top-right-radius: 4px;}
.ql-container { border-bottom-left-radius: 4px; border-bottom-right-radius: 4px; font-size: 15px; }


.banner-fibra {
    background-image: url('https://images.unsplash.com/photo-1450101499163-c8848c66ca85?auto=format&fit=crop&q=80&w=1200');
    background-size: cover;
    background-position: center;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: inset 0 0 0 1000px rgba(0,0,0,0.5); /* Oscurece la imagen para que el texto resalte */
}
.banner-fibra h2 {
    color: white;
    font-size: 55px;
    font-weight: 900;
    text-transform: none;
    margin: 0;
    font-family: Arial, sans-serif;
    letter-spacing: 1px;
}

.banner-fibra-indiv {
    background: #00a9e0;
    padding: 30px 20px;
    text-align: center;
    border-radius: 8px 8px 0 0;
    margin-bottom: 20px;
}

.grid-wrap-6 { 
    display: grid; 
    grid-template-columns: repeat(6, 1fr); 
    gap: 15px; 
    margin: 30px auto; 
    width: 100%; 
}
.grid-wrap-6 .plan-card {
    width: 100%;
    min-width: 0;
    max-width: none;
    padding: 15px 5px;
    box-shadow: none;
    border: 1px solid #ccc;
}
@media (max-width: 1200px) { .grid-wrap-6 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) { .grid-wrap-6 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .grid-wrap-6 { grid-template-columns: 1fr; } }
