/* ---------------------------------------
   BASE
---------------------------------------- */


:root {
    --brand-dark: #0f172a;
    --brand-primary: #1e293b;
    --brand-accent: #d97706;
    --brand-light: #f8fafc;
}

*,
::before,
::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
}

body {
    background-color: #f8fafc;
    color: #334155;
}

img {
    max-width: 100%;
    display: block;
}

/* ---------------------------------------
   LOGOS - AJUSTE MILIMÉTRICO
---------------------------------------- */

/* Header: Logo con altura suficiente */
.logo-header {
    height: 70px;
    width: auto;
    object-fit: contain;
}

/* Footer: Caja blanca contenedora */
.logo-footer-box {
    background-color: white;
    /* Padding mínimo para que el logo toque casi los bordes */
    padding: 5px;
    border-radius: 6px;
    display: inline-block;
    margin-bottom: 1.5rem;
    /* Esto quita el espacio fantasma debajo de la imagen */
    line-height: 0;
}

/* Footer: La imagen dentro de la caja */
.logo-footer-img {
    /* Controlamos por ANCHO para asegurar legibilidad del texto */
    width: 220px;
    height: auto;
    object-fit: contain;
    display: block;
}

/* Ajustes para PC */
@media (min-width: 768px) {
    .logo-header {
        height: 90px;
    }

    .logo-footer-img {
        /* En PC el logo será aún más ancho y legible */
        width: 280px;
    }
}

/* ---------------------------------------
   CONTENEDORES
---------------------------------------- */
.container {
    width: 100%;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .container {
        max-width: 768px;
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: 1024px;
    }
}

/* ---------------------------------------
   DISPLAY
---------------------------------------- */
.flex {
    display: flex;
}

.hidden {
    display: none;
}

