/* ============================================
   LANDING PAGE ELECTRICISTA BARCELONA
   Optimizada para Google Ads
   ============================================ */

/* --- RESET & BASE --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Montserrat', 'Source Sans Pro', Arial, sans-serif;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

/* --- HEADER / NAV --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: #0a0e27;
    padding: 8px 0;
    transition: all 0.3s ease;
}

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

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

.logo img {
    height: 55px;
    width: auto;
    border-radius: 8px;
    object-fit: cover;
}

.logo-text {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.2;
}

.logo-text span {
    color: #f7c948;
    display: block;
    font-size: 0.75rem;
    font-weight: 400;
}

/* --- NAV MENU --- */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-menu .mobile-cta {
    display: none;
}

.nav-menu a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    font-weight: 600;
    transition: color 0.3s;
    position: relative;
    padding: 4px 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #f7c948;
    transition: width 0.3s;
}

.nav-menu a:hover {
    color: #f7c948;
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
}

.header-cta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-cta .phone-link {
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s;
}

.header-cta .phone-link:hover {
    color: #f7c948;
}

.header-cta .phone-link i {
    font-size: 1.1rem;
}

/* --- HERO SECTION --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: url('../img/Electricista%20Barcelona.webp') center center / cover no-repeat;
    overflow: hidden;
    padding-top: 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 14, 39, 0.85) 0%, rgba(26, 31, 58, 0.75) 50%, rgba(13, 19, 33, 0.85) 100%);
    z-index: 0;
}

.hero-overlay {
    display: none;
}

.hero .container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding-top: 40px;
    padding-bottom: 40px;
}

/* Hero Left Content */
.hero-content {
    color: #fff;
}

.hero-badge {
    display: inline-block;
    background: rgba(247, 201, 72, 0.15);
    border: 1px solid rgba(247, 201, 72, 0.3);
    color: #f7c948;
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 18px;
}

.hero-title .highlight {
    color: #f7c948;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
    line-height: 1.7;
}

.hero-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 35px;
}

.hero-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
}

.hero-features li i {
    color: #f7c948;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-family: inherit;
}

.btn-primary {
    background: #f7c948;
    color: #0a0e27;
    box-shadow: 0 4px 20px rgba(247, 201, 72, 0.35);
}

.btn-primary:hover {
    background: #e5b832;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(247, 201, 72, 0.45);
}

.btn-whatsapp {
    background: #25D366;
    color: #fff;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp:hover {
    background: #1da851;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.45);
}

.btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
    border-color: #f7c948;
    color: #f7c948;
    transform: translateY(-2px);
}

.btn i {
    font-size: 1.2rem;
}

/* Hero Right - Form */
.hero-form-wrapper {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px 35px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.hero-form-wrapper .form-title {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
}

.hero-form-wrapper .form-subtitle {
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    font-size: 0.9rem;
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.3s;
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #f7c948;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 3px rgba(247, 201, 72, 0.15);
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='rgba(255,255,255,0.5)' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    cursor: pointer;
}

.form-group select option {
    background: #1a1f3a;
    color: #fff;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.btn-submit {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #f7c948, #e5b832);
    color: #0a0e27;
    font-weight: 800;
    font-size: 1.05rem;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
    margin-top: 5px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(247, 201, 72, 0.4);
}

.checkbox-group {
    margin-bottom: 15px;
}

.checkbox-label {
    display: flex !important;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.82rem;
    font-weight: 400;
    line-height: 1.4;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    min-width: 18px;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
    transition: all 0.3s;
    position: relative;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
    background: #f7c948;
    border-color: #f7c948;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.65rem;
    color: #0a0e27;
}

.checkbox-label a {
    color: #f7c948;
    text-decoration: underline;
    font-weight: 600;
}

.checkbox-label a:hover {
    color: #e5b832;
}

.form-disclaimer {
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.75rem;
    margin-top: 15px;
}

/* --- TRUST BADGES --- */
.trust-badges {
    background: #f8f9fa;
    padding: 30px 0;
    border-bottom: 1px solid #eee;
}

.trust-badges .container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #555;
    font-size: 0.9rem;
    font-weight: 500;
}

.trust-item i {
    color: #f7c948;
    font-size: 1.4rem;
}

