:root {
    --primary: #FF4D4D;
    /* PePa Red */
    --secondary: #00A8E8;
    /* Cyan/Blue */
    --yellow: #FFC107;
    /* Rentabilidad Yellow */
    --dark: #2d3436;
    --light: #f7fff7;
    --gray: #f8f9fa;
    --text-color: #333;
    --pink-light: #FF8A80;
    --container-width: 1200px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', 'Inter', sans-serif;
    color: var(--text-color);
    line-height: 1.8;
    font-size: 1.1rem;
    overflow-x: hidden;
}


.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    /* Needed for absolute positioning of footer titles */
}

/* Navbar */
.navbar {
    background: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    height: 50px;
    width: auto;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: color 0.3s;
}

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

/* Hero */
.hero {
    height: 80vh;
    background: url('pexels-dongdilac-30010786.jpg') no-repeat center center/cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

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

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 5rem;
    font-weight: 900;
    margin: 0;
    line-height: 1;
    color: var(--primary);
    text-shadow: 2px 2px 0px #fff;
}

.hero h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 300;
    letter-spacing: 2px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-transform: uppercase;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 77, 77, 0.4);
}

/* Sections */
.section {
    padding: 120px 0;
    position: relative;
}

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

.bg-blue {
    background-color: var(--secondary);
}

.text-white {
    color: white;
}

.text-white h2,
.text-white p,
.text-white li {
    color: white;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    font-weight: 900;
    text-transform: uppercase;
}

.highlight {
    color: var(--primary);
}

/* Grids */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* Concept Diagram */
.parking-diagram {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.diagram-circle {
    width: 200px;
    height: 200px;
    background: var(--yellow);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 20px;
}

.car-icon {
    font-size: 80px;
    color: black;
    margin-bottom: 10px;
}

.users {
    display: flex;
    gap: 10px;
}

.users i {
    font-size: 20px;
    color: black;
}

.diagram-text {
    text-align: center;
    font-weight: 900;
    color: var(--secondary);
    font-size: 2rem;
    line-height: 1;
}

.diagram-keywords {
    display: flex;
    flex-direction: column;
    font-size: 1.5rem;
    color: #555;
    margin-top: 10px;
}

.diagram-keywords span {
    font-weight: 900;
}

/* Benefits */
.benefits-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 30px;
}

.benefit-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 30px;
    color: black;
}

.bg-yellow {
    background-color: var(--yellow);
}

.benefit-text h3 {
    font-size: 2rem;
    margin-bottom: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.benefit-text ul {
    list-style: none;
    /* Removed bullets as per image arrow style logic, but keeping simple for now */
}

.benefit-text li {
    margin-bottom: 8px;
    font-size: 1.1rem;
    position: relative;
    padding-left: 20px;
}

.benefit-text li:before {
    content: "→";
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Functionality / Process */
.process-grid {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.process-item {
    display: flex;
    align-items: flex-start;
    gap: 30px;
}

.process-icon-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--pink-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: black;
    flex-shrink: 0;
}

.process-content h3 {
    font-size: 2rem;
    margin-bottom: 15px;
    font-weight: 900;
    /* Matching text color to diagram logic */
    text-transform: uppercase;
}

.process-content ul,
.process-content ol {
    margin-left: 20px;
}

.process-content li,
.process-content p {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

/* New Horizontal Footer Titles */
.section-footer-title {
    position: absolute;
    bottom: 20px;
    right: 20px;
    font-size: 4rem;
    /* Large size */
    font-weight: 900;
    text-transform: uppercase;
    opacity: 0.15;
    /* Subtle watermark effect */
    margin: 0;
    line-height: 1;
    pointer-events: none;
    /* Don't interfere with clicks */
    z-index: 0;
    white-space: nowrap;
}

/* Ensure content is above the watermark */
.process-grid,
.legal-grid,
.implementation-steps,
.financial-data,
.fin-mgmt-content,
.fin-mgmt-image {
    position: relative;
    z-index: 1;
}

/* Legal Section */
.legal-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-right: 0;
    /* Reset margin, no workspace needed for sidebar */
}

.legal-item {
    display: flex;
    align-items: center;
    gap: 30px;
}

.legal-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: black;
    flex-shrink: 0;
}

.legal-content h3 {
    font-size: 2rem;
    margin-bottom: 10px;
    font-weight: 900;
    text-transform: uppercase;
    color: white;
}

/* Implementation Section */
.implementation-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-left: 0;
    /* Reset margin, no workspace needed for sidebar */
}

.step-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.step-number {
    font-size: 8rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1;
    width: 100px;
    text-align: center;
}

.step-text {
    font-size: 1.5rem;
    color: white;
    font-weight: 300;
}

/* Financial Management */
.fin-mgmt-content ul {
    list-style: none;
}

.fin-mgmt-content li {
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
    padding-left: 20px;
}

.fin-mgmt-content li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--text-color);
}

