/* --- VARIABLES GLOBALES Y RESET --- */
:root {
    --color-obsidian: #0A0A0A;
    --color-titanium: #F5F5F7;
    --color-carmesi: #E30613;
    --color-dark-gray: #1D1D1F;
    --color-light-gray: #86868B;
    --font-primary: 'Inter', sans-serif;
    --border-radius: 12px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-obsidian);
    color: var(--color-titanium);
    overflow-x: hidden;
}

/* --- ESTILOS GENERALES (BOTONES, TÍTULOS) --- */
h1, h2, h3 {
    font-weight: 700;
}

h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

h2 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    text-align: center;
    margin-bottom: 60px;
    letter-spacing: -0.03em;
}

p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--color-light-gray);
}

section {
    padding: 100px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.btn {
    display: inline-block;
    padding: 15px 35px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--color-carmesi);
    color: var(--color-titanium);
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(227, 6, 19, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-titanium);
    border: 1px solid rgba(245, 245, 247, 0.3);
}

.btn-secondary:hover {
    background-color: rgba(245, 245, 247, 0.1);
    transform: translateY(-3px);
}

.btn-giant {
    font-size: 1.5rem;
    padding: 25px 60px;
    border-radius: 100px;
}

/* --- HERO SECTION --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 20px;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.7);
}

.hero-content {
    max-width: 900px;
    z-index: 1;
}

.hero-content h1 {
    color: var(--color-titanium);
}

.hero-content p {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 20px auto 40px;
    color: rgba(245, 245, 247, 0.8);
}

.hero-buttons .btn {
    margin: 0 10px;
}

/* --- TRUST BANNER --- */
.trust-banner {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background-color: var(--color-dark-gray);
    padding: 25px 5%;
    flex-wrap: wrap;
    gap: 20px;
}

.banner-item {
    text-align: center;
}

.banner-item span {
    font-size: 2.5rem;
    font-weight: 700;
    display: block;
}

.banner-item p {
    font-size: 0.9rem;
    color: var(--color-light-gray);
    margin: 0;
}

/* --- WHY REDDO --- */
.why-reddo {
    text-align: center;
}

