/* Variables Globales */
:root {
    --primary-color: #4a5764;
    --secondary-color: #6c7a89;
    --accent-color: #f44336;
    --text-color: #333;
    --light-text: #fff;
    --dark-bg: #141e30;
    --light-bg: #f9f9f9;
    --border-radius: 6px; /* Reducido de 8px */
    --box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1); /* Sombra más sutil */
    --gradient-primary: linear-gradient(135deg, #4a5764 0%, #6c7a89 100%);
    --gradient-secondary: linear-gradient(135deg, #4a5764 0%, #6c7a89 100%);
    --transition: all 0.3s ease;
    --blur-bg: rgba(255, 255, 255, 0.85); /* Más transparente */
    --glass-effect: backdrop-filter: blur(15px); /* Más blur */
    --neon-shadow: 0 0 10px rgba(76, 87, 100, 0.3), 0 0 20px rgba(108, 122, 137, 0.2);
}

/* Reset y Estilos Básicos */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.7;
    overflow-x: hidden;
    background-color: var(--light-bg);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 100px 0;
}

.bg-light {
    background-color: var(--light-bg);
}

.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 2rem;
}

/* Botones */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.5s;
    transform: skewX(-15deg);
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--light-text);
    box-shadow: var(--neon-shadow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--light-text);
    border: 2px solid var(--light-text);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

.btn-light {
    background: var(--light-text);
    color: var(--primary-color);
}

.btn-light:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-block {
    display: block;
    width: 100%;
}

/* Header */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 12px 0; /* Reducido de 15px */
    transition: var(--transition);
    background: transparent;
}

.main-header.scrolled {
    background: rgba(255, 255, 255, 0.75); /* Más transparente */
    backdrop-filter: blur(15px); /* Aumentado de 10px */
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06); /* Sombra más sutil */
    padding: 8px 0; /* Reducido de 10px */
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    width: 220px; /* Ligeramente más pequeño que el original modificado */
    height: auto;
    transition: var(--transition);
}

.main-header.scrolled .logo {
    width: 180px; /* Reducido el tamaño al hacer scroll */
}

.right-header {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    margin-right: 30px;
}

.nav-menu li {
    margin-left: 25px;
}

.nav-link {
    position: relative;
    font-weight: 500;
    color: var(--light-text);
    transition: var(--transition);
}

.main-header.scrolled .nav-link {
    color: var(--text-color);
}

.nav-link::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition);
}

.nav-link:hover, .nav-link:focus {
    color: var(--primary-color);
}

.nav-link:hover::after, .nav-link:focus::after {
    width: 100%;
}

.lang-switcher {
    display: flex;
    border-radius: 20px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    margin-left: 15px;
}

.main-header.scrolled .lang-switcher {
    background: rgba(0, 0, 0, 0.1);
}

.lang-btn {
    background: transparent;
    border: none;
    padding: 5px 10px;
    color: var(--light-text);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.8rem;
    font-weight: 600;
}

.main-header.scrolled .lang-btn {
    color: var(--text-color);
}

.lang-btn.active {
    background: var(--primary-color);
    color: var(--light-text);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 2000;
}

.bar {
    width: 100%;
    height: 3px;
    background-color: var(--light-text);
    transition: var(--transition);
}

.main-header.scrolled .bar {
    background-color: var(--text-color);
}

/* Modern Language Selector */
.lang-switcher {
    position: relative;
    margin-left: 20px;
    z-index: 100;
}

.lang-btn-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: var(--border-radius);
    background: rgba(255, 255, 255, 0.2);
    color: var(--light-text);
    transition: var(--transition);
}

.main-header.scrolled .lang-btn-container {
    color: var(--text-color);
    background: rgba(0, 0, 0, 0.05);
}

.lang-icon {
    margin-right: 8px;
    font-size: 14px;
}

.current-lang {
    font-weight: 500;
    font-size: 14px;
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 150px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    margin-top: 5px;
}

/* Esta es la regla clave para mostrar el menú cuando se activa */
.lang-switcher.active .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    cursor: pointer;
    transition: var(--transition);
}

