/* 
*  Miniature Certification - Main Stylesheet
*  Author: Miniature Certification Team
*  Version: 1.0
*/

/* =============== GENERAL STYLES =============== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors */
    --primary-color: #3a6ea5;
    --primary-dark: #004e98;
    --primary-light: #6a98d0;
    --secondary-color: #ff6b35;
    --secondary-light: #ff9166;
    --secondary-dark: #cc4000;
    --text-color: #333333;
    --text-light: #666666;
    --bg-light: #f5f8fa;
    --bg-dark: #2c3e50;
    --white: #ffffff;
    --black: #000000;
    --gray-light: #f1f1f1;
    --gray: #e0e0e0;
    --gray-dark: #c4c4c4;
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
    --info: #17a2b8;
    --accent-1: #6c5ce7;
    --accent-2: #00cec9;
    --accent-3: #fd79a8;
    --gradient-1: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-1) 100%);

    /* Typography */
    --heading-font: 'Montserrat', sans-serif;
    --body-font: 'Raleway', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 5rem;

    /* Border Radius */
    --border-radius-sm: 3px;
    --border-radius: 5px;
    --border-radius-lg: 10px;
    --border-radius-xl: 20px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden;
}

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

a:hover {
    color: var(--primary-dark);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    line-height: 1.3;
    color: var(--text-color);
}

h1 {
    font-size: 2.8rem;
    margin-bottom: var(--spacing-md);
}

h2 {
    font-size: 2.2rem;
    margin-bottom: var(--spacing-sm);
}

h3 {
    font-size: 1.8rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.2rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: var(--spacing-sm);
}

ul, ol {
    margin-bottom: var(--spacing-sm);
    padding-left: var(--spacing-md);
}

.course-image img {
    width: 100%;
    height: 200px; /* Altura fija para todas las imágenes */
    display: block;
    object-fit: cover; /* Mantiene la proporción y recorta si es necesario */
    object-position: center; /* Centra la imagen */
    border-radius: var(--border-radius) var(--border-radius) 0 0; /* Bordes redondeados solo arriba */
    transition: transform 0.3s ease;
}

.course-image {
    overflow: hidden;
    height: 200px;
}

.course-card:hover .course-image img {
    transform: scale(1.1); /* Efecto de zoom al pasar el cursor */
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

section {
    padding: var(--spacing-lg) 0;
    position: relative;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

/* =============== HEADER & NAVIGATION =============== */

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(58, 110, 165, 0.2);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    color: var(--text-color);
}

.logo img {
    height: 50px;
    margin-right: var(--spacing-xs);
}

.logo span {
    font-family: var(--heading-font);
    font-weight: 700;
    font-size: 1.5rem;
}

nav {
    display: flex;
    align-items: center;
}

.menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu li {
    margin-left: var(--spacing-md);
}

.menu a {
    color: var(--text-color);
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
}

.menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.menu a:hover::after,
.menu a.active::after {
    width: 100%;
}

.menu a.active {
    color: var(--primary-color);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* =============== BUTTONS =============== */

.btn {
    display: inline-block;
    padding: 10px 25px;
    border-radius: var(--border-radius);
    font-family: var(--heading-font);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
}

.btn-small {
    padding: 8px 15px;
    font-size: 0.9rem;
}

.btn-large {
    padding: 15px 35px;
    font-size: 1.1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: var(--white);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--secondary-dark);
    color: var(--white);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-light {
    background-color: var(--white);
    color: var(--primary-color);
}

.btn-light:hover {
    background-color: var(--gray-light);
}

/* Certification Levels */
.certification-levels {
    background-color: var(--color-light);
}

.certification-badge {
    height: 40px;
    width: auto;
    vertical-align: middle;
    margin-left: 10px;
    display: inline-block;
}

/* =============== PAGE HEADER =============== */

.page-header {
    background-color: var(--primary-color);
    background-image: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: calc(100px + var(--spacing-lg)) 0 var(--spacing-lg);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="%23ffffff" opacity="0.3"/></svg>');
    animation: sparkle 8s linear infinite;
}

.page-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.1) 75%, transparent 75%, transparent);
    background-size: 30px 30px;
    animation: move-bg 5s linear infinite;
    opacity: 0.3;
    z-index: 1;
}

@keyframes sparkle {
    0% { opacity: 0.3; }
    50% { opacity: 0.5; }
    100% { opacity: 0.3; }
}

@keyframes move-bg {
    0% { background-position: 0 0; }
    100% { background-position: 30px 30px; }
}

