@font-face {
    font-family: 'CustomRegular';
    src: url('../fonts/fuente-regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* ===== VARIABLES GLOBALES ===== */
:root {
    --primary-blue: #0000ff;
    --primary-yellow: #c2c23c;
    --secondary-purple: #686896;
    --neutral-gray: #80807e;
    --black: #000;
    --white: #fff;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --font-accent: 'Poppins', sans-serif;
    --font-logo: 'Orbitron', monospace;
    --font-custom: 'CustomRegular', sans-serif;
}

/* ===== RESET Y ESTILOS GLOBALES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--white);
    color: var(--black);
    overflow-x: hidden;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== ANIMACIONES GLOBALES ===== */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes slideInRight {
    0% { transform: translateX(100%); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

@keyframes slideInLeft {
    0% { transform: translateX(-100%); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

@keyframes fadeInUp {
    0% { transform: translateY(30px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

@keyframes slideDown {
    0% { transform: translateY(-10px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* ===== CLASES UTILITARIAS ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== TOP MENU ===== */
.top-menu {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-purple));
    padding: 10px 0;
    font-size: 0.85rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

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

.contact-info {
    display: flex;
    gap: 25px;
    color: var(--white);
    font-family: var(--font-body);
}

.contact-info span {
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.contact-info span:hover {
    transform: scale(1.05);
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    color: var(--white);
    font-size: 1.1rem;
    transition: all 0.3s ease;
    padding: 8px;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.social-links a:hover {
    background: var(--primary-yellow);
    color: var(--white);
    transform: rotate(360deg) scale(1.2);
}

/* ===== MAIN HEADER ===== */
.main-header {
    background-color: var(--white);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== LOGO ===== */
.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: inherit;
}

.logo a:hover {
    text-decoration: none;
}

.logo img {
    height: 50px;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.1);
    animation: pulse 2s infinite;
}

.logo-text {
    font-family: var(--font-logo);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-blue);
    transition: all 0.3s ease;
}

.logo-text:hover {
    color: var(--primary-yellow);
    transform: scale(1.05);
}

/* ===== NAVEGACIÓN ===== */
.nav-menu {
    display: flex;
    gap: 25px;
    align-items: center;
    margin-right: 0;
}

.nav-menu > a {
    text-decoration: none;
    color: var(--black);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 1rem;
    padding: 10px 0;
    transition: all 0.3s ease;
    position: relative;
}

.nav-menu > a:hover {
    color: var(--primary-blue);
    transform: translateY(-2px);
}

.nav-menu > a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-blue);
    transition: width 0.3s ease;
}

.nav-menu > a:hover::after {
    width: 100%;
}

/* ===== DROPDOWN MENU ===== */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    color: var(--black);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 1rem;
    padding: 10px 0;
    transition: all 0.3s ease;
    position: relative;
}

.dropdown-toggle:hover {
    color: var(--primary-blue);
    transform: translateY(-2px);
}

.dropdown-toggle::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-blue);
    transition: width 0.3s ease;
}

.dropdown-toggle:hover::after {
    width: 100%;
}

.dropdown-toggle i {
    transition: transform 0.3s ease;
    font-size: 0.8rem;
}

.dropdown:hover .dropdown-toggle i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-radius: 10px;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    animation: slideDown 0.3s ease-out;
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    color: var(--black);
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border-bottom: 1px solid #f0f0f0;
}

.dropdown-menu a:last-child {
    border-bottom: none;
}

.dropdown-menu a:hover {
    background: var(--primary-blue);
    color: var(--white);
    padding-left: 25px;
}

.dropdown-menu a:first-child {
    border-radius: 10px 10px 0 0;
}

.dropdown-menu a:last-child {
    border-radius: 0 0 10px 10px;
}

/* ===== MOBILE MENU ===== */
.mobile-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    padding: 10px;
}

.mobile-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-blue);
    transition: all 0.3s ease;
    border-radius: 2px;
}

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

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

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

/* ===== BREADCRUMB ===== */
.breadcrumb {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 20px 0;
    border-bottom: 1px solid #e0e0e0;
}

.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.breadcrumb-nav a {
    color: var(--neutral-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-nav a:hover {
    color: var(--primary-blue);
}

.breadcrumb-nav span.current {
    color: var(--primary-blue);
    font-weight: 600;
}

.breadcrumb-nav span i {
    color: #ccc;
    font-size: 0.7rem;
}

/* ===== SECTION HEADER GLOBAL ===== */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    color: var(--primary-blue);
    margin-bottom: 15px;
    position: relative;
}

.section-header h2::after {
    content: '';
    position: absolute;
    width: 100px;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-yellow));
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.section-header p {
    font-size: 1.1rem;
    color: var(--neutral-gray);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== BOTONES GLOBALES ===== */
.cta-button {
    background: linear-gradient(135deg, var(--primary-yellow), #e6e600);
    color: var(--black);
    padding: 15px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 8px 25px rgba(194, 194, 60, 0.4);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(194, 194, 60, 0.6);
    animation: pulse 1s infinite;
}

.cta-button.primary {
    background: linear-gradient(135deg, var(--primary-yellow), #e6e600);
    color: var(--black);
}

.cta-button.secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.cta-button.secondary:hover {
    background: var(--white);
    color: var(--primary-blue);
    transform: translateY(-3px);
}

.service-btn {
    background: linear-gradient(135deg, var(--primary-yellow), #e6e600);
    color: var(--black);
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(194, 194, 60, 0.3);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: none;
    cursor: pointer;
}

.service-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(194, 194, 60, 0.6);
}

/* ===== FORMULARIOS GLOBALES ===== */
.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    background: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,255,0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--black);
    color: var(--white);
    padding: 60px 0 20px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.02) 50%, transparent 70%);
    animation: float 15s ease-in-out infinite;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.footer-section h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--primary-yellow);
}

