/* ========================================
   FRIGORÍFICO LA MORENA - STATIC STYLES
   ======================================== */

/* CSS Variables */
:root {
    /* Brand Colors */
    --brand-red: #e01d1d;
    --brand-red-dark: #b81818;
    --brand-red-light: #ff3333;
    --brand-black: #000000;
    --brand-white: #ffffff;
    
    /* Semantic Colors */
    --background: #000000;
    --foreground: #ffffff;
    --card: #0d0d0d;
    --card-hover: #1a1a1a;
    --muted: #262626;
    --muted-foreground: #a6a6a6;
    --border: #333333;
    --primary: #e01d1d;
    --primary-foreground: #ffffff;
    
    /* Typography */
    --font-display: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
    
    /* Spacing */
    --section-padding: 120px;
    --container-max: 1280px;
    --container-padding: 24px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Shadows */
    --shadow-glow: 0 0 40px rgba(224, 29, 29, 0.3);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Utility Classes */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.hidden {
    display: none !important;
}

.text-gradient-red {
    background: linear-gradient(135deg, var(--brand-red) 0%, var(--brand-red-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    border-radius: 4px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--transition-base);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--primary-foreground);
    border-color: var(--primary);
}

.btn-primary:hover {
    background-color: var(--brand-red-dark);
    border-color: var(--brand-red-dark);
    box-shadow: var(--shadow-glow);
}

.btn-outline {
    background-color: transparent;
    color: var(--foreground);
    border-color: var(--border);
}

.btn-outline:hover {
    background-color: var(--muted);
    border-color: var(--foreground);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 15px;
}

.btn-full {
    width: 100%;
}

.btn-icon {
    width: 16px;
    height: 16px;
}

/* ========================================
   HEADER
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: all var(--transition-base);
}

.header.scrolled {
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background-color: var(--primary);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-foreground);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-name {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.1em;
}

.logo-tagline {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--muted-foreground);
}

/* Navigation */
.nav-desktop {
    display: none;
    gap: 32px;
}

@media (min-width: 1024px) {
    .nav-desktop {
        display: flex;
    }
}

.nav-link {
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted-foreground);
    transition: color var(--transition-fast);
    position: relative;
}

.nav-link:hover {
    color: var(--foreground);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--primary);
    transition: width var(--transition-base);
}

.nav-link:hover::after {
    width: 100%;
}

.btn-header {
    display: none;
}

@media (min-width: 1024px) {
    .btn-header {
        display: inline-flex;
    }
}

/* Mobile Menu */
.mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--foreground);
}

@media (min-width: 1024px) {
    .mobile-menu-btn {
        display: none;
    }
}

.mobile-menu-btn svg {
    width: 24px;
    height: 24px;
}

.nav-mobile {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--card);
    border-bottom: 1px solid var(--border);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.nav-link-mobile {
    font-size: 14px;
    font-weight: 500;
    color: var(--muted-foreground);
    padding: 8px 0;
    transition: color var(--transition-fast);
}

.nav-link-mobile:hover {
    color: var(--foreground);
}

.btn-mobile {
    margin-top: 8px;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.8) 100%);
}

.hero-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.03;
    background-image: 
        linear-gradient(rgba(255,255,255,0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 50px 50px;
}

.hero-content {
    position: relative;
    text-align: center;
    padding: 120px 0 80px;
}

.hero-text {
    max-width: 800px;
    margin: 0 auto;
}

.hero-pretitle {
    display: inline-block;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--muted-foreground);
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
    animation: fadeIn 0.8s ease forwards;
}

.hero-title {
    font-size: clamp(40px, 8vw, 72px);
    font-weight: 600;
    margin-bottom: 24px;
    animation: fadeIn 0.8s ease 0.2s forwards;
    opacity: 0;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--muted-foreground);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.8;
    animation: fadeIn 0.8s ease 0.4s forwards;
    opacity: 0;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    animation: fadeIn 0.8s ease 0.6s forwards;
    opacity: 0;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--muted-foreground);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    animation: bounce 2s ease infinite;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
}

