/* --- IMPORTS (FUENTES) --- */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap');

/* --- VARIABLES & RESET --- */
:root {
    /* ============================== */
    /*          COLORES               */
    /* ============================== */
    --color-bg: #3a3a3a;
    --color-bg-dark: #323232;
    --color-accent: #df5313;
    --color-accent-hover: #c44910;
    --color-text: #ffffff;
    --color-text-muted: #cccccc;
    --color-overlay: rgba(58, 58, 58, 0.95);

    /* ============================== */
    /*          TIPOGRAFÍAS           */
    /* ============================== */
    /* Fuente para Títulos (Bebas Neue) */
    --font-headings: "Bebas Neue", sans-serif;
    
    /* Fuente para Cuerpo de Texto (Original) */
    --font-main: system-ui, -apple-system, sans-serif;
    
    /* Ancho máximo del contenido */
    --max-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main); /* Tipografía base */
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
}

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

ul {
    list-style: none;
}

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

/* --- UTILITIES --- */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-subtitle {
    color: var(--color-accent);
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 0.5rem;
}

.section-heading {
    font-family: var(--font-headings); /* APLICADO: Bebas Neue */
    font-size: 3.5rem; /* Aumentado para compensar el estilo condensado */
    font-weight: 400; /* Bebas Neue suele ser weight 400 */
    letter-spacing: 1px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    font-family: var(--font-main); /* Botones mantienen fuente legible */
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.btn-primary:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-2px);
}

.btn-outline {
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
}

.btn-outline:hover {
    background-color: white;
    color: var(--color-bg);
}

/* --- HEADER --- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    max-width: 100vw;
    z-index: 1000;
    background-color: var(--color-overlay);
    backdrop-filter: blur(5px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

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

.logo-img {
    height: 40px;
    width: auto;
    display: block;
    transition: opacity 0.3s ease;
}

.logo-img:hover {
    opacity: 0.8;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links a:hover, .logo:hover {
    color: var(--color-accent);
}

.nav-cta {
    background-color: var(--color-accent);
    padding: 8px 16px;
    border-radius: 4px;
}

.nav-cta:hover {
    background-color: var(--color-accent-hover);
    color: white !important;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

/* Ocultar menú móvil en desktop */
#mobile-menu {
    display: none;
}

/* --- HERO --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
    background-image: url("webp/img_hero_03.webp");
    background-size: 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: var(--color-accent);
    filter: blur(150px);
    opacity: 0.1;
    z-index: -1;
    border-radius: 50%;
    transform: translate(50%, -25%);
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: white;
    filter: blur(150px);
    opacity: 0.1;
    z-index: -1;
    border-radius: 50%;
    transform: translate(-50%, 25%);
}

.hero-content h1 {
    font-family: var(--font-headings); /* APLICADO: Bebas Neue */
    font-size: 5.5rem; /* Título principal más grande */
    line-height: 1;
    margin-bottom: 1.5rem;
    font-weight: 400;
    letter-spacing: 2px;
}

.hero-content span {
    color: var(--color-accent);
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    max-width: 700px;
    margin: 0 auto 2.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* --- NOSOTROS --- */
.section-padding {
    padding: 6rem 0;
}

.bg-dark {
    background-color: var(--color-bg-dark);
}

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

.about-text h3 {
    font-family: var(--font-headings); /* APLICADO: Bebas Neue */
    font-size: 3rem;
    margin-bottom: 1.5rem;
    font-weight: 400;
    letter-spacing: 1px;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--color-text-muted);
    font-size: 1.1rem;
}

