/* --- 1. VARIABLES Y RESET --- */
:root { 
    --accent: #e53935; 
    --bg: #000; 
    --text: #fff; 
    --card-bg: rgba(255, 255, 255, 0.03);
    --border: rgba(255, 255, 255, 0.1);
    --apple-gray: #86868b;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body { 
    font-family: 'Inter', sans-serif; 
    background: var(--bg); 
    color: var(--text); 
    line-height: 1.6;
    overflow-x: hidden; 
}

/* --- 2. HERO (RESPONSIVE INSET) --- */
.hero {
    position: relative;
    width: 100%;
    height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65); 
    z-index: 1;
}

.video-fondo {
    position: absolute;
    top: 50%; left: 50%;
    width: 100%; height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 0;
}

.hero-content { z-index: 2; padding: 20px; width: 100%; max-width: 900px; }

.logo-main { 
    max-width: 160px; 
    margin-bottom: 1.5rem; 
    filter: drop-shadow(0 0 15px rgba(255,255,255,0.2)); 
}

h1 { 
    font-family: 'League Spartan', sans-serif;
    font-size: clamp(2.5rem, 10vw, 5rem); 
    line-height: 0.9;
    letter-spacing: -2px;
    font-weight: 900;
}

h1 span { color: var(--accent); }

.tagline { 
    font-size: 0.85rem; 
    letter-spacing: 4px; 
    text-transform: uppercase; 
    margin: 2rem 0;
    font-weight: 700;
    text-shadow: 2px 2px 10px rgba(0,0,0,1);
}

.btn-main {
    padding: 18px 35px;
    background: var(--accent);
    color: white;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 0.8rem;
    border-radius: 4px;
    display: inline-block;
    transition: 0.3s ease;
}

/* --- 3. AUTHORITY (APPLE STYLE) --- */
.authority { padding: 120px 5%; background: #000; text-align: center; }

.auth-header h2 {
    font-family: 'League Spartan', sans-serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 80px;
    background: linear-gradient(180deg, #fff 0%, #888 100%);
    -webkit-background-clip: text; 
    background-clip: text; 
    -webkit-text-fill-color: transparent;
}

.auth-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.auth-item {
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 60px 40px;
    border-radius: 30px;
    text-align: left;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: all 0.5s cubic-bezier(0.15, 0.83, 0.66, 1);
}

.auth-item::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
}

.auth-icon {
    width: 40px;
    height: 40px;
    color: var(--accent);
    margin-bottom: 25px;
    filter: drop-shadow(0 0 10px rgba(229, 57, 51, 0.4));
}

.auth-item h3 { font-family: 'League Spartan', sans-serif; font-size: 1.5rem; margin-bottom: 15px; }
.auth-item p { color: var(--apple-gray); font-size: 1.1rem; }

.auth-item:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: var(--accent);
    transform: translateY(-10px);
}

/* --- 4. SERVICES (VERSIÓN FAVORITA MOVIL) --- */
.services { 
    padding: 100px 5%; 
    max-width: 1400px; 
    margin: 0 auto; 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); 
    gap: 30px; 
}

.service-card { 
    background-color: var(--card-bg);
    border: 1px solid var(--border);
    padding: 80px 40px; 
    transition: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    background-size: cover;
    background-position: center;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 400px;
    border-radius: 28px;
}

.card-madera { background-image: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.9)), url('bg-madera.avif'); }
.card-cuero { background-image: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.9)), url('bg-cuero.avif'); }
.card-metal { background-image: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.9)), url('bg-metal.avif'); }

.service-card h3 { 
    font-family: 'League Spartan', sans-serif;
    font-size: 2.2rem;
    margin-bottom: 10px; 
    text-transform: uppercase;
    z-index: 1;
}

.service-card p { color: #aaa; font-size: 1.1rem; z-index: 1; transition: 0.3s; }

.service-card:hover { 
    transform: translateY(-10px);
    border-color: var(--accent);
}

.card-madera:hover { background-image: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.6)), url('bg-madera.avif'); }
.card-cuero:hover { background-image: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.6)), url('bg-cuero.avif'); }
.card-metal:hover { background-image: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.6)), url('bg-metal.avif'); }

.service-card:hover p { color: #fff; }

/* --- 5. CONTACT --- */
.contact-cta { padding: 100px 5%; text-align: center; }

.cta-box {
    max-width: 700px;
    margin: 0 auto;
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 60px 40px;
    border-radius: 32px;
}

.cta-btns { display: flex; gap: 16px; justify-content: center; margin: 40px 0; }

.btn-ig, .btn-wa {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: 14px;
    transition: 0.4s;
}

.icon { width: 20px; height: 20px; }

.btn-ig { border: 1px solid rgba(225, 48, 108, 0.3); color: #E1306C; }
.btn-ig:hover { background: #E1306C; color: #fff; transform: translateY(-3px); }

.btn-wa.disabled {
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: #444;
    cursor: not-allowed;
    opacity: 0.5;
    pointer-events: none;
}

.small-info { color: #555; font-size: 0.85rem; margin-top: 20px; }

/* --- 6. MOBILE --- */
@media (max-width: 768px) {
    h1 { font-size: 3.2rem; }
    .authority { padding: 80px 20px; }
    .services { padding: 50px 5%; gap: 20px; }
    .service-card { min-height: 380px; padding: 40px 25px; border-radius: 20px; }
    .cta-btns { flex-direction: column; }
    .btn-ig, .btn-wa { width: 100%; }
}

.v-hidden { position: absolute; left: -9999px; }

/* --- 5. CONTACT (ACTUALIZADO PARA WHATSAPP VERDE "CLICKABLE") --- */
.contact-cta { padding: 100px 5%; text-align: center; }

.cta-box {
    max-width: 700px;
    margin: 0 auto;
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 60px 40px;
    border-radius: 32px;
}

.cta-btns { display: flex; gap: 16px; justify-content: center; margin: 40px 0; }

.btn-ig, .btn-wa {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: 14px;
    transition: all 0.2s ease; /* Transición más rápida para el clic */
    cursor: pointer;
}

.icon { width: 20px; height: 20px; }

/* INSTAGRAM */
.btn-ig { border: 1px solid rgba(225, 48, 108, 0.3); color: #E1306C; }
.btn-ig:hover { background: #E1306C; color: #fff; transform: translateY(-3px); }

/* WHATSAPP "EN ESPERA" PERO VERDE Y PULSABLE */
.btn-wa.disabled {
    border: 1px solid rgba(37, 211, 102, 0.4); /* Borde verde suave */
    color: #25D366; /* Texto verde WhatsApp */
    opacity: 1; /* Brillo total */
    pointer-events: auto; /* Permite que el navegador detecte el toque */
}

/* Efecto visual al pulsar en el móvil */
.btn-wa.disabled:active {
    background: rgba(37, 211, 102, 0.1); /* Se ilumina un poco el fondo */
    transform: scale(0.95); /* Efecto de hundirse al pulsar */
}

.small-info { color: #555; font-size: 0.85rem; margin-top: 20px; }