.storytelling {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.creator-center img {
    width: 100px;
    height: 100px;
    animation: float 4s ease-in-out infinite;
}

.reddo-shield {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 200px;
    height: 200px;
    background-color: rgba(227, 6, 19, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    backdrop-filter: blur(5px);
    opacity: 0;
    animation: shield-in 2s forwards 1s;
}

.problems span {
    position: absolute;
    background-color: var(--color-dark-gray);
    padding: 10px 15px;
    border-radius: 8px;
    animation: problem-out 2s forwards 1s;
}

.problems span:nth-child(1) { top: 10%; left: 20%; }
.problems span:nth-child(2) { top: 20%; right: 15%; }
.problems span:nth-child(3) { bottom: 15%; left: 10%; }
.problems span:nth-child(4) { bottom: 25%; right: 25%; }
.problems span:nth-child(5) { top: 50%; left: 5%; }
.problems span:nth-child(6) { top: 60%; right: 5%; }
.problems span:nth-child(7) { bottom: 5%; left: 40%; }
.problems span:nth-child(8) { top: 5%; right: 45%; }


.solution {
    margin-top: 20px;
    font-size: 1.5rem;
    font-weight: 500;
    opacity: 0;
    animation: fade-in 1s forwards 2.5s;
    position: absolute;
    bottom: -60px;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

@keyframes problem-out {
    to { transform: scale(0); opacity: 0; }
}

@keyframes shield-in {
    to { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

@keyframes fade-in {
    to { opacity: 1; }
}


/* --- TIMELINE --- */
.timeline-section {
    padding-bottom: 120px;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--color-dark-gray);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    text-align: left;
}

.timeline-dot {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--color-obsidian);
    border: 4px solid var(--color-carmesi);
    top: 28px;
    border-radius: 50%;
    z-index: 1;
    transition: transform 0.3s ease;
}

.timeline-item:hover .timeline-dot {
    transform: scale(1.2);
}

.timeline-item:nth-child(odd) .timeline-dot {
    right: -10px;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -10px;
}

.timeline-item h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
    color: var(--color-titanium);
}

/* --- WHAT WE DO --- */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.card {
    background: var(--color-dark-gray);
    padding: 40px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    background: rgba(29, 29, 31, 0.7);
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--color-carmesi);
}

.card h3 {
    font-size: 1.4rem;
    color: var(--color-titanium);
}

/* --- COMPARISON --- */
.comparison-table {
    display: flex;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.column {
    flex: 1;
    padding: 30px;
    border-radius: var(--border-radius);
    background: var(--color-dark-gray);
}

.column h3 {
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.column ul {
    list-style: none;
}

.column ul li {
    padding: 10px 0;
    font-size: 1.1rem;
    color: var(--color-light-gray);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.column.reddo-column {
    background: linear-gradient(145deg, #e30613, #a1040d);
    color: var(--color-titanium);
}

.reddo-column h3, .reddo-column ul li {
    color: var(--color-titanium);
}

/* --- CALCULATOR --- */
.calculator-section {
    background-color: var(--color-dark-gray);
}
.calculator {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    background-color: var(--color-obsidian);
    padding: 50px;
    border-radius: var(--border-radius);
}

.input-group {
    margin-bottom: 20px;
}
.input-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--color-light-gray);
}
.input-group input, .input-group select {
    width: 100%;
    padding: 12px;
    background-color: var(--color-dark-gray);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: var(--color-titanium);
    font-size: 1rem;
}

input[type="range"] {
    padding: 0;
}
.range-value {
    display: block;
    text-align: right;
    margin-top: 5px;
}

#calculate-btn { width: 100%; margin-top: 20px; }

.result-bar-group { margin-bottom: 25px; }
.result-bar-group label { display: block; margin-bottom: 8px; }
.bar {
    width: 100%;
    height: 20px;
    background-color: var(--color-dark-gray);
    border-radius: 10px;
    overflow: hidden;
}
.bar div {
    height: 100%;
    border-radius: 10px;
    transition: width 1s ease-out;
}
#bar-conservative { background-color: #555; }
#bar-expected { background-color: var(--color-carmesi); }
#bar-high { background-color: #ff4552; }

.result-bar-group span {
    display: block;
    text-align: right;
    font-weight: bold;
    margin-top: 5px;
    font-size: 1.2rem;
}

.projections {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    text-align: center;
}
.projections h4 {
    color: var(--color-light-gray);
    font-weight: 500;
}
.projections p {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--color-titanium);
}
.disclaimer {
    font-size: 0.8rem;
    text-align: center;
    margin-bottom: 20px;
}
#apply-from-calculator { margin-top: 20px; width: 100%; }

/* --- EVIDENCE --- */
.evidence .subtitle {
    text-align: center;
    max-width: 600px;
    margin: -40px auto 40px;
}
.evidence-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}
.evidence-grid img {
    width: 100%;
    border-radius: var(--border-radius);
    filter: blur(3px); /* Difuminar por defecto */
    transition: filter 0.3s ease;
}
.evidence-grid img:hover {
    filter: blur(0);
}
.evidence-note {
    text-align: center;
    margin-top: 30px;
    font-style: italic;
}

/* --- PRIVACY --- */
.privacy-cards {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}
.p-card {
    background-color: var(--color-dark-gray);
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    min-width: 250px;
}

/* --- FAQ --- */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    border-bottom: 1px solid var(--color-dark-gray);
}
.faq-question {
    width: 100%;
    background: none;
    border: none;
    color: var(--color-titanium);
    text-align: left;
    padding: 20px 0;
    font-size: 1.3rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-question::after {
    content: '+';
    font-size: 2rem;
    transition: transform 0.3s ease;
}
.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}
.faq-answer p {
    padding: 0 0 20px;
}

/* --- FINAL CTA --- */
.final-cta {
    text-align: center;
    background: var(--color-dark-gray);
}
.final-cta p {
    max-width: 500px;
    margin: -30px auto 40px;
}

/* --- FOOTER --- */
footer {
    background: #000;
    color: var(--color-light-gray);
    padding: 50px 5%;
}
.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
}
.footer-logo {
    font-size: 2rem;
    font-weight: bold;
    color: var(--color-titanium);
}
.footer-links a, .footer-legal a {
    color: var(--color-light-gray);
    text-decoration: none;
    margin: 0 15px;
    transition: color 0.3s ease;
}
.footer-links a:hover, .footer-legal a:hover {
    color: var(--color-titanium);
}
.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--color-dark-gray);
    font-size: 0.9rem;
}

/* --- ANIMACIONES Y UTILIDADES --- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.hidden {
    display: none;
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 900px) {
    .comparison-table { flex-direction: column; }
    .calculator { grid-template-columns: 1fr; }
    .timeline::after { left: 10px; }
    .timeline-item { width: 100%; padding-left: 50px; padding-right: 20px; text-align: left !important; }
    .timeline-item:nth-child(even) { left: 0; }
    .timeline-dot { left: 0 !important; }
}

@media (max-width: 600px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    .trust-banner { justify-content: center; }
    .banner-item { flex-basis: 40%; }
    .footer-content { flex-direction: column; align-items: center; text-align: center; }
    .footer-links, .footer-legal { display: flex; flex-direction: column; gap: 15px; }
}

/* Forzar iconos rojos y visibles */
.icon-reddo {
    color: #E30613 !important; /* Rojo REDDO */
    stroke: #E30613 !important;
    width: 18px !important;
    height: 18px !important;
    stroke-width: 2.5px; /* Esto hace que el icono se vea más grueso y premium */
    display: inline-block;
}

/* Efecto hover para los links del footer */
.footer-link {
    transition: all 0.3s ease;
}
.footer-link:hover {
    color: white !important;
    transform: translateX(5px);
}