/* ========================================
   PROMOTORA A LA INDUSTRIA TEXTILERA ALCANZA
   Design: Minimalist Corporate (Slate & Emerald)
   Focus: Precision, Trust, and Modernity
======================================== */

:root {
    /* Color Palette */
    --slate-950: #020617;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-400: #94a3b8;
    --slate-200: #e2e8f0;
    --slate-100: #f1f5f9;
    --slate-50: #f8fafc;
    
    --emerald-600: #059669;
    --emerald-700: #047857;
    --emerald-50: #ecfdf5;
    
    --white: #ffffff;
    
    /* Functional Colors */
    --primary: var(--slate-900);
    --primary-light: var(--slate-800);
    --accent: var(--emerald-600);
    --accent-hover: var(--emerald-700);
    --text-main: var(--slate-700);
    --text-heading: var(--slate-950);
    --border-light: var(--slate-200);
    
    /* Spacing & Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --container-width: 1200px;
    --header-height: 80px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-main);
    background-color: var(--white);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    color: var(--text-heading);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

ul {
    list-style: none;
}

/* ---------- Layout Helpers ---------- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

section {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-eyebrow {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.25rem;
    margin-bottom: 1.25rem;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--slate-500);
}

/* ---------- Header & Nav ---------- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

header.scrolled {
    height: 70px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

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

.logo {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    flex-direction: column;
}

.logo span:last-child {
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--slate-400);
    letter-spacing: 0.1em;
}

nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--slate-600);
}

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

.btn-contact {
    background: var(--primary);
    color: var(--white);
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
}

.btn-contact:hover {
    background: var(--slate-800);
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--primary);
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        border-top: 1px solid var(--border-light);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    }
    
    nav.active {
        display: flex;
    }
}

/* ---------- Hero ---------- */
.hero {
    padding-top: calc(var(--header-height) + 2rem);
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: var(--slate-50);
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    margin-bottom: 1.5rem;
    color: var(--slate-900);
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--slate-600);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-btns {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 1rem 2rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(5, 150, 105, 0.2);
}

.btn-outline {
    border: 2px solid var(--slate-200);
    color: var(--slate-700);
}

.btn-outline:hover {
    border-color: var(--slate-900);
    background: var(--slate-900);
    color: var(--white);
}

.hero-image {
    position: relative;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
}

.hero-badge {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.badge-icon {
    width: 40px;
    height: 40px;
    background: var(--emerald-50);
    color: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---------- About ---------- */
.about {
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-content h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.about-text {
    margin-bottom: 2rem;
    color: var(--slate-600);
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.feature-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.feature-item h4 {
    font-size: 1rem;
    color: var(--slate-900);
}

.feature-item p {
    font-size: 0.85rem;
    color: var(--slate-500);
}

/* ---------- MVV ---------- */
.mvv {
    background: var(--slate-900);
    color: var(--white);
}

.mvv .section-title {
    color: var(--white);
}

.mvv-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.mvv-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 3rem 2rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.mvv-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
}

.mvv-icon {
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.mvv-card h3 {
    color: var(--white);
    margin-bottom: 1rem;
}

.mvv-card p {
    color: var(--slate-400);
    font-size: 0.95rem;
}

/* ---------- Services ---------- */
.services {
    background: var(--slate-50);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
    border: 1px solid var(--slate-100);
}

.service-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    transform: translateY(-5px);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--slate-50);
    color: var(--primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.service-card p {
    color: var(--slate-500);
    font-size: 0.95rem;
}

/* ---------- Sectors ---------- */
.sectors-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.sector-card {
    position: relative;
    height: 300px;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
}

.sector-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.sector-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    transition: background 0.3s ease;
}

.sector-card:hover img {
    transform: scale(1.1);
}

.sector-card h3 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.sector-card p {
    color: var(--slate-300);
    font-size: 0.8rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.sector-card:hover p {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Stats ---------- */
.stats {
    background: var(--white);
    padding: 4rem 0;
    border-top: 1px solid var(--slate-100);
    border-bottom: 1px solid var(--slate-100);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    text-align: center;
}

.stat-item h2 {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: var(--slate-500);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
}

/* ---------- Contact ---------- */
.contact {
    background: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    background: var(--slate-50);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.contact-info {
    padding: 4rem;
    background: var(--primary);
    color: var(--white);
}

.contact-info h2 {
    color: var(--white);
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.detail-item {
    display: flex;
    gap: 1.5rem;
}

.detail-icon {
    color: var(--accent);
}

.detail-content h4 {
    color: var(--white);
    margin-bottom: 0.25rem;
}

.detail-content p {
    color: var(--slate-400);
    font-size: 0.9rem;
}

.contact-map {
    min-height: 400px;
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--slate-400);
}

/* ---------- Footer ---------- */
footer {
    background: var(--slate-50);
    padding: 5rem 0 2rem;
    border-top: 1px solid var(--slate-200);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand .logo {
    margin-bottom: 1.5rem;
}

.footer-brand p {
    color: var(--slate-500);
    font-size: 0.9rem;
    max-width: 320px;
}

.footer-links h4 {
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-links ul li {
    margin-bottom: 0.75rem;
}

.footer-links ul li a {
    color: var(--slate-500);
    font-size: 0.9rem;
}

.footer-links ul li a:hover {
    color: var(--accent);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--slate-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--slate-400);
}

/* ---------- Animations ---------- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .hero-grid, .about-grid, .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .hero-image {
        order: -1;
    }
    
    .mvv-grid, .services-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .sectors-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    nav {
        display: none;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .hero-content h1 {
        font-size: 2.25rem;
    }
    
    .mvv-grid, .services-grid, .sectors-grid, .stats-grid, .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        padding: 2rem;
    }
    
    .footer-grid {
        gap: 2rem;
    }
}