.page-header h1 {
    color: var(--white);
    margin-bottom: var(--spacing-xs);
    position: relative;
    z-index: 2;
    text-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 15px var(--primary-light), 0 0 20px var(--primary-light);
    }
    to {
        text-shadow: 0 0 10px #fff, 0 0 20px #fff, 0 0 30px var(--primary-light), 0 0 40px var(--primary-light);
    }
}

.breadcrumbs {
    color: var(--white);
    opacity: 0.8;
    font-size: 0.9rem;
}

.breadcrumbs a {
    color: var(--white);
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

/* =============== SECTION HEADERS =============== */

.section-header {
    margin-bottom: var(--spacing-lg);
}

.section-header h2 {
    position: relative;
    display: inline-block;
    margin-bottom: var(--spacing-sm);
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

.section-header.text-center h2::after {
    left: 50%;
    transform: translateX(-50%);
}

.section-header p {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
}

/* =============== FORMS =============== */

.form-group {
    margin-bottom: var(--spacing-md);
}

label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 600;
    color: var(--text-color);
}

input, textarea, select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--gray);
    border-radius: var(--border-radius);
    font-family: var(--body-font);
    font-size: 1rem;
    transition: all 0.3s ease;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(58, 110, 165, 0.2);
}

textarea {
    min-height: 120px;
    resize: vertical;
}

input[type="checkbox"], input[type="radio"] {
    width: auto;
    margin-right: var(--spacing-xs);
}

.required::after {
    content: '*';
    color: var(--danger);
    margin-left: 3px;
}

.form-error {
    color: var(--danger);
    font-size: 0.9rem;
    margin-top: 5px;
}

.form-success {
    background-color: rgba(40, 167, 69, 0.1);
    color: var(--success);
    padding: var(--spacing-sm);
    border-radius: var(--border-radius);
    margin-bottom: var(--spacing-md);
}

/* =============== FOOTER =============== */

footer {
    background-color: var(--bg-dark);
    color: var(--white);
    padding: var(--spacing-lg) 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: var(--spacing-sm);
}

.footer-logo img {
    height: 40px;
    margin-right: var(--spacing-xs);
}

.footer-logo span {
    font-family: var(--heading-font);
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--white);
}

.footer-col p {
    margin-bottom: var(--spacing-sm);
    color: rgba(255, 255, 255, 0.7);
}

.footer-col h3 {
    color: var(--white);
    margin-bottom: var(--spacing-sm);
    font-size: 1.2rem;
}

.footer-links, .contact-info {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li, .contact-info li {
    margin-bottom: var(--spacing-xs);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
}

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

.contact-info li {
    display: flex;
    align-items: flex-start;
    color: rgba(255, 255, 255, 0.7);
}

.contact-info i {
    margin-right: var(--spacing-xs);
    color: var(--primary-light);
}

.social-links {
    display: flex;
    margin-top: var(--spacing-sm);
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: var(--spacing-xs);
    color: var(--white);
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--spacing-md) 0;
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

/* =============== MODERN EFFECTS =============== */

/* Particles Canvas */
.particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Neon Effect */
.neon-effect {
    position: relative;
    transition: all 0.3s ease;
}

.neon-effect.neon-glow {
    box-shadow: 0 0 10px var(--primary-color),
               0 0 20px var(--primary-color),
               0 0 30px var(--primary-color),
               0 0 40px var(--primary-color);
    text-shadow: 0 0 5px #fff;
    z-index: 2;
}

.btn-primary.neon-effect.neon-glow {
    box-shadow: 0 0 10px var(--primary-color),
               0 0 20px var(--primary-color),
               0 0 30px var(--primary-color),
               0 0 40px var(--primary-color);
}

.btn-secondary.neon-effect.neon-glow {
    box-shadow: 0 0 10px var(--secondary-color),
               0 0 20px var(--secondary-color),
               0 0 30px var(--secondary-color),
               0 0 40px var(--secondary-color);
}

/* 3D Card Effects */
.feature-card, .testimonial-card, .course-card {
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
}

.feature-icon, .step-number, .testimonial-avatar {
    transform: translateZ(20px);
}

/* Custom Cursor */
.custom-cursor {
    position: fixed;
    width: 30px;
    height: 30px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
    transition: width 0.3s, height 0.3s, background-color 0.3s, transform 0.1s;
    mix-blend-mode: difference;
}

.cursor-dot {
    position: fixed;
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 10000;
    transition: transform 0.1s ease;
    mix-blend-mode: difference;
}

.custom-cursor.cursor-hover {
    width: 60px;
    height: 60px;
    background-color: rgba(58, 110, 165, 0.1);
    border-width: 1px;
}

.cursor-dot.cursor-hover {
    transform: translate(-50%, -50%) scale(0);
}

/* Hide default cursor when custom is active */
html:has(.custom-cursor) {
    cursor: none;
}

html:has(.custom-cursor) a,
html:has(.custom-cursor) button,
html:has(.custom-cursor) .btn,
html:has(.custom-cursor) .feature-card,
html:has(.custom-cursor) .testimonial-card {
    cursor: none;
}

.shiny-button {
    position: relative;
    overflow: hidden;
}

.shiny-button::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(60deg, rgba(255,255,255,0) 20%, rgba(255,255,255,0.1), rgba(255,255,255,0) 80%);
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { transform: scale(0) rotate(45deg); opacity: 0; }
    80% { transform: scale(0) rotate(45deg); opacity: 0.5; }
    81% { transform: scale(1) rotate(45deg); opacity: 0.5; }
    100% { transform: scale(4) rotate(45deg); opacity: 0; }
}

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

