        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: #f5f5f5;
            line-height: 1.6;
        }

        /* Portada - Página completa */
        .cover-page {
            min-height: 100vh;
            background: linear-gradient(135deg, #4facfe 0%, #00f2fe 50%, #667eea 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            overflow: hidden;
        }

        .cover-content {
            text-align: center;
            color: white;
            z-index: 2;
            padding: 40px;
            max-width: 900px;
        }

        .main-title {
            font-size: 4em;
            font-weight: bold;
            margin: 20px 0;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 20px;
            text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
        }

        .icon {
            font-size: 1em;
        }

        .subtitle {
            font-size: 1.4em;
            margin-top: 20px;
            opacity: 0.95;
            font-weight: 300;
        }

        .explore-hint {
            margin-top: 50px;
            font-size: 1em;
            opacity: 0.8;
            animation: bounce 2s ease-in-out infinite;
        }

        @keyframes bounce {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-10px); }
        }

        /* Contenedor principal */
        .container {
            max-width: 1200px;
            margin: 0 auto;
            background: white;
            box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
        }

        .header {
            background: linear-gradient(135deg, #4facfe 0%, #00f2fe 50%, #667eea 100%);
            color: white;
            padding: 40px;
            text-align: center;
        }

        .header h1 {
            font-size: 2.5em;
            margin-bottom: 10px;
            font-weight: 700;
        }

        .header p {
            font-size: 1.2em;
            opacity: 0.95;
        }

        .content {
            padding: 50px 40px;
        }

        .section {
            margin-bottom: 50px;
            position: relative;
        }

        .section-number {
            position: absolute;
            left: -15px;
            top: -10px;
            width: 50px;
            height: 50px;
            background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: bold;
            font-size: 1.5em;
            box-shadow: 0 4px 15px rgba(79, 172, 254, 0.4);
        }

        .section-title {
            color: #0288d1;
            font-size: 1.8em;
            margin-bottom: 20px;
            padding-left: 50px;
            font-weight: 600;
        }

        .section-content {
            background: #e3f2fd;
            padding: 30px;
            border-radius: 15px;
            border-left: 5px solid #0288d1;
        }

        .definition-box {
            background: white;
            padding: 25px;
            border-radius: 10px;
            margin-bottom: 20px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
        }

        .example-box {
            background: #e1f5fe;
            padding: 20px;
            border-radius: 10px;
            border-left: 4px solid #0288d1;
            margin: 15px 0;
            font-family: 'Courier New', monospace;
        }

        .types-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 20px;
            margin-top: 20px;
        }

        .type-card {
            background: white;
            padding: 20px;
            border-radius: 10px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
            transition: transform 0.3s ease;
            border-top: 4px solid #03a9f4;
        }

        .type-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 4px 20px rgba(3, 169, 244, 0.3);
        }

        .type-card h4 {
            color: #0277bd;
            margin-bottom: 10px;
            font-size: 1.2em;
        }

        .steps-container {
            counter-reset: step-counter;
        }

        .step {
            background: white;
            padding: 20px;
            margin: 15px 0;
            border-radius: 10px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
            position: relative;
            padding-left: 60px;
        }

        .step::before {
            counter-increment: step-counter;
            content: counter(step-counter);
            position: absolute;
            left: 15px;
            top: 50%;
            transform: translateY(-50%);
            width: 35px;
            height: 35px;
            background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: bold;
        }

        .solution-box {
            background: linear-gradient(135deg, #e1f5fe 0%, #b3e5fc 100%);
            padding: 25px;
            border-radius: 10px;
            margin: 20px 0;
            border-left: 5px solid #0288d1;
        }

        .solution-box h4 {
            color: #01579b;
            margin-bottom: 15px;
            font-size: 1.3em;
        }

        .math-expression {
            background: white;
            padding: 15px;
            margin: 10px 0;
            border-radius: 8px;
            font-family: 'Courier New', monospace;
            font-size: 1.1em;
            text-align: center;
            border: 2px solid #b3e5fc;
        }

        .application-box {
            background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
            padding: 30px;
            border-radius: 15px;
            border-left: 5px solid #1976d2;
        }

        .problem-statement {
            background: white;
            padding: 20px;
            border-radius: 10px;
            margin: 15px 0;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
        }

        .answer-highlight {
            background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
            color: white;
            padding: 20px;
            border-radius: 10px;
            text-align: center;
            font-size: 1.2em;
            font-weight: bold;
            margin-top: 20px;
        }

        .reflection-box {
            background: linear-gradient(135deg, #e8eaf6 0%, #c5cae9 100%);
            padding: 30px;
            border-radius: 15px;
            border-left: 5px solid #5c6bc0;
            font-style: italic;
        }

        .highlight {
            color: #0288d1;
            font-weight: 600;
        }

        .coordinate {
            background: #e1f5fe;
            padding: 5px 10px;
            border-radius: 5px;
            font-weight: bold;
            color: #0277bd;
        }

        /* Estilos para la calculadora interactiva */
        .calculator-section {
            background: linear-gradient(135deg, #e8eaf6 0%, #c5cae9 100%);
            padding: 30px;
            border-radius: 15px;
            border-left: 5px solid #5c6bc0;
        }

        .calculator-title {
            color: #3949ab;
            font-size: 1.5em;
            margin-bottom: 20px;
            text-align: center;
            font-weight: bold;
        }

        .input-group {
            background: white;
            padding: 25px;
            border-radius: 10px;
            margin-bottom: 20px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
        }

        .equation-input {
            margin-bottom: 20px;
        }

        .equation-input label {
            display: block;
            color: #3949ab;
            font-weight: bold;
            margin-bottom: 10px;
            font-size: 1.1em;
        }

        .input-row {
            display: flex;
            gap: 10px;
            align-items: center;
            flex-wrap: wrap;
        }

        .input-row input {
            width: 80px;
            padding: 10px;
            border: 2px solid #5c6bc0;
            border-radius: 5px;
            font-size: 1em;
            text-align: center;
        }

        .input-row input:focus {
            outline: none;
            border-color: #3949ab;
            box-shadow: 0 0 0 3px rgba(92, 107, 192, 0.1);
        }

        .input-row span {
            font-weight: bold;
            font-size: 1.2em;
            color: #3949ab;
        }

        .button-group {
            display: flex;
            gap: 15px;
            justify-content: center;
            flex-wrap: wrap;
            margin-top: 20px;
        }

        .solve-button, .clear-button {
            border: none;
            padding: 15px 40px;
            border-radius: 10px;
            font-size: 1.1em;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        }

        .solve-button {
            background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
            color: white;
        }

        .solve-button:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(79, 172, 254, 0.4);
        }

        .clear-button {
            background: linear-gradient(135deg, #536dfe 0%, #3d5afe 100%);
            color: white;
        }

        .clear-button:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(83, 109, 254, 0.4);
        }

        .solve-button:active, .clear-button:active {
            transform: translateY(0);
        }

        .solution-steps {
            background: white;
            padding: 25px;
            border-radius: 10px;
            margin-top: 20px;
            display: none;
        }

        .solution-steps.show {
            display: block;
            animation: fadeIn 0.5s ease;
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .step-title {
            background: linear-gradient(135deg, #5c6bc0 0%, #3949ab 100%);
            color: white;
            padding: 10px 15px;
            border-radius: 5px;
            font-weight: bold;
            margin: 15px 0 10px 0;
        }

        .step-content {
            padding: 15px;
            background: #e8eaf6;
            border-radius: 5px;
            margin-bottom: 10px;
            font-family: 'Courier New', monospace;
        }

        .final-answer {
            background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
            color: white;
            padding: 20px;
            border-radius: 10px;
            text-align: center;
            font-size: 1.3em;
            font-weight: bold;
            margin-top: 20px;
        }

        /* Footer styles */
        .footer {
            background: #263238;
            color: white;
            padding: 30px 40px;
        }

        .footer-grid {
            display: grid;
            grid-template-columns: 1fr auto 1fr;
            gap: 30px;
            align-items: center;
        }

        .footer-left {
            text-align: left;
        }

        .footer-left h3 {
            color: #4fc3f7;
            font-size: 1.1em;
            margin-bottom: 10px;
        }

        .footer-left p {
            font-size: 0.9em;
            line-height: 1.6;
            margin: 3px 0;
        }

        .footer-center {
            text-align: center;
        }

        .student-card {
            background: #4facfe;
            padding: 20px 30px;
            border-radius: 10px;
            display: inline-block;
        }

        .student-card .graduation-icon {
            font-size: 2em;
            margin-bottom: 5px;
        }

        .student-card .student-name {
            font-size: 1.2em;
            font-weight: bold;
        }

        .footer-right {
            text-align: right;
        }

        .footer-right p {
            font-size: 0.95em;
            margin: 5px 0;
        }

        .footer-right .course-title {
            color: #4fc3f7;
            font-weight: bold;
            margin-top: 10px;
        }

        .error-message {
            background: #ffebee;
            color: #c62828;
            padding: 15px;
            border-radius: 5px;
            border-left: 4px solid #c62828;
            margin-top: 10px;
            display: none;
        }

        .error-message.show {
            display: block;
        }

        @media print {
            .cover-page {
                page-break-after: always;
            }
            
            .container {
                box-shadow: none;
            }

            .calculator-section {
                page-break-before: always;
            }
        }

        @media (max-width: 768px) {
            .main-title {
                font-size: 2.5em;
            }

            .subtitle {
                font-size: 1.1em;
            }

            .header h1 {
                font-size: 1.8em;
            }
            
            .content {
                padding: 30px 20px;
            }
            
            .section-title {
                font-size: 1.4em;
            }

            .footer-grid {
                grid-template-columns: 1fr;
                text-align: center;
            }

            .footer-left, .footer-right {
                text-align: center;
            }

            .input-row {
                justify-content: center;
            }

            .button-group {
                flex-direction: column;
            }

            .solve-button, .clear-button {
                width: 100%;
            }
        }
