:root {
    --color-primary: #FF7A59;
    --color-secondary: #22323F;
    --color-text: #333;
    --color-light-text: #666;
    --color-bg: #fff;
    --color-light-bg: #f9f9f9;
    --color-border: #eee;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Open Sans', sans-serif;
    --shadow: 0 5px 15px rgba(0,0,0,0.1);
    --border-radius: 6px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
}

/* Typography */
h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--color-secondary);
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.75rem;
    font-weight: 600;
}

p {
    margin-bottom: 1.5rem;
}

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

/* Containers & Layout */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 5rem 0;
}

.section-light {
    background-color: var(--color-light-bg);
}

/* Header */
header {
    padding: 1.5rem 0;
    background-color: var(--color-bg);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

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

.logo img {
    height: 50px;
}

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

nav a {
    text-decoration: none;
    color: var(--color-secondary);
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    padding-bottom: 5px;
}

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

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

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

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-secondary);
}

/* Hero Section */
.hero {
    padding: 10rem 0 6rem;
    background-image: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)), url('https://public.youware.com/users-website-assets/prod/5d95ea6b-2901-4efa-bfa0-066b387644dd/g42f8b225cb80a8d4731025bbe776b0aec3b2f7861963dbbdddf44adc2365010be3463159606e690b2c4272bffa6c912db7e45b5c9cb1134fb996f74879c6e196_1280.jpg');
    background-size: cover;
    background-position: center;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: var(--color-light-text);
}

/* Buttons */
.btn {
    display: inline-block;
    background-color: var(--color-primary);
    color: white;
    padding: 0.9rem 2rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    background-color: #ff6340;
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
    background-color: var(--color-primary);
    color: white;
}

/* Challenges Section */
.challenges {
    padding: 6rem 0;
}

.challenges-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2.5rem;
    margin-top: 3rem;
}

.challenge-card {
    flex: 0 1 300px;
    max-width: 300px;
}

.challenge-card {
    background-color: var(--color-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 2.5rem;
    text-align: center;
    transition: var(--transition);
}

.challenge-card:hover {
    transform: translateY(-10px);
}

.challenge-card img {
    height: 100px;
    margin-bottom: 1.5rem;
}

.challenge-card h3 {
    margin-bottom: 1rem;
}

.challenge-card p {
    color: var(--color-light-text);
}

.callout {
    text-align: center;
    margin-top: 3rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-secondary);
}

/* Services Section */
.services {
    padding: 6rem 0;
    background-color: var(--color-light-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.service-card {
    background-color: var(--color-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 2.5rem;
    transition: var(--transition);
    height: 100%;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card h3 {
    margin-bottom: 1rem;
    color: var(--color-secondary);
}

.service-card p {
    color: var(--color-light-text);
}

/* Testimonials */
.testimonials {
    padding: 6rem 0;
    text-align: center;
}

.testimonial-slider {
    max-width: 800px;
    margin: 3rem auto 0;
    position: relative;
}

.testimonial {
    background-color: var(--color-bg);
    border-radius: var(--border-radius);
    padding: 3rem;
    box-shadow: var(--shadow);
    text-align: center;
}

.testimonial-content {
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.client-info {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.client-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
}

.client-name {
    font-weight: bold;
    font-size: 1.1rem;
}

.client-role {
    color: var(--color-light-text);
}

/* CTA Section */
.cta {
    padding: 6rem 0;
    text-align: center;
    background-image: linear-gradient(rgba(34, 50, 63, 0.9), rgba(34, 50, 63, 0.9)), url('https://public.youware.com/users-website-assets/prod/5d95ea6b-2901-4efa-bfa0-066b387644dd/ga82b9ae1f487d38c9a9da9c127d6f2c6323da704a00c445e4b187791b6c9ad6c66f036067e23a8f4d2a830804832088c6b5d4d154199efcc57176a7b6318a0a6_1280.jpg');
    background-size: cover;
    background-position: center;
    color: white;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta h2 {
    color: white;
    margin-bottom: 1.5rem;
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Process Section */
.process {
    padding: 6rem 0;
}

.process-steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
    position: relative;
}

.process-step {
    flex: 1;
    min-width: 250px;
    max-width: 300px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-number {
    background-color: var(--color-primary);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.25rem;
    margin: 0 auto 1.5rem;
}

.process-step h3 {
    margin-bottom: 1rem;
}

.process-step p {
    color: var(--color-light-text);
}

/* Footer */
footer {
    background-color: var(--color-secondary);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo img {
    height: 60px;
    margin-bottom: 1rem;
}

.footer-about p {
    opacity: 0.8;
    margin-bottom: 1.5rem;
}

.footer-heading {
    color: white;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--color-primary);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--color-primary);
}

.contact-info {
    list-style: none;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.contact-info i {
    margin-right: 1rem;
    color: var(--color-primary);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--color-primary);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.7;
}

.footer-bottom a {
    color: var(--color-primary);
    text-decoration: none;
}

/* Media Queries */
@media (max-width: 992px) {
    h1 {
        font-size: 3rem;
    }
    
    h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .header-container {
        position: relative;
    }
    
    .mobile-toggle {
        display: block;
    }
    
    nav ul {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--color-bg);
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        gap: 1.5rem;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-20px);
        transition: var(--transition);
    }
    
    nav.active ul {
        opacity: 1;
        pointer-events: all;
        transform: translateY(0);
    }
    
    .hero {
        padding: 8rem 0 4rem;
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .container {
        padding: 0 1.5rem;
    }
    
    .section {
        padding: 4rem 0;
    }
    
    .challenges-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* ============================
   Ajustes específicos para Tablets
   ============================ */
@media (min-width: 769px) and (max-width: 1024px) {
    
    /* Servicios: mantener dos columnas */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    /* Proceso: mostrar pasos en dos columnas */
    .process-steps {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
        justify-items: center;
    }

    /* Testimonios: reducir ancho para que se vea centrado */
    .testimonial-slider {
        max-width: 90%;
        margin: 0 auto;
    }

    /* Contacto: info y formulario en dos columnas */
    #contacto > .container > div {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    /* Footer: mejorar la legibilidad */
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}