/* --- VARIABLES & RESET --- */
:root {
    --rr-red: #E63946;
    /* Rojo deportivo */
    --rr-dark: #0a0a0a;
    /* Negro más profundo */
    --rr-gray: #1E1E1E;
    /* Gris taller */
    --text-main: #FFFFFF;
    --text-sec: #A0A0A0;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--rr-dark);
    color: var(--text-main);
    overflow-x: hidden;
    animation: fadeIn 1s ease-in-out;
}

html {
    scroll-behavior: smooth;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

a {
    text-decoration: none;
    color: white;
}

ul {
    list-style: none;
}

/* --- HEADER --- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: var(--text-main);
}

.logo span {
    color: var(--rr-red);
}

.nav-menu ul {
    display: flex;
    gap: 40px;
}

.nav-menu a {
    font-size: 0.9rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    transition: var(--transition);
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--rr-red);
    transition: var(--transition);
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--rr-red);
}

.cta-btn {
    background-color: var(--rr-red);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    transition: var(--transition);
    border: 2px solid var(--rr-red);
}

.cta-btn:hover {
    background-color: transparent;
    color: var(--rr-red);
    box-shadow: 0 0 30px rgba(230, 57, 70, 0.4);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: white;
}


/* --- SERVICIOS --- */
.services {
    padding: 150px 50px;
    background: linear-gradient(to bottom, transparent 0%, var(--rr-dark) 150px);
    margin-top: -150px;
    position: relative;
    z-index: 10;
}

.section-title {
    font-size: 3rem;
    text-transform: uppercase;
    margin-bottom: 80px;
    text-align: center;
    letter-spacing: 2px;
}

.section-title span {
    color: var(--rr-red);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.card {
    background: rgba(30, 30, 30, 0.6);
    backdrop-filter: blur(10px);
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
}

.card:hover {
    transform: translateY(-5px);
    border-color: rgba(230, 57, 70, 0.5);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    background: rgba(40, 40, 40, 0.8);
}

.card.active {
    border-color: var(--rr-red);
    background: rgba(230, 57, 70, 0.1);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(230, 57, 70, 0.15);
}

.card h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: white;
    transition: color 0.3s;
}

.card.active h3 {
    color: var(--rr-red);
}

.card p {
    color: var(--text-sec);
    font-size: 0.95rem;
    line-height: 1.6;
}

.card .indicator {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    width: 0%;
    background-color: var(--rr-red);
    transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.card.active .indicator {
    width: 100%;
}

.trigger-icon {
    position: absolute;
    top: 25px;
    right: 25px;
    font-size: 2.5rem;
    color: var(--rr-red);
    font-weight: 300;
    line-height: 0.8;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0.8;
}

.card:hover .trigger-icon {
    opacity: 1;
    transform: scale(1.1);
    color: white;
}

.card.active .trigger-icon {
    transform: rotate(45deg);
    color: var(--rr-red);
    opacity: 1;
}

/* --- PANEL DE ANCHO COMPLETO --- */
.full-width-panel {
    width: 100%;
    max-height: 0;
    overflow: hidden;
    background-color: #0f0f0f;
    transition: max-height 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    margin-top: 20px;
    position: relative;
}

.full-width-panel.open {
    max-height: 800px;
    border-top: 1px solid var(--rr-red);
    border-bottom: 1px solid var(--rr-red);
}

.panel-content {
    padding: 60px 50px;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease 0.1s;
}

.full-width-panel.open .panel-content {
    opacity: 1;
    transform: translateY(0);
}

.panel-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: center;
}

.panel-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.panel-text h3 {
    font-size: 2.5rem;
    color: var(--rr-red);
    margin-bottom: 20px;
    text-transform: uppercase;
}

.panel-text p {
    font-size: 1.1rem;
    color: #ddd;
    margin-bottom: 30px;
    line-height: 1.8;
}

.panel-text ul {
    margin-bottom: 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.panel-text ul li {
    color: var(--text-sec);
    position: relative;
    padding-left: 25px;
}

.panel-text ul li::before {
    content: '>';
    color: var(--rr-red);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10;
}

.close-btn:hover {
    color: var(--rr-red);
}

/* --- SECCIÓN HAZTE CLIENTE --- */
.why-choose-us {
    padding: 150px 50px;
    background: linear-gradient(to right, #0a0a0a, #111);
    position: relative;
    overflow: hidden;
}

.why-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.why-images {
    position: relative;
    height: 600px;
    width: 100%;
}

.img-main {
    position: absolute;
    top: 0;
    left: 0;
    width: 85%;
    height: 85%;
    object-fit: cover;
    border-radius: 20px;
    filter: brightness(0.7);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.img-float {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 55%;
    height: 55%;
    object-fit: cover;
    border-radius: 20px;
    border: 4px solid var(--rr-dark);
    box-shadow: -20px -20px 60px rgba(0, 0, 0, 0.8);
    z-index: 2;
    transition: var(--transition);
}

.why-images:hover .img-main {
    filter: brightness(1);
    transform: translateX(-10px);
}

.why-images:hover .img-float {
    transform: translateY(-10px) scale(1.05);
    border-color: var(--rr-red);
}

.decoration-dots {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 200px;
    height: 200px;
    background-image: radial-gradient(#333 1.5px, transparent 1.5px);
    background-size: 15px 15px;
    opacity: 0.5;
    z-index: 0;
}

.why-desc {
    color: var(--text-sec);
    margin-bottom: 40px;
    font-size: 1.1rem;
    line-height: 1.6;
}

.benefits-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 50px;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.icon-box {
    min-width: 50px;
    height: 50px;
    background: rgba(230, 57, 70, 0.1);
    border: 1px solid rgba(230, 57, 70, 0.3);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--rr-red);
    box-shadow: 0 0 15px rgba(230, 57, 70, 0.1);
    transition: var(--transition);
}

.benefit-item:hover .icon-box {
    background: var(--rr-red);
    color: white;
    box-shadow: 0 0 25px rgba(230, 57, 70, 0.4);
    transform: rotate(10deg);
}

.text-box h4 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.text-box p {
    color: #888;
    font-size: 0.95rem;
    line-height: 1.5;
}

.call-btn-large {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: var(--rr-red);
    color: white;
    padding: 18px 40px;
    border-radius: 50px;
    font-weight: 900;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    border: 2px solid var(--rr-red);
    box-shadow: 0 10px 30px rgba(230, 57, 70, 0.3);
}

.call-btn-large:hover {
    background: transparent;
    color: var(--rr-red);
    box-shadow: 0 5px 15px rgba(230, 57, 70, 0.1);
    transform: translateY(-3px);
}

/* --- SECCIÓN OTROS SERVICIOS --- */
.extra-services {
    padding: 120px 50px;
    background-color: #080808;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.extra-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 80px;
    align-items: flex-start;
}

.extra-intro {
    position: sticky;
    top: 120px;
}

.extra-intro p {
    color: var(--text-sec);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-top: 20px;
}

.red-line {
    width: 60px;
    height: 4px;
    background: var(--rr-red);
    margin: 20px 0;
    border-radius: 2px;
}

.extra-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.extra-card {
    background: rgba(30, 30, 30, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.extra-card:hover {
    transform: translateY(-10px);
    border-color: rgba(230, 57, 70, 0.5);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.card-image-box {
    height: 220px;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.card-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.extra-card:hover .card-image-box img {
    transform: scale(1.1);
}

.card-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--rr-red);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.card-body {
    padding: 30px;
    flex-grow: 1;
}

.card-body h3 {
    font-size: 1.5rem;
    color: white;
    margin-bottom: 15px;
}

.card-body p {
    color: #aaa;
    font-size: 0.95rem;
    line-height: 1.6;
}

.card-action-btn {
    width: 100%;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--rr-red);
    text-align: center;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    font-size: 0.9rem;
    transition: var(--transition);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.card-action-btn span {
    transition: transform 0.3s ease;
}

.extra-card:hover .card-action-btn {
    background: var(--rr-red);
    color: white;
}

.extra-card:hover .card-action-btn span {
    transform: translateX(5px);
}


/* --- SECCIÓN RESEÑAS GOOGLE --- */
.reviews-section {
    padding: 80px 0;
    background: #111;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.reviews-container {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 50px;
    padding: 0 50px;
}

.reviews-summary {
    min-width: 300px;
    text-align: center;
    background: rgba(255, 255, 255, 0.03);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.g-blue {
    color: #4285F4;
}

.g-red {
    color: #EA4335;
}

.g-yellow {
    color: #FBBC05;
}

.g-green {
    color: #34A853;
}

.google-logo {
    font-family: 'Product Sans', Arial, sans-serif;
    font-size: 2rem;
    font-weight: bold;
    letter-spacing: -1px;
    margin-bottom: 10px;
    background: white;
    display: inline-block;
    padding: 5px 20px;
    border-radius: 50px;
}

.score-number {
    font-size: 3.5rem;
    font-weight: 900;
    color: white;
    line-height: 1;
}

.stars-static {
    color: #FBBC05;
    font-size: 1.5rem;
    margin: 5px 0;
}

.score-text {
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 5px;
    color: #ccc;
}

.review-count {
    color: #777;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.write-review-btn {
    display: inline-block;
    padding: 10px 25px;
    border: 1px solid #444;
    border-radius: 50px;
    font-size: 0.9rem;
    transition: var(--transition);
}

.write-review-btn:hover {
    background: white;
    color: black;
}

.reviews-slider {
    flex-grow: 1;
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.slider-track {
    display: flex;
    gap: 30px;
    width: max-content;
    animation: scroll 40s linear infinite;
}

.slider-track:hover {
    animation-play-state: paused;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.review-card {
    background: #1a1a1a;
    width: 350px;
    padding: 25px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
    transition: var(--transition);
}

.review-card:hover {
    background: #222;
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.reviewer-info {
    display: flex;
    gap: 12px;
}

.avatar {
    width: 40px;
    height: 40px;
    background: #444;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    color: white;
}

.name-date h4 {
    font-size: 0.95rem;
    margin-bottom: 2px;
    color: #eee;
}

.name-date span {
    font-size: 0.8rem;
    color: #777;
}

.g-icon {
    width: 24px;
    opacity: 0.8;
}

.stars {
    color: #FBBC05;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.review-text {
    font-size: 0.95rem;
    color: #aaa;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- FORMULARIO PRESUPUESTO --- */
.contact-section {
    padding: 100px 20px;
    background-color: #050505;
    position: relative;
}

.contact-container.full-width {
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
}

.form-header {
    text-align: center;
    margin-bottom: 50px;
}

.form-header p {
    color: var(--text-sec);
    margin-top: 10px;
    font-size: 1.1rem;
}

.contact-form-wrapper.large-form {
    background: rgba(30, 30, 30, 0.4);
    padding: 50px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.form-section-title {
    color: var(--rr-red);
    font-size: 1.3rem;
    font-weight: 700;
    margin: 40px 0 25px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 15px;
}

.form-section-title:first-of-type {
    margin-top: 0;
}

.form-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.form-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.form-group label {
    color: #ddd;
    font-size: 0.9rem;
    margin-bottom: 8px;
    font-weight: 500;
    margin-left: 5px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
    background-color: #151515;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 15px;
    color: white;
    font-size: 1rem;
    font-family: inherit;
    width: 100%;
    outline: none;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--rr-red);
    box-shadow: 0 0 15px rgba(230, 57, 70, 0.2);
    background-color: #1a1a1a;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
}

.check-box {
    position: relative;
    cursor: pointer;
    font-size: 0.95rem;
    user-select: none;
    color: #ccc;
    display: flex;
    align-items: center;
    background: #1a1a1a;
    padding: 12px 20px;
    border-radius: 8px;
    border: 1px solid #333;
    transition: all 0.3s ease;
}

.check-box input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    height: 18px;
    width: 18px;
    background-color: #000;
    border: 1px solid #555;
    border-radius: 4px;
    margin-right: 12px;
    position: relative;
    display: inline-block;
    transition: all 0.2s;
}

.check-box:hover {
    border-color: #666;
    background: #222;
}

.check-box input:checked~.checkmark {
    background-color: var(--rr-red);
    border-color: var(--rr-red);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.check-box input:checked~.checkmark:after {
    display: block;
}

.check-box .checkmark:after {
    left: 5px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.check-box input:checked~span:last-child {
    color: white;
    font-weight: 600;
}

.check-box:has(input:checked) {
    border-color: var(--rr-red);
    background: rgba(230, 57, 70, 0.1);
}

.file-upload-grid {
    margin-top: 10px;
    margin-bottom: 30px;
}

.inputfile {
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    position: absolute;
    z-index: -1;
}

.inputfile+label {
    font-size: 1rem;
    font-weight: 600;
    color: #aaa;
    background-color: rgba(20, 20, 20, 0.8);
    border: 2px dashed #444;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 150px;
}

.inputfile+label .icon-upload {
    font-size: 2.5rem;
    margin-bottom: 15px;
    filter: grayscale(1);
    transition: 0.3s;
}

.inputfile:focus+label,
.inputfile+label:hover {
    background-color: rgba(230, 57, 70, 0.05);
    border-color: var(--rr-red);
    color: white;
}

.inputfile+label:hover .icon-upload {
    filter: grayscale(0);
    transform: scale(1.1);
}

.form-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
}

.privacy-check {
    color: #888;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
}

.privacy-check input {
    accent-color: var(--rr-red);
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.submit-btn {
    width: 100%;
    max-width: 400px;
    padding: 18px;
    background: var(--rr-red);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(230, 57, 70, 0.3);
}

.submit-btn:hover {
    background-color: white;
    color: var(--rr-red);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(255, 255, 255, 0.2);
}

/* =========================================
   FOOTER PREMIUM SEO
   ========================================= */
.main-footer {
    background-color: #050505;
    /* Fondo casi negro */
    color: #aaa;
    padding: 80px 0 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.95rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.2fr 1.2fr;
    /* Distribución de columnas */
    gap: 50px;
    margin-bottom: 60px;
}

/* Columna Marca */
.footer-logo {
    font-size: 2rem;
    font-weight: 900;
    color: white;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.footer-logo span {
    color: var(--rr-red);
}

.footer-desc {
    line-height: 1.6;
    margin-bottom: 25px;
    max-width: 300px;
}

.footer-desc strong {
    color: white;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
    color: white;
}

.social-links a:hover {
    background: var(--rr-red);
    transform: translateY(-3px);
}

/* Títulos de Columna */
.footer-col h3 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    /* Pequeña línea roja decorativa */
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--rr-red);
}

/* Enlaces y Listas */
.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #aaa;
    transition: 0.3s;
    position: relative;
    padding-left: 0;
}

.footer-links a:hover {
    color: var(--rr-red);
    padding-left: 5px;
    /* Efecto deslizamiento */
}

/* Contacto */
.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 18px;
    line-height: 1.5;
}

.contact-info a {
    color: #aaa;
    transition: 0.3s;
    display: flex;
    gap: 10px;
}

.contact-info a:hover {
    color: white;
}

.c-icon {
    width: 20px;
    height: 20px;
    color: var(--rr-red);
    flex-shrink: 0;
    margin-top: 2px;
}

/* Formulario Newsletter */
.newsletter-text {
    margin-bottom: 15px;
}

.footer-form {
    display: flex;
    background: #151515;
    border: 1px solid #333;
    border-radius: 50px;
    padding: 5px;
    margin-bottom: 20px;
}

.footer-form input {
    background: transparent;
    border: none;
    color: white;
    padding: 10px 15px;
    width: 100%;
    outline: none;
}

.footer-form button {
    background: var(--rr-red);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-form button:hover {
    background: white;
    color: black;
}

.brand-badges {
    font-size: 0.85rem;
    color: #666;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 1px;
}

/* Footer Bottom (Legal) */
.footer-bottom {
    background: #020202;
    padding: 25px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    flex-wrap: wrap;
    gap: 20px;
}

.legal-links {
    display: flex;
    gap: 20px;
}

.legal-links a {
    font-size: 0.85rem;
    color: #666;
    transition: 0.3s;
}

.legal-links a:hover {
    color: white;
}

/* Responsive Footer */
@media (max-width: 1024px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
        /* 2 columnas en tablet */
    }
}

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        /* 1 columna en móvil */
        gap: 40px;
        padding: 0 20px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        padding: 25px 20px;
    }
}

/* --- LOADER --- */
body.loading {
    overflow: hidden;
}

#loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease-out;
}

#loader-overlay.fade-out {
    opacity: 0;
    pointer-events: none;
}

/* =========================================
   ESTILOS KIT SPORT (CORREGIDO)
   ========================================= */

/* Hero */
.page-hero {
    /* CORRECCIÓN: Pantalla completa */
    height: 100vh;
    min-height: 600px;
    width: 100%;
    position: relative;
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), var(--rr-dark));
}

.hero-content-static {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-content-static h1 {
    font-size: 5rem;
    margin: 0;
    font-weight: 900;
    line-height: 1;
}

.hero-content-static h1 span {
    color: var(--rr-red);
}

.hero-content-static p {
    font-size: 1.2rem;
    color: #fff;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-top: 10px;
}

/* Sección Materiales */
.materials-section {
    padding: 80px 20px;
    background-color: var(--rr-dark);
}

.intro-text-center {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
}

.lead-text {
    font-size: 1.2rem;
    color: #ccc;
    margin-top: 10px;
}

.materials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.mat-card {
    background: rgba(30, 30, 30, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    transition: 0.3s;
}

.mat-card:hover {
    transform: translateY(-5px);
    border-color: var(--rr-red);
}

.mat-card h3 {
    color: white;
    margin: 20px 0 10px 0;
    font-size: 1.4rem;
}

.mat-card p {
    color: #888;
    line-height: 1.6;
}

.icon-big {
    font-size: 3rem;
    margin-bottom: 10px;
}

/* Estilo especial para la tarjeta Carbono */
.carbon-bg {
    background: radial-gradient(circle at center, #222 0%, #000 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-image: linear-gradient(45deg, #111 25%, transparent 25%, transparent 75%, #111 75%, #111),
        linear-gradient(45deg, #111 25%, transparent 25%, transparent 75%, #111 75%, #111);
    background-size: 10px 10px;
    background-position: 0 0, 5px 5px;
}

/* Slider CSS */
.comparison-section {
    padding: 80px 20px;
    background: #0f0f0f;
    text-align: center;
}

.section-subtitle {
    color: var(--rr-red);
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.comparison-slider {
    position: relative;
    width: 100%;
    max-width: 900px;
    height: 500px;
    margin: 0 auto;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    cursor: pointer;
    touch-action: none;
    user-select: none;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
}

.c-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.c-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.after-img {
    width: 50%;
    z-index: 2;
    border-right: 3px solid var(--rr-red);
    background: #111;
}

.after-img img {
    max-width: none;
}

.handle {
    position: absolute;
    top: 0;
    left: 50%;
    height: 100%;
    width: 40px;
    transform: translateX(-50%);
    z-index: 10;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.handle-line {
    width: 2px;
    height: 100%;
    background: var(--rr-red);
    box-shadow: 0 0 10px black;
}

.handle-circle {
    position: absolute;
    top: 50%;
    width: 40px;
    height: 40px;
    background: var(--rr-red);
    border: 2px solid white;
    border-radius: 50%;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 15px rgba(230, 57, 70, 0.8);
    font-weight: bold;
}

.label-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 12px;
    border-radius: 5px;
    font-weight: bold;
    z-index: 5;
}

.badge-after {
    left: auto;
    right: 0;
    background: var(--rr-red);
}

/* Grid Marcas (Brands Showcase) */
.brands-showcase {
    padding: 100px 20px;
    background-color: #050505;
}

.brands-intro {
    text-align: center;
    color: #888;
    max-width: 600px;
    margin: 0 auto 50px auto;
}

.brands-grid-layout {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.brand-item {
    height: 300px;
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    border: 1px solid rgb(0, 0, 0); /* <-- ESTA ES LA LÍNEA A ELIMINAR */
    transition: 0.4s;
}

.brand-item:hover {
    transform: scale(0.98);
    border-color: var(--rr-red);
}

.brand-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
}

.brand-overlay h3 {
    font-size: 2rem;
    color: white;
    margin-bottom: 5px;
    font-weight: 900;
    font-style: italic;
}

.brand-overlay p {
    color: var(--rr-red);
    font-weight: bold;
    text-transform: uppercase;
}

/* Item ancho para superdeportivos */
.brand-item.wide {
    grid-column: span 2;
    height: 350px;
}

/* Sección Homologación */
.homologation-section {
    background: var(--rr-red);
    padding: 80px 20px;
    color: white;
}

.homologation-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.homologation-text h2 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 20px;
    color: white;
}

.homologation-text p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    opacity: 0.9;
}

.check-list {
    list-style: none;
    font-size: 1.1rem;
    font-weight: bold;
}

.check-list li {
    margin-bottom: 10px;
}

.homologation-badge {
    min-width: 200px;
    height: 200px;
    border: 4px solid white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: rotate(-10deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.badge-circle {
    text-align: center;
    display: flex;
    flex-direction: column;
}

.badge-circle span {
    font-size: 0.9rem;
    letter-spacing: 2px;
}

.badge-circle strong {
    font-size: 1.5rem;
    font-weight: 900;
    line-height: 1.2;
    margin: 5px 0;
}

/* Sección Legado */
.legacy-section {
    padding: 100px 20px;
    background: #0a0a0a;
    text-align: center;
}

.legacy-content {
    max-width: 800px;
    margin: 0 auto;
}

.legacy-content p {
    color: #aaa;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 30px;
}


/* =========================================
   RESPONSIVE & MEDIA QUERIES
   ========================================= */

@media (max-width: 1024px) {
    .hero h1 {
        font-size: 6rem;
    }

    .panel-content {
        padding: 40px;
    }

    .why-wrapper {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .why-images {
        height: 400px;
        margin-bottom: 20px;
    }

    .section-title {
        text-align: center !important;
    }

    .why-content {
        text-align: center;
    }

    .benefit-item {
        text-align: left;
    }

    .call-btn-large {
        width: 100%;
        justify-content: center;
    }

    .extra-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .extra-intro {
        position: static;
        text-align: center;
    }

    .extra-intro h2 {
        text-align: center !important;
    }

    .red-line {
        margin: 20px auto;
    }

    .reviews-container {
        flex-direction: column;
        padding: 0 20px;
    }

    .reviews-summary {
        width: 100%;
    }

    .reviews-slider {
        width: 100%;
    }
}

@media (max-width: 768px) {
    header {
        padding: 15px 20px;
        background: rgba(10, 10, 10, 0.95);
    }

    .logo {
        font-size: 1.4rem;
    }

    header .cta-btn {
        padding: 8px 20px;
        font-size: 0.7rem;
    }

    .hamburger {
        display: block;
        z-index: 101;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        background-color: var(--rr-dark);
        width: 100%;
        height: 100vh;
        text-align: center;
        transition: 0.3s;
        z-index: 100;
        display: flex;
        justify-content: center;
        align-items: center;
        padding-top: 80px;
    }

    .nav-menu ul {
        flex-direction: column;
        gap: 30px;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu a {
        font-size: 1.5rem;
    }

    /* HOME HERO MOBILE FIX */
    .hero {
        min-height: 100vh;
    }

    .hero h1 {
        font-size: 15vw;
        /* Un pelín más grande */
        top: 10%;
        /* LO SUBIMOS: Para que no moleste al texto "Pasión por el motor" */
        transform: translateY(0);
        opacity: 0.15 !important;
        /* Más visible (estaba en 0.05 y casi no se veía) */
        margin: 0;
        line-height: 1;
        width: 100%;
        /* Asegurar que centra bien */
    }

    /* Ajuste extra para separar el texto principal de las letras de fondo */
    .hero-overlay-text {
        top: 35%;
        /* Bajamos un poco el contenido principal para separarlo del título de fondo */
    }

    .hero-overlay-text {
        top: 30%;
        padding: 0 15px;
        width: 100%;
    }

    .hero-overlay-text h2 {
        font-size: 2.2rem;
        line-height: 1.1;
    }

    .hero-overlay-text p {
        font-size: 1rem;
        max-width: 90%;
    }

    .hero-overlay-text .cta-btn {
        width: auto;
        display: inline-block;
    }

    .car-container {
        top: 10%;
        height: 90%;
    }

    .services {
        padding: 60px 20px;
        margin-top: -50px;
        background: linear-gradient(to bottom, transparent 0%, var(--rr-dark) 80px);
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }

    .grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .card {
        padding: 25px;
    }

    /* PANEL DESPLEGABLE MOBILE */
    .full-width-panel.open {
        max-height: 2000px;
    }

    .panel-content {
        padding: 30px 20px;
    }

    .panel-grid {
        display: flex;
        flex-direction: column;
        gap: 30px;
    }

    .panel-image {
        width: 100%;
        order: -1;
    }

    .panel-image img {
        height: 250px;
    }

    .panel-text {
        width: 100%;
    }

    .panel-text h3 {
        font-size: 1.8rem;
        margin-top: 0;
    }

    .panel-text ul {
        grid-template-columns: 1fr;
    }

    .close-btn {
        top: 10px;
        right: 10px;
        background: rgba(0, 0, 0, 0.5);
        width: 40px;
        height: 40px;
        border-radius: 50%;
    }

    /* FORMULARIO MOBILE */
    .contact-form-wrapper.large-form {
        padding: 25px;
    }

    .form-grid-3,
    .form-grid-2 {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .form-section-title {
        font-size: 1.1rem;
        margin-top: 30px;
    }

    .check-box {
        width: 100%;
    }

    /* --- KIT SPORT MOBILE FIXES --- */
    .hero-content-static h1 {
        font-size: 3rem;
    }

    /* CORRECCIÓN GRID MARCAS (Para que se vean más imágenes) */
    .brands-grid-layout {
        grid-template-columns: 1fr 1fr;
        /* 2 columnas en vez de 1 */
        gap: 10px;
    }

    .brand-item {
        height: 150px;
        /* Más bajitas para ver más */
    }

    .brand-item.wide {
        grid-column: span 2;
        height: 180px;
    }

    .brand-overlay {
        padding: 15px;
    }

    .brand-overlay h3 {
        font-size: 1.1rem;
    }

    .brand-overlay p {
        font-size: 0.7rem;
    }

    /* Resto Kit Sport */
    .homologation-wrapper {
        flex-direction: column;
        text-align: center;
    }

    .check-list {
        display: inline-block;
        text-align: left;
    }

    .comparison-slider {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .why-images {
        height: 300px;
    }

    .img-main {
        width: 90%;
    }

    .img-float {
        width: 60%;
        bottom: -20px;
    }

    header .cta-btn {
        display: none;
    }

    /* Ocultar btn header en pantallas muy chicas */
    .logo {
        font-size: 1.5rem;
    }
}





/* =========================================
   ESTILOS PÁGINA CHAPA Y PINTURA
   ========================================= */

/* Hero Específico con imagen de fondo */
.paint-hero {
    background-image: url('https://images.unsplash.com/photo-1625047509168-a7026f36de04?q=80&w=1600&auto=format&fit=crop');
    /* Imagen de pintura profesional oscura */
    background-size: cover;
    background-position: center;
    height: 70vh;
    /* Un poco menos alto que la home */
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-top: 0;
    /* Reset */
}

/* Sección Beneficios (Cards Iconos) */
.paint-benefits {
    padding: 100px 20px;
    background-color: var(--rr-dark);
}

.container-wide {
    max-width: 1400px;
    margin: 0 auto;
}

.intro-box {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 80px auto;
}

.intro-box p {
    font-size: 1.2rem;
    color: var(--text-sec);
    line-height: 1.8;
}

.benefits-grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.benefit-card {
    background: linear-gradient(145deg, #151515, #101010);
    padding: 40px 30px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--rr-red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border-color: rgba(230, 57, 70, 0.3);
}

.benefit-card:hover::before {
    transform: scaleX(1);
}

.b-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    display: inline-block;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.1));
}

.benefit-card h3 {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.benefit-card p {
    color: #999;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Sección Zig-Zag (Servicios) */
.zig-zag-section {
    background-color: #0d0d0d;
    overflow: hidden;
}

.zz-row {
    display: flex;
    min-height: 500px;
}

.zz-content {
    flex: 1;
    padding: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.zz-image {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.zz-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.zz-row:hover .zz-image img {
    transform: scale(1.05);
}

/* Invertir orden para efecto zig zag */
.zz-row.reversed {
    flex-direction: row-reverse;
    background-color: #080808;
    /* Ligeramente más oscuro para diferenciar */
}

.zz-content h3 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.zz-content h3 span {
    color: var(--rr-red);
}

.red-line-small {
    width: 50px;
    height: 4px;
    background: var(--rr-red);
    margin-bottom: 30px;
}

.zz-content p {
    color: #ccc;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    max-width: 600px;
}

.zz-list {
    margin-top: 10px;
    list-style: none;
}

.zz-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    color: white;
    font-weight: 500;
}

.zz-list li::before {
    content: '✓';
    color: var(--rr-red);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Sección Regalo Banner */
.gift-banner {
    background: linear-gradient(to right, #b8860b, #daa520);
    /* Dorado oscuro */
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Patrón de fondo sutil para el banner */
.gift-banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(0, 0, 0, 0.1) 20%, transparent 20%);
    background-size: 10px 10px;
    pointer-events: none;
}

.gift-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.gift-icon {
    font-size: 4rem;
    margin-bottom: 10px;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-20px);
    }

    60% {
        transform: translateY(-10px);
    }
}

.gift-content h2 {
    font-size: 2.5rem;
    color: #fff;
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    margin-bottom: 20px;
}

.gift-content p {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 40px;
    font-weight: 500;
}

.white-btn {
    background: white !important;
    color: #b8860b !important;
    border-color: white !important;
}

.white-btn:hover {
    background: #000 !important;
    color: white !important;
    border-color: #000 !important;
}

/* Responsive para la nueva página */
@media (max-width: 900px) {

    .zz-row,
    .zz-row.reversed {
        flex-direction: column;
    }

    .zz-image {
        height: 300px;
        order: -1;
        /* Imagen siempre arriba en móvil */
    }

    .zz-content {
        padding: 40px 20px;
    }

    .paint-hero h1 {
        font-size: 3rem;
    }
}



/* =========================================
   ESTILOS HERO "MÁSCARA INVERTIDA"
   ========================================= */

.apple-hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background-color: #000;
    /* Fondo base */
}

/* 1. La Imagen (Fondo fijo) */
.hero-bg-img {
    position: fixed;
    /* Truco: La imagen se queda quieta visualmente */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Usa una imagen con bastante luz/color para que destaque dentro de las letras */
    background-image: url('https://images.unsplash.com/photo-1492144534655-ae79c964c9d7?q=80&w=1920&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    z-index: 1;
    /* Capa inferior */
}

/* 2. El Contenedor Máscara */
.mask-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    /* El "Negro" que tapa la foto */
    z-index: 2;
    /* Capa superior */

    /* AQUÍ ESTÁ LA MAGIA: 'multiply' 
       - Lo que sea NEGRO se queda NEGRO (tapa la foto).
       - Lo que sea BLANCO se vuelve TRANSPARENTE (muestra la foto).
    */
    mix-blend-mode: multiply;

    display: flex;
    justify-content: center;
    align-items: center;
}

/* 3. El Texto (Debe ser BLANCO PURO para ser transparente) */
.zoom-container {
    text-align: center;
    will-change: transform;
    /* Optimización para el zoom */
}

.zoom-text {
    font-size: 10vw;
    /* Letras muy gordas */
    line-height: 0.85;
    font-weight: 900;
    /* Extra bold para ver más foto */
    color: #fff;
    /* BLANCO = VENTANA A LA FOTO */
    text-transform: uppercase;
    margin: 0;
    white-space: nowrap;
    letter-spacing: -5px;
}

/* Indicador */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    /* Se verá a través de la foto también */
    text-align: center;
    font-weight: bold;
    opacity: 0.8;
    animation: bounce 2s infinite;
}

/* Responsive */
@media (max-width: 768px) {
    .zoom-text {
        font-size: 18vw;
    }
}


/* --- Estilos para la Nueva Sección de Asesoramiento (advisory-section) --- */

.advisory-section {
    padding: 80px 20px;
    background-color: #f8f8f8; /* Fondo gris muy claro */
}

/* Títulos y Subtítulos */
.advisory-section .section-title {
    color: #333; /* Color oscuro para asegurar contraste */
    text-align: center;
    margin-bottom: 50px;
}

.advisory-section .section-title span {
    color: #e53950; /* Color primario (rojo) para destacar la palabra "MERCADO" */
}

.advisory-section .section-subtitle {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 25px;
}

/* Contenedor Flex para texto e imagen */
.advisory-content-flex {
    display: flex;
    align-items: center;
    gap: 60px; /* Separación entre el texto y la imagen */
    max-width: 1100px;
    margin: 0 auto; /* Centrar el contenido */
}

.advisory-text {
    flex: 3; /* Le da más espacio al texto */
}

.advisory-text p {
    color: #555; /* Un gris oscuro para el cuerpo de texto */
    margin-bottom: 20px;
    line-height: 1.7;
}

.advisory-text strong {
    font-weight: 700;
    color: #333;
}

/* Lista de verificación (Checklist) */
.advisory-text .check-list {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.advisory-text .check-list li {
    color: #555;
    padding-left: 30px;
    position: relative;
    line-height: 1.8;
}

.advisory-text .check-list li::before {
    content: "✓"; /* Icono de check */
    color: #e53950;
    font-weight: 700;
    position: absolute;
    left: 0;
    font-size: 1.2em;
    top: 0;
}


/* Caja de Imagen/Icono (Derecha) */
.advisory-image {
    flex: 1; /* Le da menos espacio a la imagen */
    text-align: center;
    padding: 40px 20px;
    border: 1px dashed #ccc;
    border-radius: 10px;
    background-color: #fff;
    min-height: 250px; /* Asegura un mínimo de altura */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.advisory-image img {
    max-width: 120px;
    height: auto;
    opacity: 0.8;
}


/* Botón de CTA de la sección (Asegurar que herede bien el estilo cta-btn) */
.advisory-section .cta-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 12px 30px;
    font-size: 1rem;
}

/* Adaptación para móviles y tabletas */
@media (max-width: 900px) {
    .advisory-content-flex {
        flex-direction: column;
        gap: 30px;
    }
    .advisory-text {
        order: 2; /* Texto abajo */
    }
    .advisory-image {
        order: 1; /* Imagen arriba */
    }
    .advisory-section .section-title {
        margin-bottom: 30px;
    }
}

/* --- Estilos para el nuevo Logo de Imagen en el Header --- */

/* Reseteamos estilos que pudiera tener el enlace de texto anterior */
.logo a {
    text-decoration: none;
    display: flex;
    align-items: center;
}

/* Controlamos el tamaño de la imagen del logo */
.logo img {
    /* Ajusta la altura según el grosor que quieras para tu barra de navegación.
       Entre 40px y 60px suele ser estándar */
    height: 50px; 
    width: auto; /* Mantiene la proporción de la imagen */
    display: block; /* Elimina espacios extraños debajo de la imagen */
    transition: transform 0.3s ease, opacity 0.3s ease; /* Suaviza la interacción */
}

/* Efecto hover opcional para que se note que es clicable */
.logo img:hover {
    transform: scale(1.05); /* Un ligero aumento de tamaño */
    opacity: 0.9;
}

/* Ajuste para móviles si la barra es más estrecha */
@media (max-width: 768px) {
    .logo img {
        height: 40px; /* Un poco más pequeño en móvil */
    }
}


/* =========================================
   HERO SECTION & 3D CONTAINER (CORREGIDO: ABAJO-IZQUIERDA)
   ========================================= */

.hero {
    height: 100vh;
    width: 100%;
    position: relative; /* Necesario para que los hijos absolute se guíen por aquí */
    overflow: hidden;
    background: linear-gradient(to right, rgba(0,0,0,0.9) 20%, rgba(0,0,0,0.4) 100%),
                url('https://images.unsplash.com/photo-1486262715619-67b85e0b08d3?q=80&w=2000&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    /* Quitamos flex/align-items para que no centre nada automáticamente */
    display: block; 
}

/* --- CONTENEDOR 3D (EL COCHE) --- */
.car-container {
    position: absolute;
    top: 50%;     /* Centrado verticalmente */
    right: 5%;    /* Pegado a la derecha */
    transform: translateY(-50%);
    width: 50vw;
    height: 70vh;
    z-index: 10;  /* Nivel base */
    outline: none;
    pointer-events: auto; /* Permitir girar el coche */
}

/* --- TEXTO Y BOTONES (ABAJO A LA IZQUIERDA) --- */
.hero-layout-bottom-left {
    position: absolute; /* Lo sacamos del flujo para moverlo libremente */
    
    /* COORDENADAS: Abajo a la izquierda */
    bottom: 10%;        
    left: 5%;
    top: auto;          /* Aseguramos que no tenga top */
    right: auto;
    
    width: 45%;         /* Ancho máximo para que no choque con el coche */
    max-width: 650px;
    z-index: 100;       /* IMPORTANTE: Encima del coche */
    text-align: left;   /* Texto alineado a la izquierda */
    
    /* Truco: El contenedor es transparente a los clics, los botones no */
    pointer-events: none; 
}

/* Reactivamos los clicks en el contenido real */
.hero-layout-bottom-left h1,
.hero-layout-bottom-left .hero-text-block,
.hero-layout-bottom-left .cta-btn {
    pointer-events: auto;
}

.hero-layout-bottom-left h1 {
    font-size: 5rem;
    line-height: 0.9;
    margin-bottom: 20px;
    background: linear-gradient(to right, #fff, #aaa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    font-weight: 900;
    letter-spacing: -2px;
    /* Sombra para separar si pasa por encima del coche */
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.8));
}

.hero-text-block h2 {
    font-size: 2rem;
    color: var(--rr-red);
    text-transform: uppercase;
    margin-bottom: 10px;
    font-weight: 700;
}

.hero-text-block p {
    font-size: 1.1rem;
    color: #ddd;
    margin-bottom: 30px;
    line-height: 1.6;
    max-width: 90%;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8); /* Lectura clara sobre cualquier fondo */
}

.hero-btns {
    display: flex;
    gap: 15px;
}

.btn-outline {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.btn-outline:hover {
    background: white;
    color: black;
}

/* --- CÁPSULA FLOTANTE --- */
.car-capsule {
    position: absolute;
    bottom: 15%;
    right: 20%;
    z-index: 90;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    padding: 15px 30px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 20px;
    align-items: center;
    opacity: 0; 
    animation: fadeInUp 1s ease-out 2s forwards;
    pointer-events: none;
}

.capsule-item { display: flex; flex-direction: column; }
.cap-label { font-size: 0.7rem; text-transform: uppercase; color: #888; }
.cap-value { font-size: 1.1rem; font-weight: 700; color: white; }
.capsule-divider { width: 1px; height: 30px; background: rgba(255,255,255,0.2); }

@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(-10px); }
}

/* =========================================
   RESPONSIVE (MÓVIL)
   ========================================= */

@media (max-width: 900px) {
    /* 1. EL CONTENEDOR PADRE (HERO) */
    .hero {
        /* Usamos flex para apilar: Texto arriba, Coche abajo (o viceversa si prefieres) */
        display: flex;
        flex-direction: column; /* Texto primero, coche debajo */
        justify-content: space-between; /* Espaciarlos bien */
        align-items: center;
        
        position: relative;
        min-height: 100vh; /* Asegura que cubra toda la pantalla vertical */
        padding-top: 80px; /* Espacio para que el menú no tape el logo */
        
        /* FONDO UNIFICADO: Aquí definimos la imagen para que cubra TODO sin cortes */
        background-image: linear-gradient(to bottom, rgba(0,0,0,0.7), rgba(0,0,0,0.5)),
                          url('https://images.unsplash.com/photo-1486262715619-67b85e0b08d3?q=80&w=2000&auto=format&fit=crop');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        background-attachment: scroll; /* Importante para evitar saltos en móvil */
    }

    /* 2. EL TEXTO (ARRIBA) */
    .hero-layout-bottom-left {
        position: relative;
        width: 100%;
        max-width: 100%;
        padding: 20px;
        text-align: center;
        margin-bottom: 60px;
        
        /* Quitamos fondos que causen cortes visuales */
        background: transparent !important; 
        
        /* Aseguramos que esté visible */
        z-index: 20;
        top: 0;
        left: 0;
    }

    .hero-layout-bottom-left h1 {
        font-size: 3rem; /* Ajustar tamaño si es muy grande */
        margin-top: 10px;
    }

    /* 3. EL COCHE (ABAJO) */
    .car-container {
        position: relative;
        width: 100%;
        height: 50vh; /* Le damos la mitad de la pantalla */
        
        /* Centramos el contenido 3D */
        top: auto;
        right: auto;
        left: 0;
        transform: none;
        
        /* Para que se superponga un poco con el texto si es necesario */
        margin-top: -20px; 
        z-index: 10;
    }
    
    /* Ocultamos la cápsula flotante en móvil para limpiar la vista */
    .car-capsule {
        display: none;
    }
    
    /* Ajuste de botones para que estén centrados */
    .hero-btns {
        justify-content: center;
        margin-top: 15px;
    }
}