/* FAQ */
.faq-item {
    margin-bottom: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    /* Important for clean collapse */
    transition: all 0.3s ease;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    cursor: pointer;
    background: white;
    width: 100%;
}

.faq-question h3 {
    margin: 0;
    font-size: 1.3rem;
    color: var(--primary);
    font-weight: 700;
}

.faq-question i {
    color: var(--secondary);
    transition: transform 0.3s ease;
}

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

/* Active State */
.faq-item.active .faq-answer {
    max-height: 500px;
    /* Arbitrary large height to allow content */
    padding-bottom: 30px;
    opacity: 1;
}

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

.faq-answer p {
    margin-bottom: 15px;
}

ul {
    padding-left: 40px;
}

.faq-answer .note {
    font-size: 0.9rem;
    color: #666;
    margin-top: 15px;
    display: block;
}

/* Financials */
.fin-title {
    font-size: 4rem;
    font-weight: 900;
    color: var(--secondary);
    line-height: .9;
    text-transform: uppercase;
}

.big-euro {
    font-size: 5rem;
    font-weight: 900;
    color: var(--secondary);
}

.financial-data h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.scenarios {
    margin: 30px 0;
}

.scenario {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.potential-box {
    background: var(--gray);
    padding: 15px;
    border-radius: 10px;
    font-weight: bold;
    font-size: 1.2rem;
    margin: 20px 0;
}

.blue-text {
    color: var(--secondary);
}

/* Footer */
footer {
    background: var(--dark);
    color: #888;
    padding: 3rem 0;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
        /* Simple hiding for mobile, ideally burger menu */
    }

    .hero h1 {
        font-size: 3rem;
    }

    .sidebar-title h2 {
        display: none;
    }

    .legal-grid {
        margin-right: 0;
    }

    .implementation-steps {
        margin-left: 0;
    }

    .sidebar-title-right h2 {
        display: none;
    }

    .legal-item,
    .step-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .step-number {
        font-size: 5rem;
    }

    .benefit-item,
    .process-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    /* Fix diagrams on mobile */
    .parking-diagram {
        transform: scale(0.8);
    }
}

/* Tablet (Landscape) */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        padding: 0 40px;
    }

    .hero h1 {
        font-size: 4rem;
    }

    .sidebar-title h2,
    .sidebar-title-right h2 {
        font-size: 2.5rem;
    }
}

/* CTA Sections with Backgrounds */
.cta-section {
    position: relative;
    padding: 250px 0;
    margin: 0;
    /* Remove default margins as now it's a full section */
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    /* Ensure flex for vertical centering of content */
    align-items: center;
    justify-content: center;
}

.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    /* Dark overlay for text readability */
    z-index: 1;
}

.cta-bg-1 {
    background-image: url('pexels-pixabay-164634.jpg');
}

.cta-bg-2 {
    background-image: url('pexels-tdcat-70912.jpg');
}

.cta-bg-3 {
    background-image: url('pexels-carlnewton-2280148.jpg');
}

.cta-bg-4 {
    background-image: url('pexels-dongdilac-30010786.jpg');
}

/* Layout Fixes for Mobile */
@media (max-width: 768px) {

    /* Fix Button Centering on Mobile */
    .btn {
        width: auto;
        max-width: 90%;
        white-space: normal;
        margin: 0 auto;
    }

    .hero-content img {
        width: 80%;
    }

    /* Adjust footer title for mobile */
    .section-footer-title {
        font-size: 2rem;
        bottom: -20px;
        opacity: 0.1;
    }

    .section-title {
        font-size: 2rem;
    }

    .fin-title {
        font-size: 2rem;
    }

    li {
        text-align: left;
    }

    ul {
        padding-left: 20px;
    }

    .section-footer-title {
        display: none;
    }

    div {
        text-align: left;
    }

    .step-number {
        text-align: left;
    }
}

/* Ensure text-center works with the new structure */
.text-center {
    text-align: center !important;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    flex-direction: column;
    /* In case we add more content */
}

/* Footer Links */
.footer-links {
    margin-bottom: 20px;
}

.footer-links a {
    color: #888;
    text-decoration: none;
    margin: 0 10px;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
    color: #aaa;
    cursor: pointer;
    transition: color 0.3s ease;
    background: none;
    border: none;
    padding: 0;
}

.modal-close:hover {
    color: var(--primary);
}

.modal-header {
    text-align: center;
    margin-bottom: 30px;
}

.modal-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
}

.modal-subtitle {
    color: #666;
    font-size: 1rem;
}

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

.form-input {
    width: 100%;
    padding: 15px;
    border: 2px solid #eee;
    border-radius: 10px;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    color: #333;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--secondary);
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
    font-size: 0.9rem;
    color: #666;
}

.form-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.btn-submit {
    width: 100%;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
}

/* Loader in button */
.btn-submit.loading {
    position: relative;
    color: transparent;
}

.btn-submit.loading::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 20px;
    height: 20px;
    border: 2px solid white;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.8s linear infinite;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}