.block {
    display: block;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.flex-col {
    flex-direction: column;
}

/* ---------------------------------------
   GRID
---------------------------------------- */
.grid {
    display: grid;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 768px) {
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .md\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .md\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* ---------------------------------------
   ESPACIADOS
---------------------------------------- */
.p-4 {
    padding: 1rem;
}

.p-6 {
    padding: 1.5rem;
}

.p-8 {
    padding: 2rem;
}

.py-3 {
    padding-top: .75rem;
    padding-bottom: .75rem;
}

.py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.py-16 {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.py-24 {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.px-8 {
    padding-left: 2rem;
    padding-right: 2rem;
}

.pt-24 {
    padding-top: 6rem;
}

.pb-16 {
    padding-bottom: 4rem;
}

@media (min-width: 768px) {
    .md\:pt-32 {
        padding-top: 8rem;
    }

    .md\:pb-24 {
        padding-bottom: 6rem;
    }

    .md\:px-6 {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

/* ---------------------------------------
   TEXTO
---------------------------------------- */
.text-center {
    text-align: center;
}

.font-bold {
    font-weight: 700;
}

.font-medium {
    font-weight: 500;
}

.text-sm {
    font-size: .875rem;
}

.text-lg {
    font-size: 1.125rem;
}

.text-xl {
    font-size: 1.25rem;
}

.text-2xl {
    font-size: 1.5rem;
}

.text-3xl {
    font-size: 1.875rem;
}

.text-4xl {
    font-size: 2.25rem;
}

.text-white {
    color: #fff;
}

.text-slate-200 {
    color: #e2e8f0;
}

.text-slate-600 {
    color: #475569;
}

.text-slate-700 {
    color: #334155;
}

.text-slate-900 {
    color: #0f172a;
}

.text-gray-200 {
    color: #e5e7eb;
}

/* ---------------------------------------
   COLORES + FONDOS
---------------------------------------- */
.bg-white {
    background-color: white;
}

.bg-slate-50 {
    background-color: #f8fafc;
}

.bg-slate-900 {
    background-color: #0f172a;
}

.bg-white\/10 {
    background-color: rgba(255, 255, 255, 0.10);
}

.bg-white\/95 {
    background-color: rgba(255, 255, 255, 0.95);
}

.bg-brand-accent {
    background-color: var(--brand-accent);
}

/* Overlay hero */
.from-slate-900\/90 {
    --tw-gradient-from: rgba(15, 23, 42, 0.9);
}

.to-slate-900\/40 {
    --tw-gradient-to: rgba(15, 23, 42, 0.4);
}

.bg-gradient-to-r {
    background-image: linear-gradient(to right,
            var(--tw-gradient-from),
            var(--tw-gradient-to));
}

/* ---------------------------------------
   BORDES + SOMBRAS
---------------------------------------- */
.rounded-lg {
    border-radius: 0.5rem;
}

.rounded-2xl {
    border-radius: 1rem;
}

.border {
    border-width: 1px;
}

.border-2 {
    border-width: 2px;
}

.border-gray-300 {
    border-color: #d1d5db;
}

.border-white\/20 {
    border-color: rgba(255, 255, 255, 0.2);
}

.border-slate-100 {
    border-color: #f1f5f9;
}

.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.shadow-xl {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.12);
}

.shadow-2xl {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
}

.shadow-amber-500\/20 {
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.20);
}

/* ---------------------------------------
   EFECTOS / HOVER
---------------------------------------- */
.transition {
    transition: .3s all;
}

.hover\:scale-105:hover {
    transform: scale(1.05);
}

.hover\:bg-amber-700:hover {
    background-color: #b45309;
}

.hover\:bg-white:hover {
    background-color: white;
}

.hover\:text-slate-900:hover {
    color: #0f172a;
}

/* ---------------------------------------
   FORMULARIOS
---------------------------------------- */
input,
select,
textarea {
    font-family: inherit;
    border-radius: .375rem;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--brand-accent);
    box-shadow: 0 0 0 2px rgba(217, 119, 6, 0.3);
}

/* ---------------------------------------
   ANIMACIÓN "REVEAL"
---------------------------------------- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all .8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ---------------------------------------
   SCROLLBAR
---------------------------------------- */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* --- ESTILOS CSS (NUEVOS) --- */

/* Variables de color basadas en tu marca */
:root {
    --dark-bg: #0e1b30;
    /* Azul Oscuro (Fondo) */
    --accent-orange: #f37021;
    /* Naranja (Detalles y Botones) */
    --text-white: #ffffff;
    /* Títulos */
    --text-gray: #cbd5e1;
    /* Texto descriptivo */
}

/* Contenedor Principal */
.steps-section {
    background-color: var(--dark-bg);
    padding: 60px 20px;
    /* font-family: 'Arial', sans-serif; ELIMINADO PARA USAR INTER */
}

.section-title {
    text-align: center;
    color: var(--text-white);
    font-size: 2.2rem;
    font-weight: 700;
    /* AGREGADO BOLD */
    margin-bottom: 10px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-gray);
    margin-bottom: 60px;
    font-size: 1.1rem;
}

/* Línea de Tiempo Vertical */
.timeline-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.timeline {
    position: relative;
    border-left: 2px solid rgba(255, 255, 255, 0.15);
    /* Línea sutil vertical */
    margin-left: 60px;
    /* Aumentado para dar espacio a los iconos grandes */
    padding-left: 60px;
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
}

/* El círculo (Icono) */
.step-icon {
    position: absolute;
    left: -101px;
    /* -60px (padding) - 40px (mitad ancho) - 1px (ajuste borde) */
    top: 0;
    width: 80px;
    height: 80px;
    background-color: white;
    border: 4px solid var(--accent-orange);
    border-radius: 50%;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.step-icon img {
    width: 50%;
    height: auto;
    object-fit: contain;
}

/* Efecto al pasar el mouse sobre el item */
.timeline-item:hover .step-icon {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(243, 112, 33, 0.6);
}

/* Ocultar el antiguo punto */
.timeline-item::before {
    display: none;
}

/* Textos de cada paso */
.step-number {
    display: block;
    color: var(--accent-orange);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.step-title {
    color: var(--text-white);
    font-size: 1.5rem;
    margin: 0 0 10px 0;
}

.step-desc {
    color: var(--text-gray);
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
    max-width: 600px;
}

/* Botón de Llamado a la Acción */
.cta-container {
    text-align: center;
    margin-top: 60px;
}

.btn-orange {
    display: inline-block;
    background-color: var(--accent-orange);
    color: white;
    text-decoration: none;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    border: 2px solid var(--accent-orange);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.btn-orange:hover {
    background-color: transparent;
    color: var(--accent-orange);
    transform: translateY(-3px);
}

/* Ajuste para celulares (Responsive) */
@media (max-width: 600px) {
    .step-title {
        font-size: 1.3rem;
    }

    .timeline {
        padding-left: 50px;
        margin-left: 40px;
    }

    .step-icon {
        width: 60px;
        height: 60px;
        left: -81px;
        /* -50px (padding) - 30px (mitad) - 1px */
    }
}

/* CLASE GLOBAL PARA BOTONES NARANJAS (Efecto Hover) */
.btn-hover-effect {
    border: 2px solid var(--accent-orange);
    transition: all 0.3s ease;
    /* Asegurar que tengan el color base si no lo tienen */
    background-color: var(--accent-orange);
    color: white;
}

.btn-hover-effect:hover {
    background-color: transparent !important;
    /* Forzar sobre Tailwind */
    color: var(--accent-orange) !important;
    /* Forzar sobre Tailwind */
    transform: translateY(-3px) !important;
    /* Forzar sobre Tailwind */
}

/* CLASE PARA SOLO EFECTO DE MOVIMIENTO (Para botón Soy Inversor) */
.hover-lift {
    transition: all 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-3px);
}