:root {
    --primary: #0047AB; /* Azul Motor */
    --secondary: #1E3A8A; /* Azul Oscuro */
    --accent: #FACC15; /* Amarillo Tráfico */
    --text-dark: #1F2937;
    --text-light: #6B7280;
    --white: #FFFFFF;
    --bg-light: #F9FAFB;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

h1, h2, h3 {
    font-weight: 800;
    line-height: 1.2;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgb(255, 255, 255);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 15px 0;
}

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

.logo {
    display: inline-block;
    flex-direction: column;
    line-height: 1;
}
.logo-img {
    width: 200px;
    height: 100px;
    margin-right: auto;
}

.logo-euro { color: var(--primary); }
.logo-via { color: var(--accent); }
.logo-sub { font-size: 10px; letter-spacing: 2px; color: var(--text-light); margin-top: 2px; }

.nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
}

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

.btn-header {
    display: none;
}

@media (min-width: 768px) {
    .btn-header {
        display: inline-block;
    }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-align: center;
}

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

.btn-primary:hover {
    background-color: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 71, 171, 0.2);
}

.btn-yellow {
    background-color: var(--accent);
    color: var(--text-dark);
}

.btn-yellow:hover {
    background-color: #eab308;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(250, 204, 21, 0.3);
}

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

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

.btn-lg {
    padding: 18px 36px;
    font-size: 16px;
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    background-image: url('coches-peugeot.jpg.png');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    color: var(--white);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 71, 171, 0.8), rgba(0, 0, 0, 0.3));
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero .highlight {
    color: var(--accent);
}

.hero p {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero-btns {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* Stats Section */
.stats {
    background: var(--primary);
    color: var(--white);
    padding: 60px 0;
    margin-top: -50px;
    position: relative;
    z-index: 10;
    border-radius: 20px;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    text-align: center;
}

.stat-number {
    font-size: 42px;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 5px;
}

.stat-label {
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Services */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 36px;
    color: var(--primary);
    margin-bottom: 15px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

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

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.card-content {
    padding: 30px;
}

.card-content h3 {
    margin-bottom: 15px;
    color: var(--primary);
}

.link-more {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 20px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
}

/* Advantages */
.advantages {
    background-color: var(--white);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

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

.icon-box {
    width: 80px;
    height: 80px;
    background: var(--primary);
    color: var(--white);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: var(--transition);
}

.advantage-item:hover .icon-box {
    background: var(--accent);
    color: var(--text-dark);
    transform: rotate(10deg);
}

.advantage-item h3 {
    margin-bottom: 10px;
}

/* Reviews */
.google-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.verified-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #10B981;
    font-size: 14px;
    font-weight: 700;
}

/* Historias de Éxito (Bento Grid) */
.reviews {
    background-color: #f1f5f9; /* Un tono más distinguible */
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(280px, auto);
    gap: 25px;
    margin-top: 40px;
}

.bento-item {
    background: var(--white);
    padding: 35px;
    border-radius: 24px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.card-large {
    grid-row: span 2;
}

.card-wide {
    grid-column: span 2;
}

.bento-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 71, 171, 0.1);
    border-color: var(--primary);
}

.bento-badge {
    position: absolute;
    top: 25px;
    right: 25px;
    background: var(--bg-light);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    border: 1px solid rgba(0, 71, 171, 0.1);
}

.bento-item h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--secondary);
    line-height: 1.3;
}

.bento-item p {
    font-size: 15px;
    color: var(--text-light);
    margin-bottom: 25px;
    flex-grow: 1;
}

.teacher-name {
    font-weight: 700;
    transition: var(--transition);
}

.bento-item:hover .teacher-name {
    color: var(--accent);
    text-shadow: 0 0 10px rgba(250, 204, 21, 0.4);
}

.reviewer {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
}

.reviewer-info strong {
    display: block;
    font-size: 14px;
    color: var(--primary);
}

.reviewer-info span {
    font-size: 12px;
    color: var(--text-light);
}

.google-verified {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stars {
    color: #FBBF24;
    font-size: 18px;
    margin-bottom: 15px;
}

@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .card-wide {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .bento-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }
    .card-large {
        grid-row: span 1;
    }
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 50px;
    align-items: center;
}

.contact-info h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: var(--primary);
}

.contact-details {
    margin-top: 30px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.detail-item i {
    color: var(--primary);
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #20BA5A;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 80px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-brand .logo-euro { color: var(--white); }
.footer-brand p { margin-top: 20px; max-width: 300px; opacity: 0.7; }

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

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

.social-links a:hover {
    background: var(--accent);
    color: var(--text-dark);
    transform: translateY(-3px);
}

/* Contact Social Buttons */
.contact-socials {
    margin-top: 30px;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px !important;
    border-radius: 10px !important;
    width: auto !important;
    height: auto !important;
    font-size: 14px;
    font-weight: 600;
}

.social-btn.facebook {
    background: #1877F2 !important;
    color: white !important;
}

.social-btn.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%) !important;
    color: white !important;
}

