/* ============================================
   RESET Y BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Paleta de colores */
    --primary-orange: #FF5722;
    --primary-orange-hover: #F4511E;
    --primary-orange-active: #E64A19;
    --white: #FFFFFF;
    --black: #000000;
    --border-white: rgba(255, 255, 255, 0.3);
    --border-white-hover: rgba(255, 255, 255, 0.6);
    
    /* Tipografía */
    --font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    
    /* Espaciados */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 32px;
    --spacing-xl: 48px;
    --spacing-xxl: 64px;
    
    /* Bordes */
    --border-radius-sm: 4px;
    --border-radius-md: 6px;
    --border-width: 2px;
    
    /* Transiciones */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family);
    background-color: var(--black);
    color: var(--white);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
}

/* ============================================
   CONTAINER PRINCIPAL
   ============================================ */
.main-container {
    width: 100%;
    max-width: 1200px;
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-xl);
}

/* ============================================
   LOGO
   ============================================ */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: var(--spacing-sm);
}

.logo img {
    height: 60px;
    width: auto;
}

.logo-icon {
    width: 32px;
    height: 32px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon svg {
    width: 100%;
    height: 100%;
}

.logo-text {
    font-size: 32px;
    font-weight: var(--font-weight-semibold);
    color: var(--primary-orange);
    letter-spacing: -0.5px;
    line-height: 1;
}

/* ============================================
   WELCOME SECTION
   ============================================ */
.welcome-section {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    width: 100%;
}

.welcome-title {
    font-size: 28px;
    font-weight: var(--font-weight-medium);
    color: var(--white);
    letter-spacing: -0.3px;
    line-height: 1.2;
}

/* ============================================
   BUTTONS
   ============================================ */
.button-group {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.btn {
    padding: 14px 32px;
    font-size: 16px;
    font-weight: var(--font-weight-medium);
    font-family: var(--font-family);
    border-radius: var(--border-radius-md);
    cursor: pointer;
    transition: all var(--transition-normal);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    border: none;
    outline: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:active::before {
    width: 300px;
    height: 300px;
}

/* Botón Outline (Desarrollo) */
.btn-outline {
    background-color: transparent;
    color: var(--white);
    border: var(--border-width) solid var(--border-white);
}

.btn-outline:hover {
    border-color: var(--border-white-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

.btn-outline:active {
    transform: translateY(0);
}

/* Botón Filled (Productos) */
.btn-filled {
    background-color: var(--primary-orange);
    color: var(--white);
    border: var(--border-width) solid var(--primary-orange);
}

.btn-filled:hover {
    background-color: var(--primary-orange-hover);
    border-color: var(--primary-orange-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 87, 34, 0.4);
}

.btn-filled:active {
    background-color: var(--primary-orange-active);
    border-color: var(--primary-orange-active);
    transform: translateY(0);
}

/* ============================================
   TAGLINE
   ============================================ */
.tagline {
    font-size: 18px;
    font-weight: var(--font-weight-normal);
    color: var(--white);
    letter-spacing: 0.2px;
    line-height: 1.5;
    margin-top: var(--spacing-md);
    opacity: 0.95;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Mobile Small (320px - 479px) */
@media (max-width: 479px) {
    .main-container {
        padding: var(--spacing-sm);
        gap: var(--spacing-md);
    }

    .logo-text {
        font-size: 28px;
    }

    .logo-icon {
        width: 28px;
        height: 28px;
    }

    .welcome-title {
        font-size: 24px;
    }

    .button-group {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        min-width: auto;
        padding: 12px 24px;
        font-size: 15px;
    }

    .tagline {
        font-size: 16px;
        margin-top: var(--spacing-sm);
    }
}

/* Mobile (480px - 767px) */
@media (min-width: 480px) and (max-width: 767px) {
    .main-container {
        gap: var(--spacing-lg);
    }

    .welcome-title {
        font-size: 26px;
    }

    .button-group {
        flex-direction: row;
    }

    .btn {
        flex: 1;
        min-width: 160px;
    }
}

/* Tablet (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .main-container {
        padding: var(--spacing-lg);
    }

    .logo-text {
        font-size: 36px;
    }

    .logo-icon {
        width: 36px;
        height: 36px;
    }

    .welcome-title {
        font-size: 32px;
    }

    .tagline {
        font-size: 19px;
    }
}

/* Desktop (1024px - 1439px) */
@media (min-width: 1024px) and (max-width: 1439px) {
    .main-container {
        padding: var(--spacing-xl);
    }

    .logo-text {
        font-size: 38px;
    }

    .logo-icon {
        width: 38px;
        height: 38px;
    }

    .welcome-title {
        font-size: 34px;
    }

    .tagline {
        font-size: 20px;
    }
}

/* Desktop Large (1440px+) */
@media (min-width: 1440px) {
    .main-container {
        padding: var(--spacing-xxl);
    }

    .logo-text {
        font-size: 40px;
    }

    .logo-icon {
        width: 40px;
        height: 40px;
    }

    .welcome-title {
        font-size: 36px;
    }

    .tagline {
        font-size: 21px;
    }
}

/* Responsive - Logo más pequeño en móvil */
@media (max-width: 768px) {
    .logo img {
        height: 50px;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.main-container > * {
    animation: fadeInUp 0.6s ease-out backwards;
}

.logo {
    animation-delay: 0.1s;
}

.welcome-section {
    animation-delay: 0.2s;
}

.tagline {
    animation-delay: 0.3s;
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
.btn:focus-visible {
    outline: 3px solid var(--primary-orange);
    outline-offset: 3px;
}

.btn-outline:focus-visible {
    outline-color: var(--white);
}

/* Reducir animaciones para usuarios con preferencias de movimiento reducido */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    body {
        background-color: white;
        color: black;
    }

    .btn {
        border: 1px solid black;
    }
}
