/* InverCar - Estilos principales */

:root {
    --primary-color: #d4a84b;
    --primary-dark: #b8922f;
    --secondary-color: #0d0d0d;
    --dark-bg: #000000;
    --card-bg: rgba(15, 15, 15, 0.95);
    --text-light: #ffffff;
    --text-muted: #a0a0a0;
    --border-color: rgba(212, 168, 75, 0.2);
    --success: #d4a84b;
    --danger: #ef4444;
    --warning: #d4a84b;
    --gold: #d4a84b;
    --gold-light: #e8c068;
}

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

body {
    font-family: 'Raleway', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-light);
    line-height: 1.6;
}

/* Ensure all form elements inherit Raleway font */
input, textarea, select, button {
    font-family: 'Raleway', sans-serif;
}

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

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

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

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

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--text-light);
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    width: auto;
    max-width: 280px;
    object-fit: contain;
}

/* Header logo - always rectangular */
.logo .logo-header {
    display: block;
    height: 50px;
}

.logo span {
    color: var(--primary-color);
}

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

.nav a {
    color: var(--text-muted);
    transition: color 0.3s;
    font-weight: 500;
}

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

.nav li:last-child a {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    color: #000;
    padding: 10px 20px;
    border-radius: 0;
    font-weight: 600;
}

.nav li:last-child a:hover {
    box-shadow: 0 5px 20px rgba(212, 168, 75, 0.4);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 60px 60px;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

/* Geometric Pattern - Raleway Style */
.geo-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.geo-line {
    position: absolute;
    background: rgba(212,168,75,0.1);
}

.geo-line.h { height: 1px; left: 0; right: 0; }
.geo-line.v { width: 1px; top: 0; bottom: 0; }

.geo-line.h1 { top: 15%; }
.geo-line.h2 { top: 50%; }
.geo-line.h3 { top: 85%; }
.geo-line.v1 { left: 10%; }
.geo-line.v2 { left: 50%; }
.geo-line.v3 { right: 10%; }

/* Hero Background Logo */
.hero-logo-bg {
    position: absolute;
    top: 20%;
    right: 8%;
    z-index: 1;
    opacity: 0.15;
}

.hero-logo-bg img {
    width: 400px;
    height: auto;
    max-width: 40vw;
}

/* Hero Car Image */
.hero-car {
    position: absolute;
    bottom: 5%;
    right: 5%;
    z-index: 2;
    opacity: 0.85;
}

.hero-car img {
    width: 550px;
    height: auto;
    max-width: 45vw;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.5));
}

/* Minimal Chart - Raleway Style */
.minimal-chart {
    position: absolute;
    bottom: 5%;
    left: 5%;
    right: 5%;
    height: 45%;
    opacity: 0.5;
}

.minimal-chart svg {
    width: 100%;
    height: 100%;
}

/* Hero Glow */
.hero-glow {
    position: absolute;
    top: 30%;
    left: 20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(212,168,75,0.08) 0%, transparent 60%);
    border-radius: 0;
}

/* Hero Eyebrow - Raleway Style */
.hero-eyebrow {
    font-size: 12px;
    color: var(--gold);
    letter-spacing: 6px;
    text-transform: uppercase;
    margin-bottom: 30px;
    font-weight: 500;
}

/* Hero Buttons */
.hero-buttons {
    display: flex;
    gap: 18px;
}

.btn-secondary {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    padding: 17px 45px;
    font-weight: 500;
    font-size: 12px;
    text-decoration: none;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.3s;
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    background: rgba(212, 168, 75, 0.15);
    border-color: var(--gold);
    color: var(--gold);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 720px;
    text-align: left;
    margin-top: 60px;
}

.hero h1 {
    font-size: 2.6rem;
    margin-bottom: 30px;
    line-height: 1.15;
    font-weight: 200;
    letter-spacing: -1px;
}

.hero h1 span {
    font-weight: 700;
    color: var(--gold);
}

.hero p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 50px;
    line-height: 1.9;
    font-weight: 400;
    letter-spacing: 0.5px;
    max-width: 500px;
}