/* ========================================
   SECTION STYLES
   ======================================== */
section {
    padding: var(--section-padding) 0;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 64px;
}

.section-pretitle {
    display: inline-block;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--primary);
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(32px, 5vw, 48px);
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 16px;
    color: var(--muted-foreground);
    line-height: 1.8;
}

/* ========================================
   ABOUT SECTION
   ======================================== */
.about {
    position: relative;
    background-color: var(--card);
}

.about-accent {
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary) 0%, transparent 100%);
}

.about-container {
    display: grid;
    gap: 64px;
    align-items: center;
}

@media (min-width: 1024px) {
    .about-container {
        grid-template-columns: 1fr 1fr;
    }
}

.about-image {
    position: relative;
}

.about-image-placeholder,
.process-image-placeholder,
.training-image-placeholder {
    aspect-ratio: 4/3;
    background-color: var(--muted);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: var(--muted-foreground);
}

.placeholder-icon {
    width: 48px;
    height: 48px;
    opacity: 0.5;
}

.placeholder-icon-lg {
    width: 64px;
    height: 64px;
    opacity: 0.5;
}

.about-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background-color: var(--primary);
    padding: 20px 24px;
    border-radius: 8px;
    text-align: center;
}

@media (max-width: 1023px) {
    .about-badge {
        right: 20px;
    }
}

.badge-number {
    display: block;
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 700;
}

.badge-text {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.9;
}

.about-content {
    max-width: 540px;
}

.about-text {
    color: var(--muted-foreground);
    margin-bottom: 16px;
    line-height: 1.8;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 32px 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
}

.feature-icon {
    width: 20px;
    height: 20px;
    color: var(--primary);
}

/* ========================================
   PRODUCTS SECTION
   ======================================== */
.products {
    background-color: var(--background);
}

.products-grid {
    display: grid;
    gap: 24px;
}

@media (min-width: 640px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.product-card {
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 32px;
    transition: all var(--transition-base);
}

.product-card:hover {
    background-color: var(--card-hover);
    border-color: var(--primary);
    transform: translateY(-4px);
}

.product-icon {
    width: 48px;
    height: 48px;
    background-color: var(--muted);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: all var(--transition-base);
}

.product-card:hover .product-icon {
    background-color: var(--primary);
}

.product-icon svg {
    width: 24px;
    height: 24px;
    color: var(--muted-foreground);
    transition: color var(--transition-base);
}

.product-card:hover .product-icon svg {
    color: var(--primary-foreground);
}

.product-title {
    font-size: 18px;
    margin-bottom: 8px;
}

.product-description {
    font-size: 14px;
    color: var(--muted-foreground);
    line-height: 1.6;
}

.products-cta {
    text-align: center;
    margin-top: 48px;
}

/* ========================================
   PROCESS SECTION
   ======================================== */
.process {
    background-color: var(--card);
}

.process-container {
    display: grid;
    gap: 64px;
    align-items: center;
}

@media (min-width: 1024px) {
    .process-container {
        grid-template-columns: 1fr 1fr;
    }
}

.process-content {
    max-width: 540px;
}

.process-text {
    color: var(--muted-foreground);
    margin-bottom: 32px;
    line-height: 1.8;
}

.process-items {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.process-item {
    display: flex;
    gap: 16px;
}

.process-item-icon {
    width: 48px;
    height: 48px;
    background-color: var(--muted);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.process-item-icon svg {
    width: 24px;
    height: 24px;
    color: var(--primary);
}

.process-item-content h4 {
    font-size: 16px;
    margin-bottom: 4px;
}

.process-item-content p {
    font-size: 14px;
    color: var(--muted-foreground);
}

.process-image {
    position: relative;
}

.process-badge {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background-color: var(--primary);
    padding: 16px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}

@media (max-width: 1023px) {
    .process-badge {
        left: 20px;
    }
}

.badge-icon {
    width: 32px;
    height: 32px;
}

.badge-title {
    display: block;
    font-weight: 600;
    font-size: 14px;
}

.badge-subtitle {
    display: block;
    font-size: 12px;
    opacity: 0.9;
}

/* ========================================
   TRAINING SECTION
   ======================================== */
.training {
    position: relative;
    background-color: var(--background);
    overflow: hidden;
}

.training-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 80% 50%, rgba(224, 29, 29, 0.1) 0%, transparent 50%);
}

.training-container {
    position: relative;
    display: grid;
    gap: 64px;
    align-items: center;
}

@media (min-width: 1024px) {
    .training-container {
        grid-template-columns: 1fr 1fr;
    }
}

.training-image-placeholder {
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--muted) 0%, var(--card) 100%);
}

