/*
Theme Name: Kemuel Trámites y Asesorías
Theme URI: https://kemueltramitesyasesorias.top
Author: Gemini
Author URI: https://gemini.google.com
Description: Tema personalizado de una sola página (One-Page) para Kemuel.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: kemuel
*/

/* --- VARIABLES DE COLOR Y DISEÑO --- */
:root {
    --primary: #0A2E5C; /* Azul oscuro corporativo */
    --accent: #F37B24;  /* Naranja Kemuel */
    --dark-bg: #0b0f19;
    --dark-card: #151f32;
    --light-text: #f0f4f8;
    --gray-text: #9ba4b5;
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* --- RESET Y BASE --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    background-color: var(--dark-bg);
    color: var(--light-text);
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, h4, h5 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

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

/* --- NAVEGACIÓN (HEADER) --- */
header {
    position: fixed;
    top: 0; width: 100%;
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: var(--transition);
    background: rgba(11, 15, 25, 0.4);
    backdrop-filter: blur(5px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

header.scrolled {
    background: rgba(10, 46, 92, 0.98);
    padding: 12px 5%;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
}

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

.logo img {
    height: 70px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}

.logo span {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 1.5rem;
    letter-spacing: 1px;
    color: white;
}

nav ul {
    display: flex;
    gap: 25px;
    list-style: none;
    align-items: center;
}

nav ul li a {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    position: relative;
}

nav ul li a::after {
    content: ''; position: absolute;
    width: 0; height: 2px;
    bottom: -5px; left: 0;
    background-color: var(--accent);
    transition: var(--transition);
}

nav ul li a:hover::after { width: 100%; }
nav ul li a:hover { color: var(--accent); }

.btn-header {
    background: var(--accent);
    padding: 10px 20px;
    border-radius: 30px;
    color: white !important;
    border: none;
}
.btn-header::after { display: none !important; }
.btn-header:hover {
    background: #d6681a;
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(243, 123, 36, 0.4);
}

/* --- HERO SECTION (PARALLAX COCHES ALTA GAMA) --- */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 5%;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: -10%; left: 0; width: 100%; height: 120%;
    /* Imagen de coche de alta gama oscura y elegante */
    background: linear-gradient(to right, rgba(11, 15, 25, 0.9) 20%, rgba(11, 15, 25, 0.4) 100%), 
                url('https://images.unsplash.com/photo-1603584173870-7f23fdae1b7a?ixlib=rb-4.0.3&auto=format&fit=crop&w=2069&q=80') center/cover no-repeat;
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    z-index: 1;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
    text-transform: uppercase;
    background: linear-gradient(to right, #fff, #9ba4b5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero h1 span {
    color: var(--accent);
    -webkit-text-fill-color: var(--accent);
}

.hero p {
    font-size: 1.2rem;
    color: var(--gray-text);
    margin-bottom: 30px;
    max-width: 600px;
}

.btn-primary {
    display: inline-flex; align-items: center; gap: 10px;
    background: var(--accent); color: white;
    padding: 15px 35px; font-size: 1.1rem;
    font-weight: 700; border-radius: 50px;
    box-shadow: 0 10px 30px rgba(243, 123, 36, 0.3);
    transition: var(--transition);
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(243, 123, 36, 0.5);
}

/* --- SECCIONES GENÉRICAS --- */
section { padding: 100px 5%; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { font-size: 2.5rem; text-transform: uppercase; margin-bottom: 15px; }
.section-header h2 span { color: var(--accent); }
.section-header p { color: var(--gray-text); max-width: 700px; margin: 0 auto; }

/* --- QUIÉNES SOMOS --- */
.about-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 50px;
    align-items: center; max-width: 1200px; margin: 0 auto;
}
.about-text h3 { font-size: 2rem; margin-bottom: 20px; color: var(--accent); }
.about-text p { font-size: 1.1rem; color: var(--gray-text); margin-bottom: 20px; }

.about-image {
    position: relative; border-radius: 20px; overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}
.about-image img {
    width: 100%; display: block;
    /* Imagen de Moto de alta gama */
    content: url('https://images.unsplash.com/photo-1558981403-c5f9899a28bc?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80');
}

/* --- SERVICIOS --- */
.services-bg { background-color: var(--dark-card); }
.services-container {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px; max-width: 1300px; margin: 0 auto;
}

.service-box {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 30px; border-radius: 15px;
    transition: var(--transition);
    position: relative; overflow: hidden;
}
.service-box::before {
    content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%;
    background: var(--accent); transform: scaleY(0); transition: transform 0.4s ease;
    transform-origin: bottom;
}
.service-box:hover::before { transform: scaleY(1); transform-origin: top; }
.service-box:hover {
    background: rgba(255,255,255,0.05);
    transform: translateY(-5px);
    border-color: rgba(243, 123, 36, 0.3);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.service-icon { font-size: 2.5rem; color: var(--accent); margin-bottom: 20px; }
.service-box h4 { font-size: 1.2rem; margin-bottom: 10px; color: white; }

/* --- POR QUÉ ELEGIRNOS --- */
.features {
    background: linear-gradient(rgba(11, 15, 25, 0.9), rgba(10, 46, 92, 0.9)), 
                url('https://images.unsplash.com/photo-1492144534655-ae79c964c9d7?ixlib=rb-4.0.3&auto=format&fit=crop&w=2083&q=80') center/cover fixed;
}
.features-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px; max-width: 1200px; margin: 0 auto; text-align: center;
}
.feature-item i {
    font-size: 3rem; color: var(--accent); margin-bottom: 20px;
    background: rgba(255,255,255,0.1); width: 100px; height: 100px;
    line-height: 100px; border-radius: 50%;
    display: inline-block;
}
.feature-item h4 { font-size: 1.1rem; color: white; }

/* --- CONTACTO Y UBICACIÓN --- */
.contact-section { background: var(--dark-bg); }
.contact-wrapper {
    display: grid; grid-template-columns: 1fr 1fr; gap: 50px;
    max-width: 1200px; margin: 0 auto; background: var(--dark-card);
    border-radius: 20px; overflow: hidden; box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}
.contact-info { padding: 50px; }
.contact-info h3 { font-size: 2rem; margin-bottom: 30px; color: var(--accent); }

.info-item { display: flex; gap: 20px; margin-bottom: 25px; align-items: center; }
.info-item i { font-size: 1.5rem; color: var(--accent); width: 30px; text-align: center;}
.info-item div h5 { font-size: 1.1rem; margin-bottom: 5px; color: white;}
.info-item div p { color: var(--gray-text); font-size: 0.95rem; }

.social-links { margin-top: 40px; display: flex; gap: 15px; }
.social-links a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 45px; height: 45px; background: rgba(255,255,255,0.05);
    border-radius: 50%; color: white; font-size: 1.2rem; transition: var(--transition);
}
.social-links a:hover { background: var(--accent); transform: translateY(-5px); }

.contact-map { min-height: 400px; background: #1a253a; display: flex; align-items: center; justify-content: center;}
.contact-map iframe { width: 100%; height: 100%; border: none; }

/* --- FOOTER Y MODAL T&C --- */
footer {
    background: #05080e; padding: 40px 5%; text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
}
footer p { color: var(--gray-text); font-size: 0.9rem; margin-bottom: 10px; }

.btn-terms {
    background: none; border: none; color: var(--accent);
    text-decoration: underline; cursor: pointer; font-family: inherit; font-size: 0.9rem;
}

/* Modal Términos y Condiciones */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8); backdrop-filter: blur(5px);
    z-index: 2000; display: none; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.3s ease;
}
.modal-overlay.active { display: flex; opacity: 1; }
.modal-content {
    background: var(--dark-card); width: 90%; max-width: 800px;
    max-height: 85vh; border-radius: 15px; padding: 40px;
    position: relative; overflow-y: auto;
    border: 1px solid rgba(255,255,255,0.1);
}
.close-modal {
    position: absolute; top: 20px; right: 20px;
    background: none; border: none; color: white; font-size: 1.5rem;
    cursor: pointer; transition: color 0.3s;
}
.close-modal:hover { color: var(--accent); }
.modal-content h2 { margin-bottom: 20px; color: var(--accent); }
.modal-content p, .modal-content ul { color: var(--gray-text); font-size: 0.9rem; margin-bottom: 15px; }
.modal-content ul { padding-left: 20px; }

/* --- ANIMACIONES DE SCROLL --- */
.reveal { opacity: 0; transform: translateY(40px); transition: 0.8s all ease; }
.reveal.active { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
    .about-grid, .contact-wrapper { grid-template-columns: 1fr; }
    nav ul { display: none; }
    .hero h1 { font-size: 2.8rem; }
}
