/* ===================================
   DACAR Landing - Estilos CSS
   Diseño responsivo y optimizado
   =================================== */

/* Reset y Variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colores DACAR */
    --color-bg-dark: #0a1a14;
    --color-emerald-900: rgba(6, 78, 59, 0.6);
    --color-emerald-600: #059669;
    --color-emerald-500: #10b981;
    --color-emerald-300: #6ee7b7;
    --color-emerald-200: rgba(167, 243, 208, 0.8);
    --color-emerald-100: rgba(209, 250, 229, 0.9);
    --color-emerald-100-70: rgba(209, 250, 229, 0.7);
    --color-emerald-100-60: rgba(209, 250, 229, 0.6);
    --color-amber-400: #fbbf24;
    --color-amber-300: #fcd34d;
    --color-white: #ffffff;
    --color-white-90: rgba(255, 255, 255, 0.9);
    --color-white-10: rgba(255, 255, 255, 0.1);
    --color-black-20: rgba(0, 0, 0, 0.2);
    
    /* Tipografía */
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Body */
body {
    font-family: var(--font-family);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: var(--color-bg-dark);
    color: var(--color-white);
    line-height: 1.6;
}

/* Landing Container */
.landing-container {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 1rem;
}

/* Landing Card */
.landing-card {
    width: 100%;
    max-width: 48rem;
    border-radius: 1.5rem;
    border: 1px solid var(--color-white-10);
    background: linear-gradient(to bottom, var(--color-emerald-900), var(--color-black-20));
    padding: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

@media (min-width: 640px) {
    .landing-card {
        padding: 2.5rem;
    }
}

/* Header */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.header-left {
    flex: 1;
    min-width: 200px;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-dacar {
    height: 140px;
    width: auto;
    object-fit: contain;
}

@media (max-width: 640px) {
    .logo-dacar {
        height: 45px;
    }
}

.header-text {
    flex: 1;
}

.header-subtitle {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-emerald-200);
    margin-bottom: 0.25rem;
}

.header-title {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 0.25rem;
}

@media (min-width: 640px) {
    .header-title {
        font-size: 2.5rem;
    }
}

.header-tagline {
    font-size: 0.875rem;
    color: var(--color-emerald-100);
    opacity: 0.8;
}

.header-right {
    display: none;
    flex-direction: column;
    text-align: right;
    font-size: 0.75rem;
    color: var(--color-emerald-100-70);
    gap: 0.25rem;
}

@media (min-width: 640px) {
    .header-right {
        display: flex;
    }
}

.info-item {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.icon {
    height: 14px;
    width: 14px;
}

/* Claim Section */
.claim-section {
    margin-top: 1.5rem;
}

.claim-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.375;
}

@media (min-width: 640px) {
    .claim-title {
        font-size: 1.5rem;
    }
}

.highlight {
    color: var(--color-emerald-300);
}

.claim-text {
    margin-top: 0.5rem;
    color: var(--color-emerald-100);
    opacity: 0.9;
    font-size: 0.875rem;
}

/* CTA Section */
.cta-section {
    margin-top: 1.5rem;
    display: grid;
    gap: 0.75rem;
}

/* CTA Buttons */
.cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 3.5rem;
    padding: 0 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    border: none;
    gap: 0.5rem;
}

.btn-icon {
    height: 20px;
    width: 20px;
}

/* Primary Button - Comprar Auto */
.cta-primary {
    background-color: var(--color-emerald-600);
    color: var(--color-white);
}

.cta-primary:hover {
    background-color: var(--color-emerald-500);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(5, 150, 105, 0.4);
}

.cta-primary:active {
    transform: translateY(0);
}

/* Secondary Button - Chapería */
.cta-secondary {
    background-color: var(--color-white);
    color: #064e3b;
}

.cta-secondary:hover {
    background-color: var(--color-white-90);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(255, 255, 255, 0.3);
}

.cta-secondary:active {
    transform: translateY(0);
}

/* Tertiary Button - Rifa */
.cta-tertiary {
    background-color: transparent;
    border: 2px solid var(--color-amber-400);
    color: var(--color-amber-300);
}

.cta-tertiary:hover {
    background-color: rgba(251, 191, 36, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(251, 191, 36, 0.3);
}

.cta-tertiary:active {
    transform: translateY(0);
}

/* Shop Note */
.shop-note {
    margin-top: 1rem;
    font-size: 0.75rem;
    color: var(--color-emerald-100-70);
}

.shop-highlight {
    font-weight: 600;
}

/* Footer */
.footer {
    padding-top: 2rem;
    font-size: 0.6875rem;
    color: var(--color-emerald-100-60);
    line-height: 1.4;
}

/* Loading State */
.cta-btn.loading {
    opacity: 0.7;
    pointer-events: none;
}

.cta-btn.loading::after {
    content: '';
    width: 16px;
    height: 16px;
    margin-left: 8px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Accessibility */
.cta-btn:focus-visible {
    outline: 3px solid var(--color-emerald-300);
    outline-offset: 2px;
}

/* Mobile Optimizations */
@media (max-width: 640px) {
    .landing-card {
        border-radius: 1rem;
    }
    
    .cta-btn {
        font-size: 0.9375rem;
    }
}

/* Print Styles */
@media print {
    body {
        background-color: white;
        color: black;
    }
    
    .landing-container {
        display: block;
    }
    
    .cta-btn {
        border: 1px solid #000;
        color: #000;
        background: transparent;
    }
}
