/* Custom CSS for English Assist Pro */

/* ========================================
   VARIABLES Y COLORES
======================================== */
:root {
    --primary-color: #002751;         /* Azul Principal */
    --secondary-color: #2090de;       /* Azul Secundario */
    --accent-color: #73be27;          /* Verde Secundario */
    --gold-accent: #B8860B;           /* Oro Opaco */
    --white: #FFFFFF;
    --light-gray: #F8F9FA;
    --medium-gray: #6C757D;
    --dark-gray: #212529;
    
    /* Gradients */
    --primary-gradient: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    --accent-gradient: linear-gradient(135deg, var(--accent-color) 0%, #8BC34A 100%);
    
    /* Shadows */
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --box-shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.15);
    
    /* Fonts */
    --font-primary: 'Inter', 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
}

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

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--dark-gray);
    font-weight: 400;
    letter-spacing: -0.01em;
}

.section-padding {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--accent-gradient);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--medium-gray);
    max-width: 600px;
    margin: 0 auto;
}

.text-accent {
    color: var(--accent-color);
}

/* ========================================
   NAVIGATION
======================================== */
.navbar {
    background: rgba(10, 42, 67, 0.95);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    padding: 1rem 0;
}

.navbar.scrolled {
    background: var(--primary-color);
    padding: 0.5rem 0;
    box-shadow: var(--box-shadow);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.brand-text {
    font-weight: 700;
    font-size: 1.5rem;
}

/* Colores multicolor para logo por palabra */
.brand-word-1 {
    color: white; /* Principal */
}

.brand-word-2 {
    color: #73be27; /* Verde secundario */
}

.brand-word-3 {
    color: #2090de; /* Azul secundario */
}

.navbar-nav .nav-link {
    color: var(--white) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: var(--accent-color) !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
}

.cta-btn {
    background: var(--accent-gradient);
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--white);
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-hover);
    color: var(--white);
}

/* ========================================
   HERO SECTION
======================================== */
.hero-section {
    background: var(--primary-gradient);
    color: var(--white);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

/* Colores multicolor para hero title por palabra */
.hero-word-1 {
    color: white; /* Principal */
}

.hero-word-2 {
    color: #73be27; /* Verde secundario */
}

.hero-word-3 {
    color: #2090de; /* Azul secundario */
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons .btn {
    margin: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.hero-buttons .btn-primary {
    background: var(--accent-gradient);
    border: none;
}

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

.hero-image {
    position: relative;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.scroll-down {
    color: var(--white);
    font-size: 1.5rem;
    text-decoration: none;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* ========================================
   ABOUT SECTION
======================================== */
#about {
    padding-top: 100px; /* Compensar navbar fijo */
}

.about-content h3 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.features-list {
    list-style: none;
    padding: 0;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    font-weight: 500;
}

.feature-item i {
    margin-right: 1rem;
    font-size: 1.2rem;
}

.about-image img {
    border-radius: 15px;
}

/* ========================================
   SERVICES SECTION
======================================== */
#services {
    padding-top: 100px; /* Compensar navbar fijo */
}
.service-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 15px;
    box-shadow: var(--box-shadow);
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
    border-top: 4px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-hover);
    border-top-color: var(--accent-color);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

.service-icon i {
    font-size: 2rem;
    color: var(--white);
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-card h4 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--medium-gray);
    margin-bottom: 2rem;
}

/* ========================================
   FEATURES SECTION
======================================== */
.feature-box {
    padding: 2rem;
}

.feature-icon-animated {
    width: 100px;
    height: 100px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-icon-animated::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: var(--accent-gradient);
    opacity: 0;
    transform: rotate(45deg);
    transition: all 0.5s ease;
}

.feature-box:hover .feature-icon-animated::before {
    opacity: 1;
}

.feature-icon-animated i {
    font-size: 2.5rem;
    color: var(--white);
    position: relative;
    z-index: 1;
}

.feature-box h5 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

/* ========================================
   TESTIMONIALS SECTION
======================================== */
#testimonials {
    padding-top: 100px; /* Compensar navbar fijo */
}
.testimonial-card {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: 20px;
    box-shadow: var(--box-shadow);
    text-align: center;
    margin: 0 1rem;
}

.stars i {
    color: var(--gold-accent);
    margin-right: 0.25rem;
    font-size: 1.2rem;
}

.testimonial-text {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--medium-gray);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.author-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-color);
}

.author-info h6 {
    margin: 0;
    font-weight: 600;
    color: var(--primary-color);
}

.author-info span {
    color: var(--medium-gray);
    font-size: 0.9rem;
}

.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 1;
    transition: all 0.3s ease;
}