/* --- SERVICES SECTION --- */
.services {
    padding: 80px 0;
    background: #fff;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: #0a0e27;
    margin-bottom: 15px;
}

.section-header h2 .highlight {
    color: #f7c948;
}

.section-header p {
    color: #666;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.service-card {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 35px 25px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: #f7c948;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.service-card .icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #f7c948, #e5b832);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.service-card .icon i {
    font-size: 1.8rem;
    color: #0a0e27;
}

.service-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0a0e27;
    margin-bottom: 10px;
}

.service-card p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* --- WHY US SECTION --- */
.why-us {
    padding: 80px 0;
    background: #0a0e27;
    color: #fff;
}

.why-us .section-header h2 {
    color: #fff;
}

.why-us .section-header p {
    color: rgba(255, 255, 255, 0.6);
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.why-us-card {
    text-align: center;
    padding: 30px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s;
}

.why-us-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-3px);
}

.why-us-card .number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #f7c948;
    margin-bottom: 10px;
}

.why-us-card h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.why-us-card p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials {
    padding: 80px 0;
    background: #f8f9fa;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.testimonial-card {
    background: #fff;
    border-radius: 16px;
    padding: 30px 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
    transition: all 0.3s;
}

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

.testimonial-stars {
    color: #f7c948;
    font-size: 1.1rem;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.testimonial-text {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-text i {
    color: #f7c948;
    font-size: 0.8rem;
    opacity: 0.5;
    margin-right: 5px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
    border-top: 1px solid #eee;
    padding-top: 18px;
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f7c948, #e5b832);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    color: #0a0e27;
    flex-shrink: 0;
}

.testimonial-name {
    font-weight: 700;
    color: #0a0e27;
    font-size: 0.95rem;
}

.testimonial-location {
    color: #999;
    font-size: 0.8rem;
}

/* ===== FAQ SECTION ===== */
.faq {
    padding: 80px 0;
    background: #fff;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
}

.faq-item.active {
    border-color: #f7c948;
    box-shadow: 0 4px 15px rgba(247, 201, 72, 0.15);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    color: #0a0e27;
    text-align: left;
    transition: all 0.3s;
}

.faq-question:hover {
    background: #f8f9fa;
}

.faq-question i {
    color: #f7c948;
    font-size: 1.1rem;
    transition: transform 0.3s;
    flex-shrink: 0;
    margin-left: 15px;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 25px;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 0 25px 20px;
}

.faq-answer p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ===== CONTACT SECTION (BOTTOM) ===== */
.contact-bottom {
    padding: 80px 0;
    background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 50%, #0d1321 100%);
    color: #fff;
}

.contact-bottom .section-header h2 {
    color: #fff;
}

.contact-bottom .section-header p {
    color: rgba(255, 255, 255, 0.6);
}

.contact-bottom-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-info-card {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 25px;
    transition: all 0.3s;
}

.contact-info-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(5px);
}

.contact-info-card .icon-circle {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: rgba(247, 201, 72, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-info-card .icon-circle i {
    font-size: 1.4rem;
    color: #f7c948;
}

.contact-info-card h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.contact-info-card p,
.contact-info-card a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    transition: color 0.3s;
}

.contact-info-card a:hover {
    color: #f7c948;
}

.contact-bottom-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 10px;
}

.contact-bottom-buttons .btn {
    width: 100%;
    justify-content: center;
    padding: 18px 32px;
    font-size: 1.1rem;
}

.contact-bottom .hero-form-wrapper {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px 35px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.contact-bottom .hero-form-wrapper .form-title {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
}

.contact-bottom .hero-form-wrapper .form-subtitle {
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    font-size: 0.9rem;
    margin-bottom: 25px;
}

/* --- CTA SECTION --- */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f7c948, #e5b832);
    text-align: center;
}

.cta-section h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: #0a0e27;
    margin-bottom: 15px;
}

