/* --- CAIDA DE TENSION --- */
.calc-form {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(6,49,87,0.06);
    padding: 24px 12px 12px 12px;
    margin: 0 auto 18px auto;
    max-width: 600px;
}
.calc-form .form-label {
    font-size: 1.08rem;
    font-weight: 600;
    color: var(--color-primario-mid);
}
.calc-form .form-control,
.calc-form .form-select {
    font-size: 1.15rem;
    border-radius: 10px;
    margin-bottom: 10px;
}
.calc-form .btn {
    font-size: 1.15rem;
    border-radius: 10px;
    font-weight: 700;
}
.calc-result-display {
    background: #f8fafc;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(6,49,87,0.06);
    padding: 22px 10px 10px 10px;
    max-width: 100%;
    margin: 0 auto;
    text-align: center;
}
.calc-result-display .result-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-primario-mid);
}
.calc-result-display .result-value {
    font-size: 2.1rem;
    font-weight: 700;
    color: #0c3f78;
}
.calc-result-display .result-percent {
    font-size: 1.25rem;
    font-weight: 600;
    color: #084298;
}
.calc-result-display .calc-icon {
    font-size: 1.5rem;
    vertical-align: middle;
}
/* =============================
   ESTILOS INSTITUCIONALES PARA INDEX
   Mejora de contraste y legibilidad
   ============================= */

/* Títulos principales */
 body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
        background: linear-gradient(135deg, #fff 0%, #f8f8f8 100%);
    color: var(--color-texto-claro);
    min-height: 100vh;
    overflow-x: hidden;
}
       

        /* Efecto de partículas en el fondo */
        body::before {
            content: '';
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-image:
                radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.03) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.03) 0%, transparent 50%);
            pointer-events: none;
            z-index: 0;
        }
h1, h2, h3 {
    color: var(--color-primario-mid) !important;
    font-weight: 700;
}

/* Subtítulos y descripciones */
.subtitle, .stat-label {
    color: var(--color-texto-medio) !important;
}

/* Enlaces principales */
a, .calc-card a, .enlace-calc {
    color: var(--color-primario-mid) !important;
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.2s;
}
a:hover, .calc-card a:hover, .enlace-calc:hover {
    color: var(--color-secundario) !important;
    text-decoration: underline;
}

/* Tarjetas de calculadora */
/* --- NUEVO DISEÑO PANEL CALCULADORA --- */
.main-calc-container {
    max-width: 420px;
    margin: 40px auto 0 auto;
    background: var(--color-fondo-card);
    border-radius: 18px;
    border: 1.5px solid var(--color-borde);
    box-shadow: 0 4px 24px rgba(6,49,87,0.08);
    padding: 24px 18px 12px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.calc-logo-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 10px;
}
.calc-logo-header .logo-img {
    width: 60px;
    margin-bottom: 8px;
}
.calc-display {
    width: 100%;
    background: #f3f6fa;
    border-radius: 10px;
    border: 1.2px solid var(--color-borde);
    min-height: 38px;
    font-size: 1.1rem;
    color: var(--color-primario-mid);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(6,49,87,0.04);
}
.calc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    width: 100%;
    margin-bottom: 18px;
}
.calc-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border: 1.5px solid var(--color-borde);
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(6,49,87,0.06);
    padding: 18px 0 10px 0;
    text-decoration: none;
    color: var(--color-primario-mid);
    font-weight: 600;
    font-size: 1.1rem;
    transition: background 0.18s, box-shadow 0.18s, border 0.18s;
    min-height: 90px;
    min-width: 0;
    cursor: pointer;
    outline: none;
}
.calc-btn:hover, .calc-btn:focus {
    background: #e8f0fe;
    border-color: var(--color-secundario);
    box-shadow: 0 4px 16px rgba(6,49,87,0.13);
    color: #222;
}
.calc-btn .calc-icon {
    font-size: 2.1rem;
    margin-bottom: 6px;
}
.calc-btn .calc-label {
    font-size: 1.05rem;
    font-weight: 600;
}
@media (max-width: 600px) {
    .main-calc-container {
        max-width: 98vw;
        padding: 10px 2vw 8px 2vw;
    }
    .calc-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .calc-btn {
        padding: 14px 0 8px 0;
        min-height: 70px;
        font-size: 1rem;
    }
    .calc-btn .calc-icon {
        font-size: 1.5rem;
    }
}
/* ========================================
   CALCULADORAS TÉCNICAS - TECNO ESCUELA DIGITAL
   Estilos unificados con colores institucionales
   ======================================== */