.lang-option:hover {
    background: rgba(0, 0, 0, 0.05);
}

.lang-option.active {
    background: rgba(0, 85, 255, 0.1);
    color: var(--primary-color);
}

.flag-icon {
    margin-right: 10px;
    font-size: 16px;
}

/* Responsive styles for language selector */
@media screen and (max-width: 768px) {
    .lang-switcher {
        margin-right: 50px;
    }
}

/* Header scrolled state - ensure language selector is visible */
.main-header.scrolled .lang-btn-container {
    color: var(--text-color);
    background-color: rgba(255, 255, 255, 0.9);
}

.main-header.scrolled .lang-dropdown {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 700px;
    background: url('https://images.unsplash.com/photo-1577495508048-b635879837f1?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80') no-repeat center center;
    background-size: cover;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark-bg);
    opacity: 0.65; /* Ligeramente más transparente */
    backdrop-filter: blur(3px); /* Añadido un ligero efecto de blur */
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 750px; /* Reducido de 800px */
}

.main-heading {
    color: var(--light-text);
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-line {
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    margin: 0 auto 20px;
    border-radius: 2px;
}

.section-subtitle {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: #666;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px; /* Reducido de 50px */
    align-items: center;
}

.about-image {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s;
}

.about-image:hover img {
    transform: scale(1.05);
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var (--secondary-color);
}

.about-text p {
    margin-bottom: 20px;
    color: #555;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature i {
    font-size: 1.2rem;
    color: var(--primary-color);
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); /* Más esbelto */
    gap: 25px; /* Reducido de 30px */
    margin-bottom: 30px;
}

.service-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px); /* Añadido efecto blur */
    border-radius: 12px; /* Reducido de 16px */
    padding: 28px; /* Reducido de 30px */
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: 1px solid rgba(0, 0, 0, 0.03); /* Más sutil */
}

.service-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: var(--gradient-primary);
    transition: all 0.5s;
    z-index: -1;
    opacity: 0.05;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-card:hover::before {
    height: 100%;
}

.service-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: var(--transition);
}

.service-icon i {
    font-size: 1.8rem;
    color: var(--light-text);
}

.service-card:hover .service-icon {
    transform: rotateY(360deg);
    box-shadow: var(--neon-shadow);
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.service-card p {
    color: #666;
}

/* Portfolio Section */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); /* Más esbelto */
    gap: 25px; /* Reducido de 30px */
}

.portfolio-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    height: 280px; /* Reducido de 300px */
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-content {
    text-align: center;
    padding: 20px;
    color: var(--light-text);
}

.portfolio-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    transform: translateY(-20px);
    transition: transform 0.5s;
}

.portfolio-content p {
    transform: translateY(20px);
    transition: transform 0.5s;
}

.portfolio-item:hover .portfolio-content h3,
.portfolio-item:hover .portfolio-content p {
    transform: translateY(0);
}

/* CTA Section */
.cta-section {
    background: var(--gradient-primary);
    padding: 80px 0;
    color: var(--light-text);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1579600161224-cac5a2971069?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80') no-repeat center center;
    background-size: cover;
    opacity: 0.1;
}

.cta-content {
    position: relative;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px; /* Reducido de 50px */
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 25px;
}

.info-item {
    text-align: center;
    padding: 35px 25px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(96, 165, 250, 0.1);
    z-index: 1;
}

.info-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--gradient-primary);
    transition: all 0.4s ease;
}

.info-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.info-item:hover::before {
    width: 100%;
    opacity: 0.08;
}

.info-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 16px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(29, 78, 216, 0.15);
    transform: rotate(0deg);
    transition: all 0.5s ease;
}

.info-item:hover .info-icon {
    transform: rotate(10deg);
    border-radius: 50%;
}

.info-icon i {
    font-size: 2rem;
    color: var(--light-text);
}

.info-item h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 12px;
}