.footer-section p {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--primary-yellow);
    padding-left: 5px;
}

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

.footer-social a {
    color: var(--white);
    font-size: 1.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
    padding: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
}

.footer-social a:hover {
    color: var(--primary-yellow);
    transform: scale(1.3) rotate(360deg);
    background: rgba(194, 194, 60, 0.2);
}

.footer .contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: #ccc;
    background: none;
    box-shadow: none;
    padding: 0;
}

.footer .contact-item:hover {
    transform: none;
    color: var(--primary-yellow);
}

.footer .contact-item i {
    color: var(--primary-yellow);
    width: 20px;
    font-size: 1rem;
    margin-top: 0;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    text-align: center;
    color: #ccc;
    position: relative;
    z-index: 1;
}

/* ===== PROGRESS BAR ===== */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-yellow));
    z-index: 9999;
    transition: width 0.1s ease;
}

/* ===== DISEÑO RESPONSIVO BASE ===== */
@media (max-width: 1024px) {
    .header-content {
        padding: 0 15px;
    }
    
    .nav-menu {
        gap: 20px;
    }
    
    .logo-text {
        font-size: 1.4rem;
    }
    
    .section-header h2 {
        font-size: 2.4rem;
    }
}

@media (max-width: 768px) {
    .contact-info {
        flex-direction: column;
        gap: 10px;
        font-size: 0.8rem;
    }

    .header-content {
        padding: 0 10px;
    }
    
    .logo-text {
        font-size: 1.2rem;
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        border-radius: 0;
        background: #f8f9fa;
        margin-top: 10px;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.1);
        gap: 10px;
    }

    .nav-menu.active {
        display: flex;
        animation: slideInRight 0.3s ease-out;
    }

    .mobile-toggle {
        display: flex;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

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

    .section-header h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 480px) {
    .logo {
        gap: 8px;
    }
    
    .logo img {
        height: 40px;
    }
    
    .logo-text {
        font-size: 1rem;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .cta-button {
        padding: 12px 25px;
        font-size: 1rem;
    }

    .service-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}
@media (max-width: 768px) {
    /* Ocultar el submenu por defecto en móvil */
    .dropdown-menu {
        display: none !important;
        position: static !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        background: #f8f9fa !important;
        margin-top: 0 !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
    }
    
    /* Mostrar el submenu cuando tenga la clase mobile-open */
    .dropdown-menu.mobile-open {
        display: block !important;
        animation: slideDown 0.3s ease-out;
    }
    
    /* Estilos mejorados para los links del submenu en móvil */
    .dropdown-menu.mobile-open a {
        padding: 15px 25px !important;
        border-bottom: 1px solid #e0e0e0 !important;
        font-size: 0.9rem !important;
    }
    
    .dropdown-menu.mobile-open a:hover {
        background: #e9ecef !important;
        color: #0000ff !important;
        padding-left: 30px !important;
    }
    
    .dropdown-menu.mobile-open a:last-child {
        border-bottom: none !important;
    }
}