/* --- Variables CSS --- */
:root {
    --color-primary: #F8344A;
    --color-primary-hover: #d62539;
    --color-dark: #181828;
    --color-accent-soft: #E86878;
    --color-bg: #FFFFFF;
    --color-surface: #F8F0F0;
    --color-text: #4a4a5e;
    
    --font-main: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    --container-width: 1200px;
    --header-height: 80px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --shadow-sm: 0 4px 6px rgba(0,0,0,0.05);
    --shadow-hover: 0 10px 25px rgba(248, 52, 74, 0.15);
    --transition: all 0.3s ease;
}

/* --- Reset & Base --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* --- Tipografía --- */
h1, h2, h3 {
    color: var(--color-dark);
    font-weight: 700;
    line-height: 1.2;
}

.highlight {
    color: var(--color-primary);
}

/* --- Layout --- */
.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1rem;
}

.section {
    padding: 5rem 0;
}

.bg-light {
    background-color: var(--color-surface);
}

.text-center {
    text-align: center;
}

/* --- Header & Nav --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    height: var(--header-height);
    display: flex;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 1px 0 rgba(0,0,0,0.05);
}

.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo img {
    height: 40px;
    width: auto;
}

.nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background: var(--color-bg);
    padding: 2rem;
    transform: translateY(-150%);
    transition: transform 0.4s ease-in-out;
    border-bottom: 1px solid var(--color-surface);
    z-index: 999;
}

.nav.active {
    transform: translateY(0);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.nav__list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
}

.nav__link {
    color: var(--color-dark);
    font-weight: 500;
    font-size: 1.1rem;
}

.nav__link:hover {
    color: var(--color-primary);
}

/* Hamburger Menu */
.nav-toggle {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-dark);
    position: relative;
    transition: background 0.2s;
}

.hamburger::before, .hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--color-dark);
    left: 0;
    transition: transform 0.3s;
}

.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }

/* Desktop Menu */
@media (min-width: 768px) {
    .nav-toggle { display: none; }
    
    .nav {
        position: static;
        transform: none;
        width: auto;
        background: transparent;
        padding: 0;
        border: none;
        box-shadow: none;
    }

    .nav__list {
        flex-direction: row;
        gap: 2.5rem;
        align-items: center;
    }

    .nav__link {
        font-size: 1rem;
    }

    .nav__link--cta {
        padding: 0.6rem 1.5rem;
        border: 2px solid var(--color-primary);
        border-radius: 50px;
        color: var(--color-primary);
        font-weight: 600;
    }

    .nav__link--cta:hover {
        background: var(--color-primary);
        color: #fff;
    }
}

/* --- Hero --- */
.hero {
    padding-top: calc(var(--header-height) + 4rem);
    padding-bottom: 5rem;
    display: flex;
    align-items: center;
    min-height: 80vh;
}

.hero__content {
    max-width: 800px;
}

.hero__title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero__subtitle {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    margin-bottom: 2.5rem;
    max-width: 600px;
    color: var(--color-text);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* --- Botones --- */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
}

.btn--primary {
    background-color: var(--color-primary);
    color: #fff;
    border: 2px solid var(--color-primary);
}

.btn--primary:hover {
    background-color: var(--color-primary-hover);
    border-color: var(--color-primary-hover);
    transform: translateY(-2px);
}

.btn--outline {
    background-color: transparent;
    color: var(--color-dark);
    border: 2px solid var(--color-dark);
}

.btn--outline:hover {
    background-color: var(--color-dark);
    color: #fff;
    transform: translateY(-2px);
}

/* --- Pasos / Enfoque --- */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: clamp(2rem, 3vw, 2.5rem);
    margin-bottom: 1rem;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    text-align: center;
}

.step-card {
    padding: 2rem;
}

.step-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--color-accent-soft);
    opacity: 0.3;
    display: block;
    margin-bottom: 0.5rem;
}

.step-card h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

/* --- Servicios Grid --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.card {
    background: #fff;
    padding: 2.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-surface);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: transparent;
}

.card__icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1.5rem;
    color: var(--color-primary);
}

.card__title {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.card__text {
    font-size: 0.95rem;
    color: var(--color-text);
}

/* --- Contacto & Footer --- */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
}

.contact-box {
    background: var(--color-dark);
    color: #fff;
    padding: 4rem 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
}

.contact-box .section-title, 
.contact-box p {
    color: #fff;
}

.contact-email {
    display: inline-block;
    font-size: clamp(1.5rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--color-primary);
    margin: 2rem 0;
    word-break: break-all;
}

.contact-email:hover {
    color: var(--color-accent-soft);
}

.footer {
    background-color: var(--color-bg);
    padding: 2rem 0;
    text-align: center;
    font-size: 0.9rem;
    color: var(--color-text);
    border-top: 1px solid var(--color-surface);
}

/* --- Animaciones --- */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}