.info-item h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.info-item p, .info-item a {
    color: #555;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.info-item a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.contact-form {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px); /* Añadido efecto blur */
    border-radius: var(--border-radius);
    padding: 38px; /* Reducido de 40px */
    box-shadow: var(--box-shadow);
    border: 1px solid rgba(0, 0, 0, 0.03); /* Más sutil */
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: 'Poppins', sans-serif;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 85, 255, 0.1);
}

.error {
    border-color: #ff3b30 !important;
}

.form-success {
    text-align: center;
    padding: 30px;
    background: var(--gradient-secondary);
    color: var(--light-text);
    border-radius: var(--border-radius);
    font-weight: 600;
}

/* Footer */
.main-footer {
    background: var(--dark-bg);
    color: var(--light-text);
    padding-top: 70px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-column h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h4::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-color);
}

.footer-logo {
    width: 180px;
    margin-bottom: 15px;
    filter: brightness(1.2);
}

.footer-column p {
    margin-bottom: 20px;
    opacity: 0.8;
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.social-links i {
    color: var(--light-text);
    font-size: 1rem;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.contact-list i {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    text-align: center;
}

.copyright {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Scroll to Top */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-text);
    box-shadow: var(--neon-shadow);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.scroll-top.active {
    opacity: 1;
    visibility: visible;
    animation: pulse 2s infinite;
}

.scroll-top i {
    font-size: 1.2rem;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 85, 255, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 85, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 85, 255, 0);
    }
}

/* Animaciones y efectos adicionales */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-up {
    animation: fadeInUp 0.5s ease forwards;
}

/* Media Queries */
@media (max-width: 1024px) {
    .about-content, 
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .about-content {
        gap: 30px;
    }
    
    .section-padding {
        padding: 80px 0;
    }
}

