/*
    STYLE.CSS
    High-speed, dynamic theme for RapidoRecarga
    Author: RapidoCarga Digital S.L.
*/

/* --- Base Variables & Setup --- */
:root {
    --electric-blue: #007BFF;
    --dark-blue: #002B4D;
    --speed-orange: #FF6700;
    --light-grey: #F8F9FA;
    --white: #FFFFFF;
    --success-green: #28A745;
    --grey-text: #6c757d;
    
    --font-primary: 'Montserrat', sans-serif;
    --font-headings: 'Montserrat', sans-serif; /* Using a single modern font */
}

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

body {
    font-family: var(--font-primary);
    background-color: var(--light-grey);
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

.background-wave {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.05), rgba(0, 43, 77, 0.05));
    z-index: -1;
}

/* Removed Trencadís pattern */

/* --- Header --- */
.main-header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
    position: relative;
    text-align: center;
}

.logo h1 {
    font-family: var(--font-headings);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-blue);
    letter-spacing: -1px;
}

.sun-container { /* Re-purposed for a lightning icon */
    position: absolute;
    top: 1rem;
    right: 5%;
    width: 50px;
    height: 50px;
    animation: zap 1.5s ease-in-out infinite;
}

.sun { /* Re-purposed for a lightning icon */
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23007BFF"><path d="M7 2v11h3v9l7-12h-4l4-8z"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.sun::before, .sun::after {
    content: none; /* Removed sun-specific animations */
}

@keyframes zap {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2) rotate(5deg); opacity: 0.8; }
}


/* --- Hero Section & Recharge Form --- */
.hero-section {
    text-align: center;
    padding: 2rem 1rem 4rem;
}

.hero-content h2 {
    font-family: var(--font-headings);
    font-weight: 700;
    font-size: 2.5rem;
    color: var(--dark-blue);
    margin-bottom: 0.5rem;
}

.hero-content .subtitle {
    font-size: 1.2rem;
    color: var(--grey-text);
}

.recharge-form-container {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
}

.recharge-form {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 12px; /* Modern, clean radius */
    max-width: 450px;
    width: 100%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border-top: 5px solid var(--electric-blue);
    position: relative;
}

.recharge-form h3 {
    font-family: var(--font-headings);
    color: var(--dark-blue);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--dark-blue);
    font-weight: 600;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 8px; /* Modern radius */
    background-color: var(--light-grey);
    transition: all 0.3s ease;
}

.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: var(--electric-blue);
    box-shadow: 0 0 5px rgba(0,123,255,0.5);
}

.cta-button {
    width: 100%;
    padding: 1rem;
    font-size: 1.2rem;
    font-weight: bold;
    color: #fff;
    background: linear-gradient(45deg, var(--speed-orange), var(--electric-blue));
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.demo-mode {
    margin-top: 1rem;
    font-style: italic;
    color: var(--grey-text);
}

.counter {
    margin-top: 1rem;
    font-weight: bold;
    color: var(--dark-blue);
}

/* --- Operators Section --- */
.operators-section {
    padding: 4rem 1rem;
    text-align: center;
    background-color: var(--white);
}

.operators-section h3 {
    font-family: var(--font-headings);
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--dark-blue);
}

.operators-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.operators-grid span {
    background: var(--light-grey);
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    box-shadow: none;
    font-weight: 500;
    color: var(--dark-blue);
    transition: all 0.3s ease;
    border: 1px solid #ddd;
}

.operators-grid span:hover {
    transform: scale(1.05);
    background-color: var(--electric-blue);
    color: #fff;
    border-color: var(--electric-blue);
}

/* --- Section Divider --- */
.section-divider {
    height: 40px;
    background: transparent; /* A simple divider is enough for this theme */
}

/* --- Benefits Section --- */
.benefits-section {
    padding: 4rem 1rem;
    text-align: center;
    background-color: var(--light-grey);
}