.social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    opacity: 0.9;
}

.footer-links h4 { margin-bottom: 20px; }
.footer-links ul { list-style: none; }
.footer-links a { color: var(--white); text-decoration: none; opacity: 0.7; transition: var(--transition); }
.footer-links a:hover { opacity: 1; color: var(--accent); }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    font-size: 14px;
    opacity: 0.5;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
}

/* Offers Sidebar */
.offers-sidebar {
    position: fixed;
    top: 15vh;
    right: -340px; /* Oculto por defecto */
    width: 340px;
    max-height: 80vh;
    background: var(--white);
    box-shadow: -5px 0 25px rgba(0,0,0,0.15);
    border-radius: 20px 0 0 20px;
    z-index: 1001; /* Por encima de todo */
    transition: right 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
}

.offers-sidebar.open {
    right: 0;
}

.offers-toggle {
    position: absolute;
    top: 30px;
    left: -74px; /* Ligeramente más ancho para la palabra */
    width: 74px;
    height: auto;
    padding: 20px 0;
    background: #009E60; /* Verde placa L */
    border: none;
    border-radius: 10px 0 0 10px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: -5px 0 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    gap: 2px;
}

.offers-toggle:hover {
    transform: scale(1.05);
}

.offers-label {
    color: white;
    font-size: 12px;
    font-weight: 1000;
    letter-spacing: 0.5px;
}
.l-plate {
    color: white;
    font-size:52px;
    font-weight: 900;
    font-family: Arial, sans-serif;
    line-height: 1;
}

.offers-content {
    padding: 30px 20px;
    overflow-y: auto;
}

/* Custom Scrollbar for offers */
.offers-content::-webkit-scrollbar {
    width: 6px;
}
.offers-content::-webkit-scrollbar-track {
    background: #f1f5f9; 
    border-radius: 10px;
    margin: 10px 0;
}
.offers-content::-webkit-scrollbar-thumb {
    background: #cbd5e1; 
    border-radius: 10px;
}
.offers-content::-webkit-scrollbar-thumb:hover {
    background: #94a3b8; 
}

.offers-content h3 {
    color: var(--primary);
    font-size: 22px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--bg-light);
    padding-bottom: 10px;
}

.offer-item {
    background: var(--bg-light);
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 15px;
    border-left: 4px solid var(--accent);
    transition: var(--transition);
}

.offer-item:hover {
    transform: translateX(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.offer-item h4 {
    color: var(--secondary);
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: 800;
}

.offer-price {
    font-size: 28px;
    font-weight: 900;
    color: var(--primary);
    float: right;
    margin-top: -5px;
}

.offer-list {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
}

.offer-list li {
    font-size: 13px;
    color: var(--text-dark);
    margin-bottom: 5px;
    padding-left: 15px;
    position: relative;
}

.offer-list li::before {
    content: "•";
    color: var(--accent);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.tasa-notice {
    font-size: 11px;
    color: #DC2626; /* Color de advertencia distintivo */
    background: #FEF2F2;
    padding: 8px;
    border-radius: 6px;
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 5px;
    border: 1px solid #FECACA;
}

.tasa-notice i {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    margin-top: 1px;
}

.offer-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.btn-whatsapp-small {
    background: #25D366;
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-whatsapp-small:hover {
    background: #20BA5A;
    transform: translateY(-2px);
}

.btn-call-small {
    background: var(--white);
    color: var(--primary);
    border: 1px solid var(--primary);
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-call-small:hover {
    background: var(--bg-light);
    transform: translateY(-2px);
}

/* Animations */
.animate-fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 1s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease-out;
}

.animate-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .nav { 
        display: none; 
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        padding: 30px 20px;
        flex-direction: column;
        border-bottom: 2px solid var(--bg-light);
        box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    }
    
    .nav.active {
        display: flex;
    }

    .nav ul {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .mobile-menu-btn { display: block; }

    /* Ajuste de la foto en móvil para que no se corte */
    .hero { 
        text-align: center; 
        background-size: contain;
        background-position: top center;
        background-repeat: no-repeat;
        background-color: var(--primary);
        align-items: flex-end;
        padding-bottom: 80px;
    }

    .hero-overlay {
        background: linear-gradient(to bottom, rgba(0, 71, 171, 0) 0%, rgba(0, 71, 171, 0.9) 45%, var(--primary) 100%);
    }

    .hero-content {
        margin-top: 60%; /* Empuja el texto hacia la zona azul debajo de la foto */
    }

    .hero h1 { font-size: 32px; }
    .stats-grid { grid-template-columns: 1fr; gap: 30px; }
    .hero-btns { justify-content: center; }
    .contact-grid { grid-template-columns: 1fr; }
    .section-padding { padding: 60px 0; }
}