/*
 * ============================================
 * GRUPO DEGA - CSS Base
 * ============================================
 * Estilos comunes para todas las páginas
 * Variables, reset, tipografía, navbar, footer, WhatsApp button
 */

/* ============================================
   1. VARIABLES CSS Y RESET
   ============================================ */

:root {
    /* Colores Principales - GRUPO DEGA */
    --primary-color: #1a1a1a;
    --primary-dark: #0d0d0d;
    --secondary-color: #E9A033;
    --secondary-dark: #D08A1D;
    --secondary-light: #F5C15D;
    --logo-circle-color: #edab3a;
    /* Color del círculo del logo - match exacto con marca */
    --accent-color: #2C2C2C;

    /* Colores de Texto */
    --text-light: #ffffff;
    --text-dark: #1a1a1a;
    --text-muted: #5a5a5a;

    /* Grises */
    --gray-light: #f5f5f5;
    --gray-medium: #e0e0e0;
    --gray-dark: #3a3a3a;

    /* Gradientes */
    --gradient-primary: linear-gradient(135deg, #1a1a1a 0%, #2C2C2C 100%);
    --gradient-secondary: linear-gradient(135deg, #E9A033 0%, #F5C15D 100%);
    --gradient-dark: linear-gradient(180deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 100%);
    --gradient-overlay: linear-gradient(135deg, rgba(26, 26, 26, 0.9) 0%, rgba(44, 44, 44, 0.85) 100%);

    /* Sombras */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 15px 50px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 30px rgba(233, 160, 51, 0.4);

    /* Bordes */
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 20px;
    --border-radius-xl: 30px;

    /* Transiciones */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);

    /* Espaciado */
    --section-padding: 100px 0;
    --container-padding: 0 20px;

    /* Z-index */
    --z-navbar: 1000;
    --z-modal: 1050;
    --z-whatsapp: 999;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--text-light);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-normal);
}

ul,
ol {
    list-style: none;
}

/* ============================================
   2. TIPOGRAFÍA
   ============================================ */

/* Fuente para GRUPO DEGA y títulos destacados - Similar al logo */
.brand-title,
.nav-logo-text,
.hero-brand {
    font-family: 'Bebas Neue', 'Impact', sans-serif;
    font-weight: 400;
    letter-spacing: 3px;
}

/* Títulos principales */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Bebas Neue', 'Impact', sans-serif;
    font-weight: 400;
    line-height: 1.2;
    color: var(--primary-color);
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    letter-spacing: 0;
}

h5,
h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    letter-spacing: 0;
}

p {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.text-gradient {
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   3. LAYOUT GENERAL
   ============================================ */

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--container-padding);
}

.container-lg {
    max-width: 1400px;
}

.section {
    padding: var(--section-padding);
    position: relative;
}

.section-dark {
    background: var(--gradient-primary);
    color: var(--text-light);
}

.section-dark h2,
.section-dark h3,
.section-dark h4 {
    color: var(--text-light);
}

.section-gray {
    background-color: var(--gray-light);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-secondary);
    border-radius: 2px;
}

.section-header p {
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* ============================================
   4. NAVBAR
   ============================================ */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: var(--z-navbar);
    padding: 15px 0;
    transition: var(--transition-smooth);
}

.navbar.scrolled {
    background: rgba(26, 26, 26, 0.98);
    padding: 10px 0;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(10px);
}

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

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

/* Logo circular en navbar */
.nav-logo-circle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--logo-circle-color);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.nav-logo-circle .nav-logo-img {
    width: 32px;
    height: auto;
    object-fit: contain;
}

.nav-logo-img {
    height: 50px;
    width: auto;
    transition: var(--transition-normal);
}