@keyframes floating {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.hero-banner {
    position: relative;
    background-color: var(--bg-dark);
    background-image: linear-gradient(135deg, var(--primary-dark) 0%, var(--bg-dark) 100%);
    padding: calc(100px + var(--spacing-xl)) 0 var(--spacing-xl);
    color: var(--white);
    overflow: hidden;
    text-align: center;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, transparent 20%, var(--bg-dark) 150%);
    opacity: 0.8;
}

.hero-banner .container {
    position: relative;
    z-index: 2;
    max-width: 1000px;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: var(--spacing-md);
    color: var(--white);
    text-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
    animation: glow 2s ease-in-out infinite alternate;
    background: linear-gradient(90deg, var(--white) 0%, #f0f8ff 50%, var(--white) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: glow 2s ease-in-out infinite alternate, textShine 5s linear infinite;
}

@keyframes textShine {
    to {
        background-position: 200% center;
    }
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-lg);
    color: rgba(255, 255, 255, 0.9);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
}

.reveal {
    position: relative;
    transform: translateY(50px);
    opacity: 0;
    transition: all 1s ease;
}

.reveal.active {
    transform: translateY(0);
    opacity: 1;
}

.typewriter {
    overflow: hidden;
    border-right: 0.15em solid var(--primary-color);
    white-space: nowrap;
    margin: 0 auto;
    letter-spacing: 0.15em;
    animation: 
        typing 3.5s steps(40, end),
        blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: var(--primary-color) }
}

/* =============== TESTIMONIALS =============== */

.testimonials {
    background-color: var(--color-light);
    padding: var(--spacing-xl) 0;
}

.testimonials-slider {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.testimonial {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: var(--spacing-md);
    transition: all 0.3s ease;
}

.testimonial:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.testimonial-content {
    margin-bottom: var(--spacing-md);
}

.testimonial-content p {
    font-style: italic;
    color: var(--text-color);
    line-height: 1.6;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: var(--spacing-sm);
}

.testimonial-author h4 {
    margin: 0;
    color: var(--primary-color);
    font-size: 1rem;
}

.testimonial-author p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-light);
}

@media screen and (max-width: 768px) {
    .testimonials-slider {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .testimonial {
        margin-bottom: var(--spacing-md);
    }
}

/* =============== RESPONSIVE DESIGN =============== */

@media screen and (max-width: 1024px) {
    .container {
        max-width: 95%;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    .container {
        max-width: 100%;
        padding: 0 var(--spacing-sm);
    }
    
    header .container {
        height: 70px;
    }
    
    .menu {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 70%;
        height: calc(100vh - 70px);
        flex-direction: column;
        background-color: var(--white);
        box-shadow: -5px 0 10px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 999;
    }
    
    .menu.active {
        right: 0;
    }
    
    .menu li {
        margin: 0;
        width: 100%;
        border-bottom: 1px solid var(--gray);
    }
    
    .menu a {
        display: block;
        padding: var(--spacing-sm);
    }
    
    .menu a::after {
        display: none;
    }
    
    .hamburger {
        display: block;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
}

@media screen and (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    h3 {
        font-size: 1.3rem;
    }
    
    section {
        padding: var(--spacing-md) 0;
    }
    
    .menu {
        width: 100%;
        top: 60px;
    }
    
    header .container {
        height: 60px;
    }
    
    .logo img {
        height: 35px;
    }
    
    .logo span {
        font-size: 1.2rem;
    }
    
    .page-header {
        padding: calc(60px + var(--spacing-md)) 0 var(--spacing-md);
    }
}