.benefits-section h3 {
    font-family: var(--font-headings);
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 3rem;
    color: var(--dark-blue);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.benefit-card {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border-top: 4px solid var(--electric-blue);
}

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

.benefit-card .benefit-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 1.5rem;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* New icons for speed/efficiency */
.benefit-card:nth-child(1) .benefit-icon { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23007BFF"><path d="M15 1H9v2h6V1zm-4 13h2V8h-2v6zm8.03-6.61l1.42-1.42c-.43-.51-.9-.98-1.41-1.41l-1.42 1.42A8.962 8.962 0 0012 4c-4.97 0-9 4.03-9 9s4.03 9 9 9 9-4.03 9-9c0-1.04-.18-2.04-.5-2.97zM12 20c-3.87 0-7-3.13-7-7s3.13-7 7-7 7 3.13 7 7-3.13 7-7 7z"/></svg>'); }
.benefit-card:nth-child(2) .benefit-icon { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23007BFF"><path d="M12 1L3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5l-9-4zm0 10.99h7c-.53 4.12-3.28 7.79-7 8.94V12H5V6.3l7-3.11v8.8z"/></svg>'); }
.benefit-card:nth-child(3) .benefit-icon { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23007BFF"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-1.5 14.5L6 12l1.41-1.41L10.5 13.67l6.09-6.09L18 9l-7.5 7.5z"/></svg>'); }
.benefit-card:nth-child(4) .benefit-icon { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23007BFF"><path d="M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-2.4 12H6.4l-3.2-8H20l-2.4 8zM5.5 13h13c.28 0 .5.22.5.5s-.22.5-.5.5h-13c-.28 0-.5-.22-.5-.5s.22-.5.5-.5z"/></svg>'); }


.benefit-card h4 {
    font-family: var(--font-headings);
    color: var(--dark-blue);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

/* --- Siesta Section & Quote (Removed) --- */
.siesta-section {
    display: none;
}

/* --- Testimonials --- */
.testimonials-section {
    padding: 4rem 1rem;
    text-align: center;
    background-color: var(--white);
}

.testimonials-section h3 {
    font-family: var(--font-headings);
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 3rem;
    color: var(--dark-blue);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-card {
    background: var(--light-grey);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: none;
    position: relative;
    border-left: 5px solid var(--electric-blue);
}

.testimonial-card::before {
    content: '“';
    position: absolute;
    top: -10px;
    left: 10px;
    font-size: 5rem;
    color: var(--electric-blue);
    opacity: 0.1;
    font-family: serif;
}


.testimonial-card p {
    font-style: italic;
    margin-bottom: 1rem;
    color: #444;
}

.testimonial-card span {
    font-weight: bold;
    color: var(--dark-blue);
}

/* --- Footer --- */
.main-footer-bottom {
    background-color: var(--dark-blue);
    color: var(--light-grey);
    padding-top: 3rem;
    clip-path: none; /* Modern flat look */
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.footer-column {
    flex: 1;
    min-width: 250px;
}

.footer-column h4 {
    font-family: var(--font-headings);
    color: var(--electric-blue);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.footer-column p, .footer-column li {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

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

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

.footer-column a:hover {
    color: var(--electric-blue);
    text-decoration: underline;
}

.footer-bottom-bar {
    text-align: center;
    padding: 1rem;
    margin-top: 2rem;
    background-color: rgba(0,0,0,0.2);
    font-size: 0.9rem;
}


/* --- Policy Pages Specific Styles --- */
.policy-container {
    max-width: 900px;
    margin: 4rem auto;
    padding: 2rem 3rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.policy-container h1 {
    font-family: var(--font-headings);
    color: var(--dark-blue);
    border-bottom: 2px solid var(--electric-blue);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.policy-container h2 {
    font-family: var(--font-headings);
    color: var(--dark-blue);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.policy-container p, .policy-container li {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.policy-container ul {
    padding-left: 20px;
}

/* --- Responsiveness --- */
@media (max-width: 768px) {
    .logo h1 {
        font-size: 2rem;
    }
    .sun-container {
        width: 40px;
        height: 40px;
        top: 1rem;
    }
    .hero-content h2 {
        font-size: 2rem;
    }
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}