/* Texto del logo en navbar */
.nav-logo-text {
    font-family: 'Black Ops One', 'Bebas Neue', 'Impact', sans-serif;
    font-size: 1.3rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.nav-logo-text span {
    color: var(--secondary-color);
}

/* El logo se mantiene igual al hacer scroll */
.navbar.scrolled .nav-logo-text {
    color: var(--text-light);
}

.navbar.scrolled .nav-logo-text span {
    color: var(--secondary-color);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-link {
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: var(--transition-normal);
}

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

.nav-link:hover,
.nav-link.active {
    color: var(--secondary-color);
}

/* Mobile Menu Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.nav-toggle span {
    width: 28px;
    height: 3px;
    background: var(--text-light);
    border-radius: 3px;
    transition: var(--transition-normal);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ============================================
   5. COMPONENTES COMUNES
   ============================================ */

/* Iconos con fondo */
.icon-box {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-secondary);
    border-radius: var(--border-radius-md);
    margin-bottom: 25px;
    transition: var(--transition-smooth);
}

.icon-box i {
    font-size: 2rem;
    color: var(--text-light);
}

.icon-box-sm {
    width: 60px;
    height: 60px;
}

.icon-box-sm i {
    font-size: 1.5rem;
}

/* Dividers */
.divider {
    width: 80px;
    height: 4px;
    background: var(--gradient-secondary);
    border-radius: 2px;
    margin: 20px 0;
}

.divider-center {
    margin: 20px auto;
}

/* ============================================
   6. BOTONES
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 35px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    border-radius: var(--border-radius-xl);
    margin: 5px;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-secondary);
    color: var(--text-light);
    box-shadow: 0 4px 15px rgba(233, 160, 51, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(233, 160, 51, 0.5);
}

.btn-outline {
    background: transparent;
    color: var(--text-light);
    border: 2px solid var(--text-light);
}

.btn-outline:hover {
    background: var(--text-light);
    color: var(--primary-color);
    transform: translateY(-3px);
}

.btn-dark {
    background: var(--gradient-primary);
    color: var(--text-light);
}

.btn-dark:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-whatsapp {
    background: #25D366;
    color: var(--text-light);
}

.btn-whatsapp:hover {
    background: #20bf5b;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

.btn-sm {
    padding: 12px 25px;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 20px 45px;
    font-size: 1rem;
}

/* ============================================
   7. FOOTER
   ============================================ */

.footer {
    background: var(--primary-dark);
    color: var(--text-light);
    padding-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr;
    gap: 50px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
    max-width: 280px;
}

.footer-brand .nav-logo {
    margin-bottom: 25px;
}

/* Footer Logo */
.footer-logo {
    display: inline-block;
    margin-bottom: 25px;
}

.footer-logo-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    text-decoration: none;
}

.footer-logo-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #edab3a;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.footer-logo-circle .footer-logo-img {
    width: 45px;
    height: auto;
    object-fit: contain;
}

.footer-brand-text {
    font-family: 'Black Ops One', 'Bebas Neue', 'Impact', sans-serif;
    font-size: 1.5rem;
    color: var(--text-light);
    letter-spacing: 2px;
}

.footer-brand-text span {
    color: var(--secondary-color);
}

.footer-logo-img {
    height: 60px;
    width: auto;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 25px;
    font-size: 0.95rem;
    text-align: justify;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--text-light);
    font-size: 1.1rem;
    transition: var(--transition-normal);
}

.footer-social a:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

.footer-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 25px;
    color: var(--text-light);
    position: relative;
    letter-spacing: 0;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--secondary-color);
    border-radius: 2px;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    transition: var(--transition-normal);
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-links a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-links a i {
    font-size: 0.8rem;
    color: var(--secondary-color);
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.footer-contact li i {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-top: 3px;
}

.footer-bottom {
    padding: 25px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    margin: 0;
}

/* ============================================
   8. WHATSAPP FLOATING BUTTON
   ============================================ */

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: var(--z-whatsapp);
}

.whatsapp-float a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 65px;
    height: 65px;
    background: #25D366;
    border-radius: 50%;
    color: var(--text-light);
    font-size: 2rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
    transition: var(--transition-smooth);
    animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float a:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-float-tooltip {
    position: absolute;
    right: 80px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--text-light);
    color: var(--text-dark);
    padding: 12px 20px;
    border-radius: var(--border-radius-md);
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
}

.whatsapp-float:hover .whatsapp-float-tooltip {
    opacity: 1;
    visibility: visible;
}

