/* 
===============================================
CSS COMPLETO - TELECOM LA ROCA CYBERPUNK THEME
===============================================
*/

/* VARIABLES CSS PERSONALIZADAS */
:root {
    --radius: 0.75rem;
    --midnight: #0a0a1a;
    --magenta: #ff00cc;
    --magenta-light: #ff3399;
    --cyan: #00f2ff;
    --cyan-light: #00ccff;
    --violet: #8b5cf6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background: var(--midnight);
    padding: 20px;
    background-image: 
        radial-gradient(ellipse at 20% 20%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(0, 242, 255, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(255, 0, 204, 0.05) 0%, transparent 70%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(15, 15, 40, 0.8);
    backdrop-filter: blur(10px);
    padding: 40px;
    box-shadow: 0 0 40px rgba(0, 242, 255, 0.1), 0 0 80px rgba(255, 0, 204, 0.05);
    border-radius: 16px;
    border: 1px solid rgba(0, 242, 255, 0.2);
}

h1 {
    color: #ffffff;
    font-size: 2.5em;
    margin-bottom: 10px;
    font-weight: 800;
    background: linear-gradient(90deg, var(--magenta) 0%, var(--cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding-bottom: 15px;
    border-bottom: 2px solid;
    border-image: linear-gradient(90deg, var(--magenta) 0%, var(--cyan) 100%) 1;
}

h2 {
    color: var(--cyan);
    font-size: 1.8em;
    margin-top: 40px;
    margin-bottom: 20px;
    padding-left: 15px;
    border-left: 4px solid var(--magenta);
    font-weight: 700;
    text-shadow: 0 0 20px rgba(0, 242, 255, 0.5);
}

h3 {
    color: var(--magenta-light);
    font-size: 1.4em;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

h4 {
    color: var(--cyan-light);
    font-size: 1.1em;
    margin-top: 20px;
    margin-bottom: 10px;
    font-weight: 600;
}

.metadata {
    background: rgba(139, 92, 246, 0.1);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    font-size: 0.95em;
    border: 1px solid rgba(139, 92, 246, 0.3);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.1);
}

.metadata p {
    margin: 8px 0;
    color: #e0e0e0;
}

.alert {
    padding: 20px 25px;
    margin: 25px 0;
    border-radius: 12px;
    border-left: 4px solid;
    backdrop-filter: blur(10px);
}

.alert-warning {
    background: rgba(255, 193, 7, 0.1);
    border-color: var(--magenta);
    color: #ffd700;
    box-shadow: 0 0 20px rgba(255, 0, 204, 0.2);
}

.alert-important {
    background: rgba(0, 242, 255, 0.1);
    border-color: var(--cyan);
    color: var(--cyan-light);
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.2);
}

.alert-caution {
    background: rgba(255, 0, 204, 0.1);
    border-color: var(--magenta);
    color: var(--magenta-light);
    box-shadow: 0 0 20px rgba(255, 0, 204, 0.2);
}

.alert-tip {
    background: rgba(139, 92, 246, 0.1);
    border-color: var(--violet);
    color: #c4b5fd;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.2);
}

.alert-success {
    background: rgba(0, 242, 255, 0.1);
    border-color: var(--cyan);
    color: var(--cyan-light);
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.2);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 0.95em;
    background: rgba(18, 18, 42, 0.6);
    border-radius: 12px;
    overflow: hidden;
}

th,
td {
    padding: 14px;
    text-align: left;
    border: 1px solid rgba(0, 242, 255, 0.2);
}

th {
    background: linear-gradient(90deg, var(--magenta) 0%, var(--cyan) 100%);
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85em;
    letter-spacing: 0.5px;
}

tr:nth-child(even) {
    background: rgba(139, 92, 246, 0.05);
}

tr:hover {
    background: rgba(0, 242, 255, 0.05);
}

ul,
ol {
    margin: 15px 0 15px 30px;
    color: #e0e0e0;
}

li {
    margin: 10px 0;
}

code {
    background: rgba(255, 0, 204, 0.1);
    padding: 3px 8px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: var(--magenta-light);
    border: 1px solid rgba(255, 0, 204, 0.3);
}

pre {
    background: rgba(10, 10, 26, 0.8);
    padding: 20px;
    border-radius: 12px;
    overflow-x: auto;
    margin: 15px 0;
    border: 1px solid rgba(0, 242, 255, 0.3);
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.1);
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
    margin-right: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-success {
    background: linear-gradient(90deg, var(--cyan) 0%, var(--violet) 100%);
    color: white;
    box-shadow: 0 0 10px rgba(0, 242, 255, 0.4);
}

.badge-warning {
    background: linear-gradient(90deg, var(--magenta) 0%, #ffd700 100%);
    color: white;
    box-shadow: 0 0 10px rgba(255, 0, 204, 0.4);
}

.badge-danger {
    background: linear-gradient(90deg, var(--magenta) 0%, #ff0066 100%);
    color: white;
    box-shadow: 0 0 10px rgba(255, 0, 204, 0.4);
}

.checklist {
    list-style: none;
    margin-left: 0;
}

.checklist li {
    padding-left: 35px;
    position: relative;
    color: #e0e0e0;
}

.checklist li:before {
    content: "☐";
    position: absolute;
    left: 0;
    font-size: 1.3em;
    color: var(--cyan);
    text-shadow: 0 0 10px var(--cyan);
}

.summary-box {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.3) 0%, rgba(118, 75, 162, 0.3) 100%);
    backdrop-filter: blur(10px);
    color: white;
    padding: 35px;
    border-radius: 16px;
    margin: 30px 0;
    border: 1px solid rgba(139, 92, 246, 0.4);
    box-shadow: 0 0 40px rgba(139, 92, 246, 0.2);
}

.summary-box h2 {
    color: white;
    border: none;
    margin-top: 0;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.metric-card {
    background: rgba(18, 18, 42, 0.8);
    backdrop-filter: blur(10px);
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(0, 242, 255, 0.3);
    transition: all 0.3s ease;
}

.metric-card:hover {
    border-color: var(--magenta);
    box-shadow: 0 0 30px rgba(255, 0, 204, 0.3);
    transform: translateY(-5px);
}

.metric-value {
    font-size: 2.5em;
    font-weight: 800;
    background: linear-gradient(90deg, var(--magenta) 0%, var(--cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.metric-label {
    color: #b0b0b0;
    font-size: 0.9em;
    margin-top: 8px;
    font-weight: 500;
}

.proposal-box {
    background: linear-gradient(135deg, rgba(17, 153, 142, 0.3) 0%, rgba(56, 239, 125, 0.3) 100%);
    backdrop-filter: blur(10px);
    color: white;
    padding: 35px;
    border-radius: 16px;
    margin: 30px 0;
    border: 1px solid rgba(0, 242, 255, 0.4);
    box-shadow: 0 0 40px rgba(0, 242, 255, 0.2);
}

.proposal-box h2,
.proposal-box h3 {
    color: white;
    border: none;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.price-highlight {
    font-size: 2.8em;
    font-weight: 900;
    text-align: center;
    margin: 25px 0;
    background: linear-gradient(90deg, var(--magenta) 0%, var(--cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@media print {
    body {
        background: white;
        color: black;
        padding: 0;
    }

    .container {
        box-shadow: none;
        padding: 20px;
        background: white;
    }

    .alert {
        page-break-inside: avoid;
    }

    table {
        page-break-inside: avoid;
    }
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .container {
        padding: 20px;
    }

    h1 {
        font-size: 2em;
    }

    h2 {
        font-size: 1.5em;
    }

    .metric-grid {
        grid-template-columns: 1fr;
    }
}

hr {
    border: none;
    border-top: 1px solid rgba(0, 242, 255, 0.3);
    margin: 40px 0;
    box-shadow: 0 0 10px rgba(0, 242, 255, 0.2);
}

.header {
    text-align: center;
    padding: 20px 0;
    margin-bottom: 30px;
}

.header-logo {
    max-width: 180px;
    height: auto;
    margin: 0 auto 20px;
    display: block;
    filter: drop-shadow(0 0 20px rgba(255, 0, 204, 0.5));
    transition: all 0.3s ease;
}

.header-logo:hover {
    filter: drop-shadow(0 0 30px rgba(0, 242, 255, 0.7));
    transform: scale(1.05);
}

.footer {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid rgba(0, 242, 255, 0.3);
    text-align: center;
    color: #b0b0b0;
    font-size: 0.9em;
}

.footer-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.footer-logo {
    max-width: 140px;
    height: auto;
    opacity: 0.8;
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.3));
}

.footer-logo:hover {
    opacity: 1;
    filter: drop-shadow(0 0 20px rgba(255, 0, 204, 0.6));
    transform: scale(1.1);
}

.footer-text {
    margin: 15px 0;
    font-weight: 600;
    color: var(--cyan-light);
    font-size: 1.1em;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 20px 0;
    border: 1px solid rgba(0, 242, 255, 0.2);
}

a {
    color: var(--cyan);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--magenta);
    text-shadow: 0 0 10px var(--magenta);
}

p {
    color: #e0e0e0;
    margin: 12px 0;
}

strong {
    color: #ffffff;
    font-weight: 700;
}

/* Scrollbar personalizado */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--midnight);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--magenta) 0%, var(--cyan) 100%);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--magenta-light) 0%, var(--cyan-light) 100%);
}

/* Selección de texto */
::selection {
    background: var(--magenta);
    color: white;
}

::-moz-selection {
    background: var(--magenta);
    color: white;
}

/* Efectos de glow */
.text-glow-magenta {
    text-shadow: 0 0 10px var(--magenta), 0 0 20px var(--magenta), 0 0 40px var(--magenta);
}

.text-glow-cyan {
    text-shadow: 0 0 10px var(--cyan), 0 0 20px var(--cyan), 0 0 40px var(--cyan);
}

.border-glow-magenta {
    box-shadow: 0 0 10px var(--magenta), inset 0 0 10px rgba(255, 0, 204, 0.1);
}

.border-glow-cyan {
    box-shadow: 0 0 10px var(--cyan), inset 0 0 10px rgba(0, 242, 255, 0.1);
}

/* Animaciones */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes glow-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-glow-pulse {
    animation: glow-pulse 2s ease-in-out infinite;
}