.btn {
    display: inline-block;
    padding: 18px 50px;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.btn-primary {
    background: var(--gold);
    color: #000000;
    box-shadow: 0 20px 50px rgba(212,168,75,0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 25px 60px rgba(212, 168, 75, 0.3);
}

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

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

/* Stats Cards */
.stats-section {
    padding: 60px 0;
    margin-top: -100px;
    position: relative;
    z-index: 2;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.stat-card {
    background: #0c0c0c;
    border-radius: 0;
    padding: 45px 35px;
    text-align: center;
    border: none;
    transition: transform 0.3s, box-shadow 0.3s;
}

.stat-card:hover {
    transform: translateY(-3px);
}

.stats-grid {
    display: grid;
    grid-template-columns: 1.4fr 1.4fr 1fr 1fr;
    gap: 2px;
    background: rgba(212,168,75,0.2);
}

@media (max-width: 900px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

.stat-card h3 {
    color: #555;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 20px;
    font-weight: 600;
}

.stat-card .value {
    font-size: 3rem;
    font-weight: 200;
    color: var(--gold);
    margin-bottom: 10px;
    letter-spacing: -2px;
}

.stat-card .label {
    color: #444;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1px;
}

/* Data Section - Financial Growth Background */
.data-section {
    padding: 80px 0;
    background:
        linear-gradient(180deg, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.92) 100%),
        url('../images/fondo-2.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

/* Rentabilidad Section - Different background */
.data-section#rentabilidad-actual {
    background:
        linear-gradient(180deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.9) 100%),
        url('../images/fondo-1.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

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

.section-title h2 {
    font-size: 2.4rem;
    margin-bottom: 10px;
    font-weight: 200;
    letter-spacing: -1px;
    line-height: 1.15;
}

.section-title p {
    color: var(--text-muted);
}

/* Explanation Content - Como Funciona */
.explanation-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.explanation-block {
    background: rgba(15, 15, 15, 0.8);
    border: 1px solid rgba(212, 168, 75, 0.2);
    padding: 40px;
    text-align: left;
}

.explanation-block:hover {
    border-color: rgba(212, 168, 75, 0.4);
}

.explanation-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

/* Image Icons for Como Funciona */
.explanation-icon-img {
    width: 100%;
    height: 180px;
    margin-bottom: 25px;
    overflow: hidden;
    border: 1px solid rgba(212, 168, 75, 0.3);
}

.explanation-icon-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.explanation-block:hover .explanation-icon-img img {
    transform: scale(1.05);
}

.explanation-block h3 {
    color: var(--gold);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.explanation-block p {
    color: #999;
    line-height: 1.8;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.explanation-block strong {
    color: var(--gold);
}

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

.explanation-list li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(212, 168, 75, 0.1);
    color: #999;
    line-height: 1.7;
    font-size: 0.95rem;
}

.explanation-list li:last-child {
    border-bottom: none;
}

.explanation-list li strong {
    color: var(--gold);
    display: block;
    margin-bottom: 5px;
}

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

.data-item {
    text-align: center;
    padding: 20px;
}

.data-item .label {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.data-item .value {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--text-light);
}

/* How It Works Section - Investment Process Background */
.how-it-works {
    padding: 80px 0;
    background:
        linear-gradient(180deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.9) 100%),
        url('../images/fondo-3.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

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

.step {
    text-align: center;
    padding: 30px;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 20px;
    color: #000;
    box-shadow: 0 5px 20px rgba(212, 168, 75, 0.3);
}

.step h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.step p {
    color: var(--text-muted);
}

/* Contact Form */
.contact-section {
    padding: 80px 0;
    background:
        linear-gradient(180deg, rgba(0,0,0,0.9) 0%, rgba(13,13,13,0.95) 100%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 600 400"><g opacity="0.1"><polyline points="0,300 100,250 200,280 300,200 400,230 500,150 600,180" stroke="%23d4a84b" stroke-width="2" fill="none"/><polyline points="0,350 100,300 200,320 300,270 400,290 500,220 600,250" stroke="%23d4a84b" stroke-width="1" fill="none" opacity="0.5"/></g></svg>');
    background-size: cover;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: linear-gradient(145deg, rgba(20, 20, 20, 0.95) 0%, rgba(10, 10, 10, 0.98) 100%);
    padding: 40px;
    border-radius: 0;
    border: 1px solid rgba(212, 168, 75, 0.3);
    backdrop-filter: blur(10px);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-family: 'Raleway', sans-serif;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 0;
    background: var(--dark-bg);
    color: var(--text-light);
    font-size: 1rem;
    font-family: 'Raleway', sans-serif !important;
    letter-spacing: 0.3px;
    transition: border-color 0.3s;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    font-family: 'Raleway', sans-serif;
    color: var(--text-muted);
    opacity: 0.7;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

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

/* Remove spinner buttons from number inputs */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

/* Footer */
.footer {
    background: var(--dark-bg);
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.footer p {
    color: var(--text-muted);
}

/* Alerts */
.alert {
    padding: 15px 20px;
    border-radius: 0;
    margin-bottom: 20px;
}

.alert-success {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid var(--success);
    color: var(--success);
}

.alert-error {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid var(--danger);
    color: var(--danger);
}

.alert-warning {
    background: rgba(245, 158, 11, 0.2);
    border: 1px solid var(--warning);
    color: var(--warning);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero {
        padding: 100px 20px 60px;
    }

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

    .hero-content {
        text-align: center;
    }

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

    .hero-tag {
        font-size: 11px;
        padding: 8px 16px;
    }

    .float-card {
        display: none;
    }

    .nav ul {
        display: none;
    }

    .stat-card .value {
        font-size: 1.8rem;
    }

    .stats-section {
        margin-top: -50px;
    }

    .header .container {
        justify-content: center;
    }
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1001;
    }

    .header .container {
        justify-content: space-between;
        position: relative;
    }

    /* Mobile Menu Active State */
    .nav.active ul {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(0, 0, 0, 0.98);
        padding: 20px;
        gap: 0;
        border-top: 1px solid var(--border-color);
        border-bottom: 1px solid var(--border-color);
    }

    .nav.active ul li {
        width: 100%;
        text-align: center;
        padding: 12px 0;
        border-bottom: 1px solid rgba(212, 168, 75, 0.1);
    }

    .nav.active ul li:last-child {
        border-bottom: none;
        padding-top: 20px;
    }

    .nav.active ul li:last-child a {
        display: inline-block;
        width: auto;
    }

    /* Sections padding */
    .data-section,
    .how-it-works {
        padding: 50px 0;
    }

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

    .section-title {
        margin-bottom: 30px;
    }

    /* Explanation blocks */
    .explanation-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .explanation-block {
        padding: 25px;
    }

    .explanation-block h3 {
        font-size: 1.1rem;
    }

    /* Steps grid */
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .step {
        padding: 25px 20px;
    }

    /* Contact form */
    .contact-form {
        padding: 20px;
    }

    /* Footer */
    .footer {
        padding: 25px 15px;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .hero {
        padding: 90px 15px 40px;
    }

    .hero h1 {
        font-size: 1.4rem;
        line-height: 1.3;
    }

    .hero p {
        font-size: 0.9rem;
    }

    .hero-eyebrow {
        font-size: 0.7rem;
    }

    .hero-buttons .btn {
        padding: 12px 20px;
        font-size: 0.85rem;
        width: 100%;
    }

    .stat-card {
        padding: 20px 15px;
    }

    .stat-card h3 {
        font-size: 9px;
        letter-spacing: 2px;
    }

    .stat-card .value {
        font-size: 1.5rem;
    }

    .stat-card .label {
        font-size: 11px;
    }

    .section-title h2 {
        font-size: 1.5rem;
    }

    .explanation-icon-img {
        height: 140px;
    }

    /* Form elements */
    .form-group input,
    .form-group textarea,
    .form-group select {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}
