:root {
    --primary: #c83232; /* rojo principal */
    --primary-dark: #a02828;
    --dark: #222222;
    --gray: #777777;
    --light: #fafafa;
    --white: #ffffff;
    --shadow: 0 2px 8px rgba(0,0,0,0.1);
    --radius: 4px;
}

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

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

body {
    font-family: 'Roboto Condensed', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--white);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

/* Contenedor */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Utilidades */
.section {
    padding: 4rem 0;
}
.section.bg-light {
    background-color: var(--light);
}
.section-title {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    font-family: 'Oswald', sans-serif;
    color: var(--dark);
    position: relative;
}
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary);
    margin: 0.5rem auto 0;
}
.section-lead {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 2rem;
    color: var(--gray);
    font-size: 1.1rem;
}

/* Header */
.site-header {
    background-color: var(--white);
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}
.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    font-family: 'Oswald', sans-serif;
}
.site-nav ul {
    display: flex;
    gap: 2rem;
}
.site-nav a {
    font-weight: 600;
    color: var(--dark);
    transition: color 0.3s;
}
.site-nav a:hover {
    color: var(--primary);
}

/* Hero */
.hero {
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('https://source.unsplash.com/featured/1600x900/?office,laptop') center/cover no-repeat;
    color: var(--white);
    text-align: center;
    padding: 8rem 0;
    position: relative;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(0,0,0,0.2) 0%, transparent 70%);
}
.hero-content {
    position: relative;
    z-index: 1;
}
.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    font-family: 'Oswald', sans-serif;
}
.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Botones */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
    border: 2px solid transparent;
}
.btn-primary {
    background-color: var(--primary);
    color: var(--white);
}
.btn-primary:hover {
    background-color: var(--primary-dark);
}
.btn-outline {
    background-color: transparent;
    color: var(--primary);
    border-color: var(--primary);
}
.btn-outline:hover {
    background-color: var(--primary);
    color: var(--white);
}

/* Servicios */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}
.service-card {
    background: var(--white);
    border: 1px solid #eee;
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}
.service-icon {
    width: 80px;
    height: 80px;
    margin: 1.5rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f8f8;
    border-radius: 50%;
}
.service-title {
    font-size: 1.3rem;
    margin: 0 1rem 0.5rem;
    color: var(--dark);
    font-family: 'Oswald', sans-serif;
    text-align: center;
}
.service-desc {
    flex-grow: 1;
    padding: 0 1rem 1rem;
    font-size: 0.95rem;
    color: var(--gray);
    line-height: 1.5;
}
.service-price {
    padding: 0 1rem 1rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    text-align: center;
}
.service-price span {
    font-size: 1.4rem;
}

/* Testimonios */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}
.testimonial-card {
    background: var(--white);
    border-left: 4px solid var(--primary);
    padding: 1.5rem;
    border-radius: 0 var(--radius) var(--radius) 0;
    box-shadow: var(--shadow);
}
.testimonial-text {
    font-style: italic;
    color: var(--gray);
    margin-bottom: 1rem;
    position: relative;
}
.testimonial-text::before,
.testimonial-text::after {
    content: '"';
    font-size: 2rem;
    opacity: 0.2;
}
.testimonial-text::before {
    top: -0.5rem;
    left: -0.5rem;
    position: relative;
}
.testimonial-text::after {
    bottom: -0.5rem;
    right: -0.5rem;
    position: relative;
}
.testimonial-author {
    font-weight: 600;
    color: var(--dark);
    font-size: 0.95rem;
}

/* Contacto */
.contact-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* Footer */
.site-footer {
    background-color: var(--dark);
    color: #ddd;
    padding: 3rem 0 1.5rem;
}
.footer-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}
.footer-col h3,
.footer-col h4 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}
.footer-col p {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}
.footer-links a {
    display: block;
    padding: 0.3rem 0;
    color: #bbb;
    transition: color 0.3s;
}
.footer-links a:hover {
    color: var(--white);
}
.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
    color: #777;
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        padding: 6rem 0;
    }
    .hero h1 {
        font-size: 2.2rem;
    }
    .header-inner {
        flex-wrap: wrap;
    }
    .site-nav ul {
        margin-top: 1rem;
        width: 100%;
        justify-content: center;
    }
}
@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    .hero p {
        font-size: 1rem;
    }
    .section-title {
        font-size: 1.6rem;
    }
}

/* ===== Language Switcher (Light Theme) ===== */
.i18n-switcher {
    display: inline-flex;
    margin-left: 1rem;
}

.i18n-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem 0.5rem 0.5rem;
    background: #f8f8f8;
    border: 1px solid #eee;
    border-radius: 8px;
    color: #222;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.i18n-trigger:hover {
    background: #f0f0f0;
    border-color: #c83232;
}
.i18n-trigger:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(200, 50, 50, 0.3);
}
.i18n-trigger[aria-expanded="true"] {
    border-color: #c83232;
    background: #fff;
}
.i18n-flag {
    font-size: 1rem;
    line-height: 1;
}
.i18n-name {
    font-weight: 500;
}
.i18n-chevron {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
    color: #777;
}
.i18n-trigger[aria-expanded="true"] .i18n-chevron {
    transform: rotate(180deg);
}
.i18n-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    min-width: 160px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
}
.i18n-dropdown:not([hidden]) {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.i18n-lang-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem 1rem;
    background: none;
    border: none;
    color: #777;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: all 0.15s ease;
}
.i18n-lang-option:hover,
.i18n-lang-option:focus {
    background: #fff5f5;
    color: #c83232;
    outline: none;
}
.i18n-lang-option.active {
    background: #fff5f5;
    color: #c83232;
}
.i18n-lang-option.active::before {
    content: '✓';
    margin-right: 0.25rem;
    color: #c83232;
    font-weight: 700;
}
.i18n-lang-option .i18n-flag {
    font-size: 1.1rem;
}

@media (max-width: 480px) {
    .i18n-trigger .i18n-name {
        display: none;
    }
    .i18n-trigger {
        padding: 0.5rem;
    }
}