/* 
  Aprendauto - Diseño Premium v2.0
  Paleta: Amarillo (#FFD700), Negro (#111111), Gris (#F4F4F4)
*/

:root {
    --primary: #FFD700;
    --primary-dark: #e6c200;
    --secondary: #111111;
    --secondary-light: #222222;
    --text: #333333;
    --text-light: #666666;
    --white: #ffffff;
    --bg-light: #f8f9fa;
    --transition: cubic-bezier(0.4, 0, 0.2, 1) 0.4s;
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12);
    --radius: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-light);
    color: var(--text);
    font-family: 'Outfit', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    color: var(--secondary);
    font-weight: 700;
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
    object-fit: cover;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Utilities */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    gap: 10px;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--secondary);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.btn-primary:hover {
    background-color: var(--secondary);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--secondary);
}

/* Header */
header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 55px;
}

nav ul {
    display: flex;
    gap: 40px;
}

nav ul li a {
    font-weight: 500;
    color: var(--secondary);
    font-size: 15px;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

nav ul li a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    position: relative;
    height: 90vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    background-color: var(--secondary);
    color: var(--white);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.4;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-position: center;
}

.hero .container {
    position: relative;
    z-index: 2;
    padding-top: 60px;
}

.hero-content {
    max-width: 700px;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 215, 0, 0.15);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--white);
}

.hero h1 span {
    color: var(--primary);
}

.hero p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    max-width: 550px;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
}

.stat-item h4 {
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: 5px;
}

.stat-item p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Services / Courses */
.services {
    padding: 120px 0;
    background-color: var(--white);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.section-header p {
    color: var(--text-light);
    font-size: 1.1rem;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.course-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.course-image {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.course-image img {
    width: 100%;
    height: 100%;
    transition: transform 0.6s ease;
    object-fit: contain;
    padding: 20px;
    background-color: var(--bg-light);
}

.course-card:hover .course-image img {
    transform: scale(1.1);
}

.course-category {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--primary);
    color: var(--secondary);
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.8rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.course-content {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.course-icon {
    width: 48px;
    height: 48px;
    background: var(--bg-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--secondary);
}

.course-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.course-desc {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.course-specs {
    margin-top: auto;
    background: var(--bg-light);
    border-radius: 12px;
    padding: 15px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--secondary);
    font-weight: 500;
}

.spec-item i {
    width: 16px;
    height: 16px;
    color: var(--primary-dark);
}

.course-cta {
    width: 100%;
    background: var(--secondary);
    color: var(--white);
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
}

.course-card:hover .course-cta {
    background: var(--primary);
    color: var(--secondary);
}

/* Road Context Banner */
.road-context {
    background-color: var(--secondary);
    color: var(--white);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.road-icon-bg {
    position: absolute;
    opacity: 0.05;
    font-size: 300px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

/* Map Section */
.map-container {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background-color: var(--white);
    padding: 10px;
}

.map-container iframe {
    display: block;
    width: 100%;
}

/* Footer */
footer {
    background-color: #0a0a0a;
    color: #888;
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand p {
    margin-top: 20px;
    font-size: 0.95rem;
    max-width: 300px;
}

.footer-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 24px;
    font-size: 1.1rem;
}

.contact-list li {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 0.9rem;
}

.contact-list i {
    color: var(--primary);
    min-width: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    color: var(--secondary);
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    text-align: center;
    font-size: 0.85rem;
}

/* WhatsApp Floating */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 65px;
    height: 65px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
    z-index: 2000;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(10deg);
}

/* Responsive */
/* Mobile Navigation Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--secondary);
    cursor: pointer;
    z-index: 1001;
}

/* Mobile Navigation Menu */
.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav.active {
    transform: translateX(0);
}

.mobile-nav ul {
    flex-direction: column;
    gap: 30px;
    text-align: center;
}

.mobile-nav a {
    font-size: 1.5rem;
    color: var(--secondary);
    font-weight: 600;
}

/* Responsive */
@media (max-width: 992px) {
    .navbar nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
        margin-left: auto;
        margin-right: 15px;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero {
        height: auto;
        min-height: 100vh;
        padding: 100px 0 60px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .navbar .btn-primary span {
        display: none;
    }

    .navbar .btn-primary {
        padding: 10px;
        width: 45px;
        height: 45px;
        display: flex;
        justify-content: center;
        align-items: center;
        border-radius: 50%;
    }

    .navbar .btn-primary i {
        margin: 0;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 20px;
    }

    .stat-item {
        flex: 1 1 40%;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .courses-grid {
        grid-template-columns: 1fr;
    }

    .footer-info-grid {
        grid-template-columns: 1fr;
    }

    .btn {
        width: 100%;
    }

    .hero-actions {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .hero-actions .btn {
        margin-left: 0 !important;
    }
}