.cta-section p {
    color: rgba(10, 14, 39, 0.7);
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.cta-section .btn-primary {
    background: #0a0e27;
    color: #fff;
    box-shadow: 0 4px 20px rgba(10, 14, 39, 0.3);
}

.cta-section .btn-primary:hover {
    background: #1a1f3a;
}

.cta-section .btn-whatsapp {
    background: #fff;
    color: #0a0e27;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.cta-section .btn-whatsapp:hover {
    background: #f0f0f0;
}

/* --- FOOTER --- */
.footer {
    background: #0a0e27;
    color: rgba(255, 255, 255, 0.6);
    padding: 40px 0;
    text-align: center;
}

.footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-logo img {
    height: 50px;
    width: auto;
    border-radius: 6px;
    object-fit: cover;
}

.footer-logo span {
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
}

.footer-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    font-size: 0.9rem;
}

.footer-info a {
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.3s;
}

.footer-info a:hover {
    color: #f7c948;
}

.footer-copy {
    font-size: 0.8rem;
    margin-top: 10px;
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .why-us-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-bottom-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .header .container {
        flex-wrap: wrap;
        gap: 8px;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100vw;
        background: #0a0e27;
        padding: 20px 24px;
        gap: 12px;
        order: 3;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    }

    .nav-menu.open {
        display: flex;
    }

    .nav-toggle {
        display: block;
        order: 2;
        margin-left: auto;
    }

    .header-cta {
        display: none;
    }

    .nav-menu .mobile-cta {
        display: flex;
        margin-top: 10px;
        padding-top: 15px;
        border-top: 1px solid rgba(255, 255, 255, 0.15);
    }

    .nav-menu .mobile-cta a {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        width: 100%;
        padding: 14px 20px;
        background: #f7c948;
        color: #0a0e27;
        border-radius: 12px;
        font-weight: 700;
        font-size: 1rem;
    }

    .nav-menu .mobile-cta a:hover {
        background: #e5b832;
    }

    .nav-menu .mobile-cta a::after {
        display: none;
    }

    .hero {
        min-height: auto;
        padding-top: 120px;
        padding-bottom: 60px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-form-wrapper {
        padding: 30px 20px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .why-us-grid {
        grid-template-columns: 1fr;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .trust-badges .container {
        gap: 20px;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .cta-section h2 {
        font-size: 1.8rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }

    .contact-bottom-grid {
        grid-template-columns: 1fr;
    }

    .contact-bottom .hero-form-wrapper {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .logo-text {
        font-size: 0.9rem;
    }

    .header-cta .phone-link {
        font-size: 0.85rem;
    }
}

/* --- ANIMATIONS --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate {
    animation: fadeInUp 0.6s ease forwards;
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }

/* --- FLOATING WHATSAPP BUTTON --- */
.floating-whatsapp {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 999;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.8rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s;
    cursor: pointer;
}

.floating-whatsapp:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
}

/* --- FLOATING BACK TO TOP BUTTON --- */
.floating-back-top {
    position: fixed;
    bottom: 25px;
    left: 25px;
    z-index: 999;
    width: 60px;
    height: 60px;
    background: #0a0e27;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f7c948;
    font-size: 1.5rem;
    box-shadow: 0 4px 20px rgba(10, 14, 39, 0.3);
    transition: all 0.3s;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.floating-back-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.floating-back-top:hover {
    transform: scale(1.1) translateY(0);
    box-shadow: 0 6px 30px rgba(10, 14, 39, 0.4);
    background: #f7c948;
    color: #0a0e27;
}

/* --- SUCCESS MESSAGE --- */
.success-message {
    display: none;
    text-align: center;
    padding: 20px;
}

.success-message.show {
    display: block;
}

.success-message i {
    font-size: 3rem;
    color: #25D366;
    margin-bottom: 15px;
}

.success-message h3 {
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.success-message p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* --- LEGAL PAGES (Aviso Legal, Privacidad, Cookies) --- */
.legal-page {
    padding: 140px 0 60px;
    background: #f8f9fa;
    min-height: 100vh;
}

.legal-content {
    max-width: 1200px;
    margin: 0 auto;
    background: #fff;
    padding: 50px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.legal-content h1 {
    font-size: 2.2rem;
    color: #0a0e27;
    margin-bottom: 10px;
    font-weight: 800;
}

.legal-content .legal-update {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 30px;
    font-style: italic;
}

.legal-content h2 {
    font-size: 1.3rem;
    color: #0a0e27;
    margin: 30px 0 15px;
    font-weight: 700;
}

.legal-content p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.legal-content ul {
    list-style: disc;
    padding-left: 25px;
    margin-bottom: 20px;
}

.legal-content ul li {
    color: #555;
    line-height: 1.8;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.legal-content a {
    color: #f7c948;
    font-weight: 600;
}

.legal-content a:hover {
    text-decoration: underline;
}

/* --- FOOTER LEGAL LINKS --- */
.footer-legal-links {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.footer-legal-links a {
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
    transition: color 0.3s;
}

.footer-legal-links a:hover {
    color: #f7c948;
}

/* --- RESPONSIVE LEGAL --- */
@media (max-width: 768px) {
    .legal-content {
        padding: 30px 20px;
    }
    .legal-content h1 {
        font-size: 1.6rem;
    }
    .legal-content h2 {
        font-size: 1.1rem;
    }
    .footer-legal-links {
        gap: 15px;
    }
    .footer-legal-links a {
        font-size: 0.8rem;
    }
}

/* ============================================
   COOKIES BANNER (RGPD / LSSI)
   ============================================ */
.cookie-banner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.15);
    z-index: 9998;
    display: none;
    pointer-events: none;
}

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #1a1a2e;
    color: #e0e0e0;
    z-index: 9999;
    padding: 25px 30px;
    box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.3);
    display: none;
    font-family: 'Source Sans Pro', Arial, sans-serif;
}

.cookie-banner.show,
.cookie-banner-overlay.show {
    display: block;
}

.cookie-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.cookie-banner-text h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.cookie-banner-text p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #b0b0b0;
}

.cookie-banner-text a {
    color: #f7c948;
    text-decoration: underline;
}

.cookie-banner-text a:hover {
    color: #ffd966;
}

.cookie-banner-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.cookie-btn {
    padding: 12px 28px;
    border: none;
    border-radius: 6px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cookie-btn-accept {
    background: #f7c948;
    color: #1a1a2e;
}

.cookie-btn-accept:hover {
    background: #ffd966;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(247, 201, 72, 0.3);
}

.cookie-btn-reject {
    background: transparent;
    color: #b0b0b0;
    border: 1px solid #555;
}

.cookie-btn-reject:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border-color: #888;
}

.cookie-btn-config {
    background: transparent;
    color: #b0b0b0;
    border: 1px solid #555;
}

.cookie-btn-config:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border-color: #888;
}

/* --- COOKIE CONFIG PANEL --- */
.cookie-config-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: #1a1a2e;
    color: #e0e0e0;
    z-index: 10000;
    padding: 35px;
    border-radius: 12px;
    max-width: 520px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    display: none;
    opacity: 0;
    transition: all 0.3s ease;
}

.cookie-config-panel.show {
    display: block;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.cookie-config-panel h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
}

.cookie-config-option {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cookie-config-option:last-child {
    border-bottom: none;
}

.cookie-config-option-info {
    flex: 1;
}

.cookie-config-option-info h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
}

.cookie-config-option-info p {
    font-size: 0.85rem;
    color: #999;
    line-height: 1.5;
}

/* Toggle Switch */
.cookie-toggle {
    position: relative;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
    margin-top: 2px;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-toggle .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #555;
    border-radius: 24px;
    transition: 0.3s;
}

.cookie-toggle .slider::before {
    content: "";
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: 0.3s;
}

.cookie-toggle input:checked + .slider {
    background: #f7c948;
}

.cookie-toggle input:checked + .slider::before {
    transform: translateX(20px);
}

.cookie-toggle input:disabled + .slider {
    opacity: 0.6;
    cursor: not-allowed;
}

.cookie-config-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.cookie-btn-save {
    background: #f7c948;
    color: #1a1a2e;
    flex: 1;
    min-width: 140px;
}

.cookie-btn-save:hover {
    background: #ffd966;
}

/* --- RESPONSIVE COOKIE BANNER --- */
@media (max-width: 768px) {
    .cookie-banner {
        padding: 20px;
    }
    .cookie-banner-buttons {
        flex-direction: column;
        width: 100%;
    }
    .cookie-btn {
        width: 100%;
        text-align: center;
    }
    .cookie-config-panel {
        padding: 25px 20px;
        max-height: 90vh;
    }
    .cookie-config-buttons {
        flex-direction: column;
    }
    .cookie-btn-save {
        width: 100%;
    }
}