:root {
    /* Colores institucionales - Basados en la imagen de referencia */
    --color-primario-start: #063157;
    --color-primario-mid: #084298;
    --color-primario-end: #0c3f78;
    --color-secundario: #FBE200;
    --color-terciario: #fff;
    /* Colores adicionales */
    --color-texto-claro: #063157;
    --color-texto-medio: #475569;
    --color-texto-oscuro: #222;
    --color-fondo-card: #fff;
    --color-borde: #e0e7ef;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}




/* Contenedor principal */
.calc-container {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 40px auto;
    padding: 32px 24px;
    background: var(--color-fondo-card);
    border-radius: 18px;
    border: 1.5px solid var(--color-borde);
    box-shadow: 0 4px 24px rgba(6,49,87,0.08);
}

/* Títulos */

h1, h2, h3 {
    color: var(--color-primario-mid);
    font-weight: 700;
}
h1 {
    font-size: 2.2rem;
    background: linear-gradient(135deg, var(--color-primario-mid) 0%, var(--color-primario-end) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
}
h2 {
    font-size: 1.5rem;
    margin-bottom: 18px;
}
.subtitle {
    color: var(--color-texto-medio);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

/* Formularios */

.form-bg {
    border-radius: 12px;
    padding: 20px;
    border: 1.5px solid var(--color-borde);
    background: #f8f8f8;
}


.form-label {
    color: var(--color-primario-mid);
    font-weight: 500;
    margin-bottom: 8px;
}



.form-control, .form-select {
    background: #fff;
    border: 2px solid var(--color-borde);
    border-radius: 8px;
    color: var(--color-primario-mid);
    padding: 12px 15px;
    margin-bottom: 15px;
    transition: border 0.2s;
}
.form-control:focus, .form-select:focus {
    border-color: var(--color-secundario);
    box-shadow: 0 0 0 0.15rem rgba(251,226,0,0.15);
}
.form-control::placeholder {
    color: var(--color-texto-medio);
}

/* Botones */

.btn-primary {
    background: var(--color-secundario);
    color: var(--color-primario-mid);
    border: none;
    border-radius: 8px;
    font-weight: 700;
    padding: 12px 28px;
    box-shadow: 0 2px 8px rgba(251,226,0,0.08);
    transition: background 0.2s, color 0.2s;
}
.btn-primary:hover {
    background: var(--color-primario-mid);
    color: #fff;
}

/* Alertas */

.alert {
    border-radius: 12px;
    border: none;
    padding: 15px 20px;
    margin-bottom: 18px;
}
.alert-danger {
    background: #fff1f1;
    color: #c02626;
    border-left: 4px solid #ef4444;
}
.alert-success {
    background: #f1fff1;
    color: #15803d;
    border-left: 4px solid #22c55e;
}
.alert-info {
    background: #fffbe6;
    color: var(--color-primario-mid);
    border-left: 4px solid var(--color-secundario);
}

/* Resultados */

.bg-light {
    background: #fff !important;
    border-radius: 12px;
    padding: 20px;
    border: 1.5px solid var(--color-borde);
    box-shadow: 0 2px 8px rgba(6,49,87,0.06);
}
.bg-light pre {
    background: #f8f8f8;
    border-radius: 8px;
    padding: 15px;
    color: #063157;
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    line-height: 1.6;
    overflow-x: auto;
}

/* Logo */

.logo-img {
    max-width: 80px;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(6,49,87,0.10));
    transition: transform 0.3s ease;
}
.logo-img:hover {
    transform: scale(1.05) rotate(2deg);
}

/* Footer */

footer {
    margin-top: 3rem;
    padding: 20px;
    text-align: center;
    color: var(--color-texto-medio);
    font-size: 0.95rem;
    border-top: 1px solid var(--color-borde);
    background: #fff;
}
footer strong {
    color: var(--color-secundario);
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .calc-container {
        margin: 20px;
        padding: 20px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.calc-container {
    animation: fadeInUp 0.6s ease-out;
}

/* Tablas */

.table {
    color: var(--color-primario-mid);
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
}
.table thead th {
    background: var(--color-primario-mid);
    color: #fff;
    border-color: var(--color-borde);
}
.table tbody td {
    border-color: var(--color-borde);
}
/* Select2 y otros componentes */
.select2-container--default .select2-selection--single {
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--color-borde);
    border-radius: 8px;
    height: 45px;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: var(--color-terciario);
    line-height: 41px;
}

/* css calculadora/index.php */
  * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
       
        
        .main-container {
            position: relative;
            z-index: 1;
            padding: 40px 20px;
            max-width: 1400px;
            margin: 0 auto;
        }
        
        /* Header Section */
        .header-section {
            text-align: center;
            margin-bottom: 50px;
            animation: fadeInDown 0.8s ease-out;
        }
        
        .logo-container {
            margin-bottom: 30px;
        }
        
        .logo-img {
            max-width: 100px;
            height: auto;
            filter: drop-shadow(0 10px 25px rgba(255, 255, 255, 0.1));
            transition: transform 0.3s ease;
        }
        
        .logo-img:hover {
            transform: scale(1.05) rotate(2deg);
        }
        
        h1 {
            font-size: 2.5rem;
            font-weight: 700;
            background: linear-gradient(135deg, #1e293b 0%, #3b82f6 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            margin-bottom: 15px;
        }

        .subtitle {
            font-size: 1.1rem;
            color: #475569;
            font-weight: 400;
        }
        
        /* Cards Grid */
        .calculadoras-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 25px;
            margin-bottom: 40px;
        }
        
        /* Card Styles */
        .calc-card {
            background: #ffffff;
            backdrop-filter: blur(10px);
            border: 2px solid #e2e8f0;
            border-radius: 16px;
            padding: 30px 25px;
            text-decoration: none;
            color: #1e293b;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            overflow: hidden;
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            min-height: 200px;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
        }

        .calc-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, transparent 0%, rgba(59, 130, 246, 0.05) 100%);
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .calc-card:hover {
            transform: translateY(-8px);
            border-color: #3b82f6;
            box-shadow:
                0 20px 40px rgba(59, 130, 246, 0.15),
                0 0 0 1px rgba(59, 130, 246, 0.1) inset;
        }

        .calc-card:hover::before {
            opacity: 1;
        }
        
        .calc-icon {
            font-size: 3.5rem;
            margin-bottom: 20px;
            filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
            transition: transform 0.3s ease;
        }

        .calc-card:hover .calc-icon {
            transform: scale(1.1) rotate(5deg);
        }

        .calc-title {
            font-size: 1.25rem;
            font-weight: 600;
            margin-bottom: 10px;
            color: #1e293b;
        }

        .calc-description {
            font-size: 0.9rem;
            color: #64748b;
            line-height: 1.5;
        }
        
        /* Card Color Variants */
        .calc-card.primary {
            background: linear-gradient(135deg, #ffffff 0%, #dbeafe 100%);
            border-color: #93c5fd;
        }

        .calc-card.warning {
            background: linear-gradient(135deg, #ffffff 0%, #fef3c7 100%);
            border-color: #fcd34d;
        }

        .calc-card.success {
            background: linear-gradient(135deg, #ffffff 0%, #d1fae5 100%);
            border-color: #6ee7b7;
        }

        .calc-card.info {
            background: linear-gradient(135deg, #ffffff 0%, #ede9fe 100%);
            border-color: #c4b5fd;
        }

        .calc-card.danger {
            background: linear-gradient(135deg, #ffffff 0%, #fee2e2 100%);
            border-color: #fca5a5;
        }
        
        /* Badge de estado */
        .calc-badge {
            position: absolute;
            top: 15px;
            right: 15px;
            padding: 4px 10px;
            border-radius: 12px;
            font-size: 0.7rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
        
        .badge-new {
            background: linear-gradient(135deg, #10b981 0%, #059669 100%);
            color: #fff;
        }
        
        .badge-popular {
            background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
            color: #fff;
        }
        
        .badge-soon {
            background: #f1f5f9;
            color: #64748b;
            border: 1px dashed #cbd5e1;
        }
        
        /* Footer */
        .footer {
            text-align: center;
            padding: 30px 20px;
            margin-top: 60px;
            border-top: 1px solid #e2e8f0;
        }

        .footer-text {
            color: #475569;
            font-size: 0.9rem;
            margin-bottom: 10px;
        }

        .footer-credits {
            color: #64748b;
            font-size: 0.85rem;
        }

        .footer-credits strong {
            color: #1e293b;
            font-weight: 600;
        }
        
        /* Animations */
        @keyframes fadeInDown {
            from {
                opacity: 0;
                transform: translateY(-30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        .calculadoras-grid {
            animation: fadeInUp 0.8s ease-out 0.2s both;
        }
        
        /* Responsive */
        @media (max-width: 768px) {
            h1 {
                font-size: 2rem;
            }
            
            .subtitle {
                font-size: 1rem;
            }
            
            .calculadoras-grid {
                grid-template-columns: 1fr;
                gap: 20px;
            }
            
            .calc-card {
                min-height: 180px;
            }
        }
        
        /* Stats Section */
        .stats-section {
            display: flex;
            justify-content: center;
            gap: 40px;
            margin: 40px 0;
            flex-wrap: wrap;
        }
        
        .stat-item {
            text-align: center;
        }
        
        .stat-number {
            font-size: 2rem;
            font-weight: 700;
            color: #3b82f6;
            margin-bottom: 5px;
        }

        .stat-label {
            font-size: 0.9rem;
            color: #64748b;
        }

/* fin calculadora/index.php */