@media (max-width: 768px) {
    .main-header {
        padding: 10px 0;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    }
    
    .logo {
        width: 180px;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.95);
        display: flex;
        justify-content: center;
        align-items: center;
        transform: translateX(-100%);
        transition: var(--transition);
    }
    
    .main-nav.active {
        transform: translateX(0);
    }
    
    .nav-menu {
        flex-direction: column;
        margin-right: 0;
        text-align: center;
    }
    
    .nav-menu li {
        margin: 15px 0;
    }
    
    .nav-link {
        color: var(--light-text);
        font-size: 1.3rem;
    }
    
    .nav-link::after {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
        margin-left: 15px;
    }
    
    .mobile-menu-toggle.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    
    .mobile-menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
    
    .services-grid,
    .portfolio-grid,
    .contact-info {
        grid-template-columns: 1fr;
    }

    .main-heading {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .portfolio-item {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .service-card {
        padding: 20px;
    }
    
    .contact-form {
        padding: 25px;
    }
    
    .info-item {
        padding: 15px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .main-heading {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .scroll-top {
        width: 40px;
        height: 40px;
        right: 20px;
        bottom: 20px;
    }
}

/* Efectos de Cristal (Glass Morphism) */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Efecto Neumorfismo (Neomorphism) */
.neomorph {
    background: var(--light-bg);
    border-radius: var(--border-radius);
    box-shadow: 8px 8px 16px rgba(0, 0, 0, 0.1), 
                -8px -8px 16px rgba(255, 255, 255, 0.7);
}

/* Estilos para las imágenes 3D */
.img-3d {
    transform-style: preserve-3d;
    perspective: 1000px;
}

.img-3d img {
    transition: transform 0.5s ease;
}

.img-3d:hover img {
    transform: rotateY(5deg) rotateX(5deg);
}

/* Esquemas de color para temas modernos de 2025 */
.theme-gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

/* Language Selector Styling */
.lang-switcher {
    position: relative;
    margin-left: 20px;
    cursor: pointer;
    user-select: none;
    z-index: 100;
}

.lang-btn-container {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 20px;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.lang-btn-container:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.lang-icon {
    margin-right: 8px;
    font-size: 14px;
    color: var(--accent-color);
}

.current-lang {
    font-size: 14px;
    font-weight: 500;
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    padding: 8px 0;
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.lang-switcher.open .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    transition: background-color 0.2s;
    color: #333;
}

.lang-option:hover {
    background-color: #f5f5f5;
}

.lang-option.active {
    background-color: #f0f0f0;
    color: var(--accent-color);
    font-weight: 500;
}

.flag-icon {
    margin-right: 10px;
    font-size: 16px;
}

/* Media queries for responsive language selector */
@media (max-width: 768px) {
    .lang-switcher {
        margin-right: 50px;
    }
}

@media (max-width: 480px) {
    .lang-btn-container {
        padding: 6px 10px;
    }
    
    .current-lang {
        font-size: 12px;
    }
    
    .lang-icon {
        font-size: 12px;
    }
}

/* Selector de idioma */
.lang-switcher {
    position: relative;
    margin-right: 20px;
    cursor: pointer;
    z-index: 1000;
    user-select: none;
}

.lang-btn-container {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    border-radius: var(--border-radius);
    background: rgba(255, 255, 255, 0.1);
}

.lang-switcher .lang-icon {
    font-size: 16px;
    margin-right: 8px;
    color: var(--primary-color);
}

.lang-switcher .current-lang {
    font-size: 14px;
    font-weight: 500;
}

/* Menú desplegable */
.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 150px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-top: 5px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

/* Mostrar el menú desplegable cuando el selector tiene la clase 'active' */
.lang-switcher.active .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    cursor: pointer;
    transition: background 0.3s;
}

.lang-option:hover {
    background-color: #f5f5f5;
}

.lang-option.active {
    background-color: rgba(0, 85, 255, 0.08);
    font-weight: 600;
}

.flag-icon {
    margin-right: 10px;
    font-size: 18px;
}

/* Estilos para el selector de idioma simplificado */
.lang-switcher {
    display: flex;
    align-items: center;
    margin-left: 15px;
}

.lang-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    padding: 5px;
    color: var(--text-color);
    transition: all 0.3s ease;
    opacity: 0.7;
}

.lang-btn.active {
    opacity: 1;
    color: var (--primary-color);
}

.lang-btn:hover {
    color: var(--primary-color);
}

.lang-separator {
    margin: 0 5px;
    color: var(--text-color);
    opacity: 0.7;
}

/* Modern Language Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 70px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.3);
    transition: .4s;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
}

.main-header.scrolled .slider {
    background-color: rgba(0, 0, 0, 0.1);
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: var(--primary-color);
    transition: .4s;
    z-index: 1;
}

input:checked + .slider:before {
    transform: translateX(36px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

.lang-option {
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
    color: var(--light-text);
    transition: color 0.3s;
}

.main-header.scrolled .lang-option {
    color: var(--text-color);
}

.lang-option.en {
    padding-right: 8px;
}

.lang-option.es {
    padding-left: 8px;
}

input:checked + .slider .lang-option.en {
    color: rgba(255, 255, 255, 0.5);
}

input:not(:checked) + .slider .lang-option.es {
    color: rgba(255, 255, 255, 0.5);
}

.main-header.scrolled input:checked + .slider .lang-option.en {
    color: rgba(0, 0, 0, 0.3);
}

.main-header.scrolled input:not(:checked) + .slider .lang-option.es {
    color: rgba(0, 0, 0, 0.3);
}

.lang-switcher {
    margin-left: 20px;
}

/* Language Switch Toggle */
.switch {
  position: relative;
  display: inline-block;
  width: 80px;
  height: 34px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  transition: .4s;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: var(--primary-color);
  transition: .4s;
  z-index: 1;
  box-shadow: 0 0 10px rgba(0, 85, 255, 0.5);
}

input:checked + .slider:before {
  transform: translateX(46px);
}

.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

.lang-option {
  color: var(--light-text);
  font-size: 14px;
  font-weight: 600;
  z-index: 2;
}

.main-header.scrolled .lang-option {
  color: var(--text-color);
}

/* Adjust the old lang-option styles to not conflict with our new ones */
.lang-dropdown .lang-option {
  color: #333;
  font-size: 14px;
  font-weight: normal;
}

/* Switch de idioma mejorado */
.lang-switcher {
    position: relative;
    margin-left: 15px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 28px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #eee;
    transition: var(--transition);
    border-radius: 34px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 5px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 3px;
    background-color: var(--primary-color);
    transition: var(--transition);
    border-radius: 50%;
    z-index: 1;
}

.lang-option {
    color: #888;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
    transition: var(--transition);
}

input:checked + .slider:before {
    transform: translateX(30px);
    background-color: var(--primary-color);
}

input:checked + .slider {
    background-color: #eee;
}

input:focus + .slider {
    box-shadow: 0 0 1px var(--primary-color);
}

.lang-option.en {
    margin-left: 2px;
    color: var(--text-color);
}

.lang-option.es {
    margin-right: 2px;
    color: var(--light-text);
}

input:checked + .slider .lang-option.en {
    color: var(--text-color);
}

input:checked + .slider .lang-option.es {
    color: var(--primary-color);
}

input:not(:checked) + .slider .lang-option.en {
    color: var(--primary-color);
}

input:not(:checked) + .slider .lang-option.es {
    color: var(--text-color);
}

/* Switch de idioma - Nuevo diseño moderno */
.lang-switcher {
    position: relative;
    margin-left: 15px;
    z-index: 100;
}

.switch {
    position: relative;
    display: inline-block;
    width: 76px;
    height: 34px;
    border-radius: 34px;
    padding: 2px;
    background: #f0f0f0;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: white;
    transition: 0.4s;
    border-radius: 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border: 1px solid #e0e0e0;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 3px;
    background-color: #1D4ED8;
    transition: 0.4s;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 2;
}

.lang-option {
    font-size: 14px;
    font-weight: 700;
    z-index: 1;
    transition: 0.4s;
    text-shadow: 0 1px 1px rgba(0,0,0,0.1);
}

input:checked + .slider:before {
    transform: translateX(42px);
}

.lang-option.en {
    color: #1D4ED8;
}

.lang-option.es {
    color: #888;
}

input:checked + .slider .lang-option.en {
    color: #888;
}

input:checked + .slider .lang-option.es {
    color: #1D4ED8;
}

/* Hover effect */
.switch:hover .slider:before {
    box-shadow: 0 0 8px #1D4ED8, 0 0 5px #60A5FA;
}

/* Asegurarse que el switch sea visible en modo móvil */
@media screen and (max-width: 768px) {
    .lang-switcher {
        margin: 15px 0;
        display: flex;
        justify-content: center;
    }
}

/* Selector de Idioma Horizontal */
.lang-toggle-horizontal {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    padding: 4px 8px;
}

.main-header.scrolled .lang-toggle-horizontal {
    background: rgba(0, 0, 0, 0.05);
}

.lang-option {
    padding: 4px 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--light-text);
    cursor: pointer;
    transition: var(--transition);
}

.main-header.scrolled .lang-option {
    color: var(--text-color);
}

.switch-horizontal {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
    margin: 0 5px;
}

.lang-checkbox {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider-horizontal {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.3);
    transition: 0.4s;
    border-radius: 20px;
}

.main-header.scrolled .slider-horizontal {
    background-color: rgba(0, 0, 0, 0.1);
}

.slider-horizontal:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

.lang-checkbox:checked + .slider-horizontal {
    background-color: var(--primary-color);
}

.lang-checkbox:focus + .slider-horizontal {
    box-shadow: 0 0 1px var(--primary-color);
}

.lang-checkbox:checked + .slider-horizontal:before {
    transform: translateX(20px);
}

.lang-option.en {
    opacity: 0.8;
}

.lang-option.es {
    opacity: 0.8;
}

/* Cuando el switch está en inglés */
.lang-checkbox:not(:checked) ~ .lang-option.en {
    opacity: 1;
    color: var(--primary-color);
}

/* Cuando el switch está en español */
.lang-checkbox:checked ~ .lang-option.es {
    opacity: 1;
    color: var(--primary-color);
}