.carousel-control-prev {
    left: -75px;
}

.carousel-control-next {
    right: -75px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent-color);
    border: none;
    margin: 0 5px;
}

.carousel-indicators button.active {
    background: var(--primary-color);
}

/* ========================================
   CONTACT SECTION
======================================== */
#contact {
    padding-top: 100px; /* Compensar navbar fijo */
}

#contactForm {
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--box-shadow);
}

.form-label {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.form-control {
    border: 2px solid #E9ECEF;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.25rem rgba(46, 125, 50, 0.25);
}

.form-control.is-invalid {
    border-color: #DC3545;
}

.form-control.is-valid {
    border-color: var(--accent-color);
}

.invalid-feedback {
    color: #DC3545;
    font-size: 0.875rem;
}

#submitBtn {
    background: var(--accent-gradient);
    border: none;
    padding: 1rem 3rem;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

#submitBtn:hover {
    transform: translateY(-3px);
    box-shadow: var(--box-shadow-hover);
}

#submitBtn:disabled {
    opacity: 0.7;
    transform: none;
    box-shadow: none;
}

.btn-spinner {
    display: inline-flex;
    align-items: center;
}

.alert {
    border-radius: 10px;
    border: none;
    padding: 1rem 1.5rem;
    font-weight: 500;
}

.alert-success {
    background: rgba(46, 125, 50, 0.1);
    color: var(--accent-color);
    border-left: 4px solid var(--accent-color);
}

.alert-danger {
    background: rgba(220, 53, 69, 0.1);
    color: #DC3545;
    border-left: 4px solid #DC3545;
}

/* ========================================
   FOOTER
======================================== */
.footer {
    background: var(--primary-gradient);
    color: var(--white);
}

.footer-brand h5 {
    color: var(--accent-color);
    font-weight: 600;
}

.footer-title {
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--accent-color);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--accent-color);
    color: var(--white);
    transform: translateY(-3px);
}

.contact-info p {
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.contact-info i {
    color: var(--accent-color);
}

.copyright {
    opacity: 0.8;
}

.legal-links {
    display: flex;
    gap: 2rem;
    justify-content: end;
    flex-wrap: wrap;
}

.legal-links a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.legal-links a:hover {
    opacity: 1;
    color: var(--accent-color);
}

/* ========================================
   SCROLL TO TOP
======================================== */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--accent-gradient);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

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

/* Tablet */
@media (max-width: 991.98px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .carousel-control-prev {
        left: -40px;
    }
    
    .carousel-control-next {
        right: -40px;
    }
    
    .legal-links {
        justify-content: center;
        margin-top: 1rem;
    }
}

/* Mobile */
@media (max-width: 767.98px) {
    .section-padding {
        padding: 60px 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin: 0.5rem 0;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .feature-box {
        padding: 1rem;
        margin-bottom: 2rem;
    }
    
    .service-card {
        margin-bottom: 2rem;
    }
    
    .testimonial-author {
        flex-direction: column;
        text-align: center;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        display: none;
    }
    
    #contactForm {
        padding: 2rem 1.5rem;
    }
    
    .legal-links {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

/* Extra Small Mobile */
@media (max-width: 575.98px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .feature-icon-animated {
        width: 80px;
        height: 80px;
    }
    
    .feature-icon-animated i {
        font-size: 2rem;
    }
    
    .testimonial-card {
        padding: 2rem 1.5rem;
        margin: 0 0.5rem;
    }
}

/* ========================================
   ANIMATIONS
======================================== */

/* AOS Custom Animations */
[data-aos] {
    pointer-events: none;
}

[data-aos].aos-animate {
    pointer-events: auto;
}

/* Loading Animation */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    visibility: visible;
    transition: all 0.5s ease;
}

.loading-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid var(--white);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Pulse Animation for CTA buttons */
.pulse {
    animation: pulse-animation 2s infinite;
}

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

/* ========================================
   UTILITY CLASSES
======================================== */
.bg-gradient-primary {
    background: var(--primary-gradient);
}

.bg-gradient-accent {
    background: var(--accent-gradient);
}

.text-primary-custom {
    color: var(--primary-color);
}

.text-accent-custom {
    color: var(--accent-color);
}

.shadow-custom {
    box-shadow: var(--box-shadow);
}

.shadow-custom-hover {
    box-shadow: var(--box-shadow-hover);
}

/* Print Styles */
@media print {
    .navbar,
    .scroll-to-top,
    .hero-section,
    #contact {
        display: none;
    }
    
    .section-padding {
        padding: 20px 0;
    }
    
    .section-title {
        color: #000;
        font-size: 1.5rem;
    }
}