/* CSS Variables for Color Scheme */
:root {
    --primary-red: #e3000f;
    --primary-red-dark: #b3000b;
    --secondary-gray: #666666;
    --light-gray: #f8f9fa;
    --dark-gray: #2c2c2c;
    --white: #ffffff;
    --text-color: #333333;
    --text-light: #555555;
    --shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

/* Chinese font support */
body[lang="zh"] {
    font-family: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--primary-red);
    margin: 1rem auto;
    border-radius: 2px;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

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

/* Header */
header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
}

header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo h1 {
    color: var(--primary-red);
    font-size: 1.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

nav ul li a:hover {
    color: var(--primary-red);
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-red);
    transition: var(--transition);
}

nav ul li a:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.social-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.social-icon {
    color: var(--text-color);
    font-size: 1.2rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.social-icon:hover {
    color: var(--primary-red);
    transform: translateY(-2px);
}

.language-selector select {
    background-color: var(--white);
    border: 2px solid var(--primary-red);
    color: var(--primary-red);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

.language-selector select:hover {
    background-color: var(--primary-red);
    color: var(--white);
}

/* Hero Section */
.hero {
    height: 100vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6));
    z-index: 1;
    transition: opacity 1.5s ease-in-out;
}

.hero-content {
    max-width: 800px;
    z-index: 2;
    position: relative;
}

/* Background image layers for sliding effect */
.hero-bg-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    z-index: 0;
}

.hero-bg-layer.active {
    opacity: 1;
}

.hero-content {
    max-width: 800px;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.2s both;
}

.cta-button {
    display: inline-block;
    background-color: var(--primary-red);
    color: var(--white);
    padding: 1rem 2.5rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    animation: fadeInUp 1s ease 0.4s both;
    border: 2px solid var(--primary-red);
}

.cta-button:hover {
    background-color: transparent;
    color: var(--primary-red);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(195, 0, 16, 0.3);
}

/* Sections */
section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    color: var(--dark-gray);
}

/* About Section */
.about {
    background-color: var(--light-gray);
}

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

.about-card {
    background-color: var(--white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    border: 1px solid rgba(0,0,0,0.03);
}

.about-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.card-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.card-icon i {
    color: var(--white);
    font-size: 1.5rem;
}

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

.service-card {
    background-color: var(--white);
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    border-color: rgba(227, 0, 15, 0.3);
}

.card-header {
    background-color: var(--primary-red);
    color: var(--white);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.card-header .card-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-header .card-icon i {
    font-size: 1.2rem;
}

.service-card p {
    padding: 1.5rem;
    margin-bottom: 0;
}

/* Values Section */
.values {
    background-color: var(--dark-gray);
    background-image: linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.75)), url('img/fondo01.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
    padding: 60px 0;
}

.values .section-title {
    color: var(--white);
}

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

.values-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
    justify-items: center;
}

.value-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 150px;
}



.value-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.value-icon i {
    color: var(--white);
    font-size: 1.5rem;
}

/* Values Content Section for valores.html */
.values-content {
    background-color: var(--white);
    padding: 80px 0;
}

.values-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.values-intro h2 {
    color: var(--primary-red);
    font-size: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
}

.values-intro h2::after {
    background-color: var(--primary-red);
}

.values-intro p {
    font-size: 1.2rem;
    color: var(--text-light);
    line-height: 1.8;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.value-card {
    background-color: var(--light-gray);
    padding: 2rem;
    border-radius: 12px;
    transition: var(--transition);
    border-left: 4px solid var(--primary-red);
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    background-color: var(--white);
}

.value-card .card-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.value-card .card-icon i {
    color: var(--white);
    font-size: 1.5rem;
}

.value-card h3 {
    color: var(--dark-gray);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.value-card p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 0;
}

.values-footer {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background-color: var(--light-gray);
    border-radius: 12px;
    border: 1px solid #eee;
}

.values-footer p {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 0;
}

/* Contact Section */
.contact {
    background-color: var(--light-gray);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info h3 {
    color: var(--dark-gray);
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.contact-item i {
    color: var(--primary-red);
    font-size: 1.5rem;
    width: 40px;
    text-align: center;
}

.contact-item strong {
    color: var(--dark-gray);
    display: block;
    margin-bottom: 0.5rem;
}

/* Contact Form */
.contact-form {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #eee;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background-color: transparent;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px rgba(195, 0, 16, 0.1);
}

.form-group label {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    pointer-events: none;
    transition: var(--transition);
    background-color: var(--white);
    padding: 0 0.5rem;
    margin-left: -0.5rem;
}

.form-group input:focus + label,
.form-group textarea:focus + label,
.form-group select:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:not(:placeholder-shown) + label {
    top: -10px;
    left: 1rem;
    font-size: 0.8rem;
    color: var(--primary-red);
}

.submit-btn {
    background-color: var(--primary-red);
    color: var(--white);
    border: none;
    padding: 1rem 2rem;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

/* Footer */
footer {
    background-color: var(--dark-gray);
    color: var(--white);
    text-align: center;
    padding: 2rem 0;
}

/* Experiencia Banner */
.experiencia-banner {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    border-radius: 16px;
    margin-top: 4rem;
    padding: 3rem;
    box-shadow: var(--shadow);
    gap: 3rem;
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

.experiencia-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background-color: var(--primary-red);
}

.experiencia-content {
    flex: 1;
}

.experiencia-content h3 {
    color: var(--primary-red);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.experiencia-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 0;
    color: var(--text-color);
}

.experiencia-badge {
    background-color: var(--white);
    border: 4px solid #d4af37; /* Gold accent */
    border-radius: 50%;
    width: 160px;
    height: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.3);
    flex-shrink: 0;
}

.badge-number {
    font-size: 4rem;
    font-weight: 800;
    color: var(--dark-gray);
    line-height: 1;
}

.badge-text {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-red);
    letter-spacing: 2px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    header {
        position: relative;
    }

    .hero {
        height: auto;
        min-height: calc(100vh - 200px);
        padding: 80px 20px;
    }

    header .container {
        flex-direction: column;
        padding: 1rem;
    }
    
    .header-actions {
        margin-top: 0.5rem;
        flex-direction: row;
        gap: 1.5rem;
    }

    nav ul {
        margin: 1rem 0;
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card {
        margin-bottom: 1rem;
    }
    
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem 1rem;
    }

    .experiencia-banner {
        flex-direction: column;
        padding: 2.5rem 1.5rem;
        text-align: center;
        gap: 0;
    }

    .experiencia-content {
        display: contents;
    }

    .experiencia-content h3 {
        order: 1;
        margin-bottom: 1.5rem;
    }

    .experiencia-badge {
        order: 2;
        margin-bottom: 1.5rem;
    }

    .experiencia-content p {
        order: 3;
    }
}

/* Scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Language-specific styles */
body[lang="zh"] .hero-title {
    font-size: 3rem;
    line-height: 1.3;
}

body[lang="zh"] h2 {
    font-size: 1.8rem;
}

body[lang="zh"] .section-title {
    font-size: 2rem;
}