.whatsapp-float-tooltip::after {
    content: '';
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    border: 5px solid transparent;
    border-left-color: var(--text-light);
}

@keyframes pulse-whatsapp {

    0%,
    100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
    }

    50% {
        box-shadow: 0 4px 30px rgba(37, 211, 102, 0.8);
    }
}

/* ============================================
   9. ANIMACIONES
   ============================================ */

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-15px);
    }

    60% {
        transform: translateX(-50%) translateY(-7px);
    }
}

/* Loading spinner */
.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--gray-medium);
    border-top-color: var(--secondary-color);
    border-radius: 50%;
    animation: rotate 1s linear infinite;
}

/* Page loader */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: var(--transition-slow);
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.page-loader .loading-spinner {
    width: 60px;
    height: 60px;
    border-width: 5px;
}

/* ============================================
   10. UTILIDADES
   ============================================ */

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

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

.text-uppercase {
    text-transform: uppercase;
}

.text-primary {
    color: var(--primary-color);
}

.text-secondary {
    color: var(--secondary-color);
}

.text-white {
    color: var(--text-light);
}

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

.mt-0 {
    margin-top: 0;
}

.mt-1 {
    margin-top: 10px;
}

.mt-2 {
    margin-top: 20px;
}

.mt-3 {
    margin-top: 30px;
}

.mt-4 {
    margin-top: 40px;
}

.mt-5 {
    margin-top: 50px;
}

.mb-0 {
    margin-bottom: 0;
}

.mb-1 {
    margin-bottom: 10px;
}

.mb-2 {
    margin-bottom: 20px;
}

.mb-3 {
    margin-bottom: 30px;
}

.mb-4 {
    margin-bottom: 40px;
}

.mb-5 {
    margin-bottom: 50px;
}

.d-none {
    display: none;
}

.d-block {
    display: block;
}

.d-flex {
    display: flex;
}

.d-grid {
    display: grid;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.flex-wrap {
    flex-wrap: wrap;
}

.gap-1 {
    gap: 10px;
}

.gap-2 {
    gap: 20px;
}

.gap-3 {
    gap: 30px;
}

.w-100 {
    width: 100%;
}

.rounded {
    border-radius: var(--border-radius-md);
}

.rounded-lg {
    border-radius: var(--border-radius-lg);
}

.shadow-md {
    box-shadow: var(--shadow-md);
}

.shadow-lg {
    box-shadow: var(--shadow-lg);
}

/* ============================================
   11. RESPONSIVE BASE
   ============================================ */

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        max-width: 400px;
        height: 100vh;
        background: var(--primary-dark);
        flex-direction: column;
        justify-content: center;
        gap: 30px;
        transition: var(--transition-smooth);
        box-shadow: var(--shadow-xl);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-link {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 70px 0;
    }

    .footer-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "brand brand"
            "links contact";
        gap: 30px 20px;
        text-align: left;
    }

    .footer-brand {
        grid-area: brand;
        max-width: 100%;
        text-align: center;
    }

    .footer-brand p {
        text-align: center;
        max-width: 400px;
        margin: 0 auto 25px;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-links-col {
        grid-area: links;
    }

    .footer-contact-col {
        grid-area: contact;
    }

    .footer-title {
        font-size: 1rem;
        margin-bottom: 15px;
    }

    .footer-title::after {
        width: 30px;
    }

    .footer-links a,
    .footer-contact li {
        font-size: 0.8rem;
        padding: 5px 0;
    }

    .footer-links a i,
    .footer-contact li i {
        font-size: 0.75rem;
        width: 16px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        padding-top: 20px;
        font-size: 0.8rem;
    }

    .whatsapp-float {
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-float a {
        width: 55px;
        height: 55px;
        font-size: 1.6rem;
    }

    .whatsapp-float-tooltip {
        display: none;
    }

    .section-header {
        margin-bottom: 40px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .btn {
        padding: 14px 28px;
        font-size: 0.85rem;
    }

    .nav-logo-text {
        font-size: 1.2rem;
    }
}