/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #7b2cbf 0%, #6a1b9a 50%, #4a148c 100%);
    color: #ffffff;
    overflow-x: hidden;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(123, 44, 191, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    position: relative;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 2rem;
    position: relative;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #ffffff;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 3px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Language Switcher */
.language-switcher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem;
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.lang-option:hover {
    background: rgba(255, 123, 0, 0.2);
}

.lang-option.active {
    background: linear-gradient(45deg, #ff7b00, #ff4500);
    color: #ffffff;
    box-shadow: 0 2px 10px rgba(255, 123, 0, 0.3);
}

.flag {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: inline-block;
    position: relative;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.flag-es {
    background: linear-gradient(to bottom, #c60b1e 33.33%, #ffc400 33.33%, #ffc400 66.66%, #c60b1e 66.66%);
}

.flag-en {
    background: linear-gradient(to bottom, 
        #012169 0%, #012169 33.33%, 
        #ffffff 33.33%, #ffffff 66.66%, 
        #012169 66.66%, #012169 100%);
    position: relative;
}

.flag-en::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(45deg, transparent 40%, #c8102e 40%, #c8102e 60%, transparent 60%),
        linear-gradient(-45deg, transparent 40%, #c8102e 40%, #c8102e 60%, transparent 60%),
        linear-gradient(to right, transparent 45%, #c8102e 45%, #c8102e 55%, transparent 55%),
        linear-gradient(to bottom, transparent 45%, #c8102e 45%, #c8102e 55%, transparent 55%);
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-icon {
    width: 80px;
    height: 80px;
    background: url('/img/LOGO_byTokio_REDONDO_001.png') no-repeat center center;
    background-size: contain;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(45deg, #ff7b00, #ff4500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: glow 2s ease-in-out infinite alternate;
}

/* Team Photos */
.FotoJavier {
    width: 180px;
    height: 180px;
    background: url('/img/descarga_6.png') no-repeat center center;
    background-size: contain;
}

.FotoGaby {
    width: 210px;
    height: 210px;
    background: url('/img/descarga_81.png') no-repeat center center;
    background-size: contain;
}

.FotoAna {
    width: 210px;
    height: 210px;
    background: url('/img/descarga_73.png') no-repeat center center;
    background-size: contain;
}

.FotoVinchu {
    width: 210px;
    height: 210px;
    background: url('/img/descarga_76.png') no-repeat center center;
    background-size: contain;
}

@keyframes glow {
    from { filter: drop-shadow(0 0 5px #ff7b00); }
    to { filter: drop-shadow(0 0 20px #ff4500); }
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: #ff7b00;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(45deg, #ff7b00, #ff4500);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Modern Hero Section */
.modern-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
    background: linear-gradient(135deg, #4a148c 0%, #7b2cbf 100%);
}

.modern-hero-content {
    position: relative;
    z-index: 3;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.modern-hero h1 {
    font-size: 5.5vw;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 2rem;
    color: white;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.modern-hero p {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 3rem;
    color: rgba(255,255,255,0.8);
    max-width: 600px;
}

.glow-text {
    text-shadow: 0 0 10px rgba(255,123,0,0.5);
}

/* Modern Sections */
.modern-section {
    padding: 120px 0;
    position: relative;
    background-color: #012169;
}

.modern-section-title {
    font-size: 3.5vw;
    font-weight: 800;
    margin-bottom: 80px;
    color: white;
    text-transform: uppercase;
    letter-spacing: -1px;
    text-align: center;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.service-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 40px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.service-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #ff7b00, #ff4500);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.service-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #ff7b00;
}

.service-description {
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.service-example {
    background: rgba(0, 0, 0, 0.2);
    padding: 1rem;
    border-radius: 10px;
    border-left: 3px solid #ff7b00;
    font-size: 0.9rem;
    font-style: italic;
    opacity: 0.8;
}

/* Team Section */
.modern-team {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.modern-team-member {
    text-align: center;
}

.modern-team-photo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    margin: 0 auto 20px;
    overflow: hidden;
    border: 3px solid rgba(255, 123, 0, 0.3);
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modern-team-name {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: white;
}

.modern-team-role {
    color: #ff7b00;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

/* CTA Button */
.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(45deg, #ff7b00, #ff4500);
    color: #ffffff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(255, 123, 0, 0.3);
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
}

.cta-button::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: left 0.5s ease;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 123, 0, 0.4);
}

/* Contact Section */
.contact-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 3rem;
    background: linear-gradient(45deg, #ffffff, #ff7b00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-form {
    display: grid;
    gap: 1.5rem;
    margin-top: 2rem;
}

.form-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-input {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.form-input:focus {
    outline: none;
    border-color: #ff7b00;
    background: rgba(255, 255, 255, 0.08);
}

.form-textarea {
    grid-column: 1 / -1;
    min-height: 120px;
    resize: vertical;
}

/* Footer */
footer {
    background: rgba(0, 0, 0, 0.3);
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    text-align: left;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: #ff7b00;
}

.footer-section p, .footer-section a {
    opacity: 0.8;
    text-decoration: none;
    color: #ffffff;
}

.footer-section a:hover {
    color: #ff7b00;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    opacity: 0.6;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeIn 1s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }
.service-card:nth-child(5) { animation-delay: 0.5s; }
.service-card:nth-child(6) { animation-delay: 0.6s; }

/* Mobile Styles */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    nav {
        padding: 1rem 15px;
    }
    
    .mobile-menu-toggle {
        display: flex;
        order: 1;
    }
    
    .language-switcher {
        order: 2;
        padding: 0.4rem;
        gap: 0.3rem;
    }
    
    .lang-option {
        padding: 0.2rem 0.5rem;
        font-size: 0.8rem;
    }
    
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(123, 44, 191, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: 2rem 0;
        transition: left 0.3s ease;
        gap: 2rem;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links li {
        width: 100%;
        text-align: center;
    }
    
    .nav-links a {
        display: block;
        padding: 1rem;
        font-size: 1.2rem;
        width: 100%;
    }
    
    .logo-icon {
        width: 40px;
        height: 40px;
    }
    
    .logo-text {
        font-size: 1.5rem;
    }
    
    .modern-hero {
        min-height: 90vh;
        padding: 100px 0 2rem;
        text-align: center;
    }
    
    .modern-hero h1 {
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
    }
    
    .modern-hero p {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
    .modern-section-title {
        font-size: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card {
        padding: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .form-group {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        padding: 0 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }
    
    .modern-section {
        padding: 3rem 0;
    }
}

/* Tablet Portrait */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }
    
    .modern-hero h1 {
        font-size: 3.5rem;
    }
    
    .modern-hero p {
        font-size: 1.2rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .modern-section-title {
        font-size: 2.5rem;
    }
}

/* Mobile Landscape */
@media (max-width: 768px) and (orientation: landscape) {
    .modern-hero {
        min-height: 100vh;
        padding: 120px 0 2rem;
    }
    
    .modern-hero h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .modern-hero p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .nav-links {
        height: calc(100vh - 70px);
        top: 70px;
        padding: 1rem 0;
        gap: 1rem;
    }
    
    .nav-links a {
        font-size: 1rem;
        padding: 0.5rem;
    }
    
    .modern-section {
        padding: 2rem 0;
    }
    
    .modern-section-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    nav {
        padding: 1rem 10px;
    }
    
    .logo-icon {
        width: 35px;
        height: 35px;
    }
    
    .logo-text {
        font-size: 1.3rem;
    }
    
    .modern-hero h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .modern-hero p {
        font-size: 1rem;
    }
    
    .cta-button {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }
    
    .modern-section-title {
        font-size: 1.8rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .service-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .service-title {
        font-size: 1.3rem;
    }
    
    .service-description {
        font-size: 0.9rem;
    }
    
    .service-example {
        font-size: 0.8rem;
        padding: 0.8rem;
    }
    
    .language-switcher {
        padding: 0.3rem;
    }
    
    .lang-option {
        padding: 0.2rem 0.4rem;
        font-size: 0.7rem;
    }
    
    .flag {
        width: 14px;
        height: 14px;
    }
}

/* Large Desktop */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
        padding: 0 40px;
    }
    
    .modern-hero h1 {
        font-size: 4.5rem;
    }
    
    .modern-hero p {
        font-size: 1.4rem;
    }
    
    .modern-section-title {
        font-size: 3.5rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Focus states for accessibility */
.nav-links a:focus,
.lang-option:focus,
.cta-button:focus,
.form-input:focus,
.mobile-menu-toggle:focus {
    outline: 2px solid #ff7b00;
    outline-offset: 2px;
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .service-card {
        border: 2px solid rgba(255, 255, 255, 0.3);
    }
    
    .form-input {
        border: 2px solid rgba(255, 255, 255, 0.3);
    }
}