.training-content {
    max-width: 540px;
}

@media (min-width: 1024px) {
    .training-content {
        order: -1;
    }
    
    .training-image {
        order: 1;
    }
}

.training-text {
    color: var(--muted-foreground);
    margin-bottom: 16px;
    line-height: 1.8;
}

.training-benefits {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 32px 0;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
}

.benefit-icon {
    width: 20px;
    height: 20px;
    color: var(--primary);
}

/* ========================================
   CONTACT SECTION
   ======================================== */
.contact {
    background-color: var(--card);
}

.contact-container {
    display: grid;
    gap: 48px;
}

@media (min-width: 1024px) {
    .contact-container {
        grid-template-columns: 1fr 1.5fr;
        gap: 64px;
    }
}

.contact-info-title {
    font-size: 20px;
    margin-bottom: 32px;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item {
    display: flex;
    gap: 16px;
}

.contact-item-icon {
    width: 48px;
    height: 48px;
    background-color: var(--muted);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-item-icon svg {
    width: 20px;
    height: 20px;
    color: var(--primary);
}

.contact-item-label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted-foreground);
    margin-bottom: 4px;
}

.contact-item-value {
    display: block;
    font-size: 15px;
}

/* Contact Form */
.contact-form-wrapper {
    background-color: var(--muted);
    border-radius: 8px;
    padding: 32px;
}

@media (min-width: 640px) {
    .contact-form-wrapper {
        padding: 48px;
    }
}

.form-row {
    display: grid;
    gap: 24px;
    margin-bottom: 24px;
}

@media (min-width: 640px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group:last-child {
    margin-bottom: 24px;
}

.form-group label {
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group input,
.form-group textarea {
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 14px 16px;
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--foreground);
    transition: border-color var(--transition-fast);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--muted-foreground);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    padding: 48px 0;
    border-top: 1px solid var(--border);
    background-color: rgba(13, 13, 13, 0.5);
}

.footer-content {
    display: grid;
    gap: 32px;
    align-items: center;
}

@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: auto 1fr auto;
    }
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
}

.footer-nav a {
    font-size: 14px;
    color: var(--muted-foreground);
    transition: color var(--transition-fast);
}

.footer-nav a:hover {
    color: var(--foreground);
}

.footer-copyright {
    text-align: right;
}

.footer-copyright p {
    font-size: 14px;
    color: var(--muted-foreground);
}

.footer-copyright .small {
    font-size: 12px;
    opacity: 0.6;
    margin-top: 4px;
}

.footer-bottom {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid rgba(51, 51, 51, 0.5);
    text-align: center;
}

.footer-bottom p {
    font-size: 12px;
    color: rgba(166, 166, 166, 0.5);
}

.footer-bottom a {
    color: rgba(224, 29, 29, 0.7);
    transition: color var(--transition-fast);
}

.footer-bottom a:hover {
    color: var(--primary);
}

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

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(8px);
    }
}

/* Scroll Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   RESPONSIVE ADJUSTMENTS
   ======================================== */
@media (max-width: 767px) {
    :root {
        --section-padding: 80px;
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        text-align: center;
    }
    
    .footer-copyright {
        text-align: center;
    }
}