.features-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.features-list svg {
    color: var(--color-accent);
    width: 24px;
    height: 24px;
    margin-right: 12px;
    flex-shrink: 0;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    border-radius: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- SERVICIOS --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

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

.service-card:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.service-icon {
    width: 55px;
    height: 55px;
    background-color: rgba(223, 83, 19, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: background-color 0.3s;
    position: relative;
}

.service-card:hover .service-icon {
    background-color: var(--color-accent);
}

.service-icon img {
    width: 55px;
    height: 55px;
    position: absolute;
    transition: opacity 0.3s ease;
}

.icon-normal {
    opacity: 1;
}

.icon-hover {
    opacity: 0;
}

.service-card:hover .icon-normal {
    opacity: 0;
}

.service-card:hover .icon-hover {
    opacity: 1;
}

/* --- CONTACTO --- */
.contact-grid {
    display: flex;
    justify-content: center;
    gap: 3rem;
}

.contact-form-container {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    max-width: 600px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    background-color: #2a2a2a;
    border: 1px solid #4a4a4a;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    color: white;
    font-family: inherit;
    font-size: 1rem;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 1px var(--color-accent);
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.contact-icon-wrapper {
    background-color: rgba(223, 83, 19, 0.2);
    padding: 1rem;
    border-radius: 50%;
    margin-right: 1rem;
    flex-shrink: 0;
    transition: transform 0.3s ease, background-color 0.3s ease;
    position: relative;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon-wrapper:hover {
    transform: scale(1.1);
    background-color: var(--color-accent);
}

.contact-icon-wrapper img {
    width: 55px;
    height: 55px;
    position: absolute;
    transition: opacity 0.3s ease;
}

.contact-icon-normal {
    opacity: 1;
}

.contact-icon-hover {
    opacity: 0;
}

.contact-icon-wrapper:hover .contact-icon-normal {
    opacity: 0;
}

.contact-icon-wrapper:hover .contact-icon-hover {
    opacity: 1;
}
.contact-details h4 {
    font-family: var(--font-headings); /* APLICADO: Bebas Neue */
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 0.25rem;
    letter-spacing: 0.5px;
}

.contact-link {
    color: var(--color-text-muted);
}

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

/* --- FOOTER --- */
footer {
    background-color: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 4rem 0 2rem;
}

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

.footer-brand {
    font-family: var(--font-headings); /* APLICADO: Bebas Neue */
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.footer-links li, .footer-social li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--color-text-muted);
}

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

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    color: var(--color-text-muted);
}

.social-icons a:hover {
    color: var(--color-accent);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #666;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    /* Ajustes generales */
    body {
        overflow-x: hidden;
    }
    
    .container {
        padding: 0 15px;
    }
    
    /* Navegación */
    .navbar .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    #mobile-menu {
        display: none;
    }

    #mobile-menu.active {
        display: block;
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--color-bg);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding: 1rem;
        z-index: 999;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    }
    
    #mobile-menu a {
        display: block;
        padding: 10px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    /* Hero */
    .hero {
        background-size: cover;
        background-attachment: scroll; /* Quita parallax en móvil */
        background-position: center;
        padding: 80px 20px 40px;
        min-height: 100vh;
    }
    
    .hero-content h1 {
        font-size: 2.5rem; /* Más pequeño para móvil */
        line-height: 1.2;
    }
    
    .hero-content p {
        font-size: 1rem;
        padding: 0 10px;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        padding: 0 20px;
    }
    
    .hero-buttons .btn {
        width: 100%;
        text-align: center;
    }

    /* Títulos de secciones */
    .section-heading {
        font-size: 2.5rem;
    }
    
    .section-padding {
        padding: 3rem 0;
    }

    /* Grids */
    .about-grid, 
    .contact-grid, 
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }

    /* Servicios */
    .service-card {
        padding: 1.5rem;
    }
    
    .service-card h4 {
        font-size: 1.5rem;
    }

    /* Formulario de contacto */
    .contact-form-container {
        padding: 1.5rem;
    }
    
    /* Modal */
    .modal-content {
        width: 95%;
        height: 85vh;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-brand {
        font-size: 2rem;
    }
}

/* Pantallas muy pequeñas */
@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .section-heading {
        font-size: 2rem;
    }
    
    .service-icon {
        width: 48px;
        height: 48px;
    }
    
    .service-icon img {
        width: 48px;
        height: 48px;
    }
}

/* --- MODALS --- */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background-color: var(--color-bg-dark);
    width: 90%;
    max-width: 900px;
    max-width: min(900px, 95vw);
    height: 80vh;
    border-radius: 10px;
    position: relative;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
    overflow: hidden;
    overflow-x: hidden;
}

.modal-body {
    width: 100%;
    height: 100%;
    padding: 2rem;
    overflow-y: hidden;
    overflow-x: hidden;
    max-width: 100%;
}

.modal-content iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.modal-content.small-modal {
    max-width: 400px;
    height: auto;
    padding: 2rem;
    text-align: center;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10;
    line-height: 1;
}

.modal-close:hover {
    color: var(--color-accent);
}

.modal-message h3 {
    font-family: var(--font-headings);
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* Make service cards look interactive */
.service-card {
    cursor: pointer;
}

/* Interactividad Contacto */
.contact-icon-wrapper {
    transition: transform 0.3s ease, background-color 0.3s ease;
}
.contact-icon-wrapper:hover {
    transform: scale(1.1);
    background-color: var(--color-accent);
    color: white;
}
.contact-icon-wrapper:hover svg {
    color: white;
}

/* --- ANIMACIONES --- */
.anim-founder {
    opacity: 0;
    transform: translateX(400px); /* Empieza desplazada a la derecha */
    transition: all 1.5s ease-out; /* Transición suave de 1.2 segundos */
}

.anim-founder.animate-in {
    opacity: 1;
    transform: translateX(0); /* Llega a su posición original */
}

/* --- ANIMACIONES HERO --- */
.hero-content h1 {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease-out 0.3s;
}

.hero-content h1.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.hero-content p {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease-out 0.6s;
}

.hero-content p.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.hero-buttons {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease-out 0.9s;
}

.hero-buttons.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* --- ICONOS SVG PERSONALIZADOS --- */
.service-icon svg {
    width: 55px;
    height: 55px;
    transition: all 0.3s ease;
}

.service-icon .icon-bg {
    fill: #63473a;
    transition: fill 0.3s ease;
}

.service-icon .icon-fg {
    fill: #63473a;
    stroke: #ffffff;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon .icon-bg {
    fill: #df5313;
}

.service-card:hover .service-icon .icon-fg {
    fill: #df5313;
    stroke: #ffffff;
}

/* Scrollbar Personalizado */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--color-bg);
}
::-webkit-scrollbar-thumb {
    background: var(--color-accent);
    border-radius: 2px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-accent-hover);
}