/* ============================================
   FERCU RESTAURANTE - Landing Page
   Diseño moderno y acogedor para el sector gastronómico
   ============================================ */

:root {
    /* Paleta cálida y acogedora */
    --primary: #c45c26;
    --primary-dark: #a04a1e;
    --primary-light: #e87a3d;
    --accent: #2d5a3d;
    --accent-light: #3d7a52;
    --cream: #faf7f2;
    --cream-dark: #f0ebe3;
    --dark: #1a1a1a;
    --dark-soft: #2d2d2d;
    --text: #3d3d3d;
    --text-muted: #6b6b6b;
    --white: #ffffff;
    --shadow: 0 4px 24px rgba(26, 26, 26, 0.08);
    --shadow-hover: 0 12px 40px rgba(26, 26, 26, 0.12);
    --radius: 16px;
    --radius-sm: 0.75rem;
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'DM Sans', 'Segoe UI', system-ui, sans-serif;
}

/* Reset y base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text);
    background-color: var(--white);
    overflow-x: hidden;
}

.contenedor {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ========== HEADER ========== */
.header {
    background: var(--white);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(26, 26, 26, 0.06);
    backdrop-filter: blur(12px);
}

.header__logo img {
    height: 48px;
    object-fit: contain;
}

.navegacion {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.navegacion__link {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-sm);
    transition: all 0.25s ease;
}

.navegacion__link:hover {
    color: var(--primary);
}

.navegacion__link--registrar {
    background: var(--primary);
    color: var(--white) !important;
}

.navegacion__link--registrar:hover {
    background: var(--primary-dark);
    color: var(--white) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(196, 92, 38, 0.35);
}

/* ========== HERO SECTION ========== */
.formulario {
    width: 100%;
    padding: 5rem 0 6rem;
    background: linear-gradient(135deg, var(--cream) 0%, #f5e6d8 50%, var(--cream-dark) 100%);
    position: relative;
    overflow: hidden;
}

.formulario::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 100%;
    background: radial-gradient(circle, rgba(196, 92, 38, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.formulario__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.formulario__heading {
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 4vw, 3.5rem);
    font-weight: 600;
    line-height: 1.15;
    color: var(--dark);
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

.formulario__descripcion {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 420px;
}

.formulario__text {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary);
    margin: 2rem 0 1.5rem;
}

.formulario__submit {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.05rem;
    font-weight: 600;
    font-family: var(--font-body);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 20px rgba(196, 92, 38, 0.3);
}

.formulario__submit:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(196, 92, 38, 0.4);
}

.formulario__imagen-contenedor {
    display: flex;
    justify-content: center;
    align-items: center;
}

.formulario__imagen {
    width: 100%;
    max-width: 500px;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(26, 26, 26, 0.12));
}

/* ========== PASOS ========== */
.pasos {
    padding: 5rem 0;
    background: var(--white);
    position: relative;
}

.pasos__wave-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.pasos__wave {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
}

.pasos__wave path {
    fill: var(--cream);
}

.pasos__contenido {
    padding-top: 3rem;
}

.pasos__heading {
    font-family: var(--font-display);
    text-align: center;
    font-size: clamp(2rem, 3vw, 2.75rem);
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.pasos__heading--descripcion {
    display: block;
    font-family: var(--font-body);
    font-size: 1.15rem;
    font-weight: 400;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.pasos__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.pasos__paso {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius);
    border: 1px solid rgba(26, 26, 26, 0.06);
    text-align: center;
    transition: all 0.3s ease;
}

.pasos__paso:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: transparent;
}

.pasos__numero {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
}

.pasos__titulo {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--dark);
}

.pasos__texto {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ========== TESTIMONIALES ========== */
.testimoniales {
    padding: 5rem 0 7rem;
    background: var(--cream);
    width: 100%;
}

.testimoniales__heading {
    font-family: var(--font-display);
    text-align: center;
    font-size: clamp(2rem, 3vw, 2.75rem);
    font-weight: 600;
    margin-bottom: 3rem;
    color: var(--dark);
}

.testimoniales__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.testimonial {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    border: 1px solid rgba(26, 26, 26, 0.06);
    transition: all 0.3s ease;
}

.testimonial:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.testimonial__header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.testimonial__imagen {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--cream-dark) 0%, #e8d8c8 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial__imagen i {
    font-size: 1.5rem !important;
    color: var(--primary) !important;
}

.testimonial__autor {
    font-weight: 600;
    font-size: 1rem;
    color: var(--dark);
}

.testimonial__calificacion {
    display: flex;
    gap: 2px;
    margin-top: 0.25rem;
}

.testimonial__calificacion i {
    color: #e9a23b !important;
}

.testimonial__texto {
    font-style: italic;
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* ========== FUNCIONALIDADES ========== */
.favoritos {
    padding: 5rem 0;
    background: var(--white);
}

.favoritos__heading {
    font-family: var(--font-display);
    text-align: center;
    font-size: clamp(2rem, 3vw, 2.75rem);
    font-weight: 600;
    margin-bottom: 3rem;
    color: var(--dark);
}

.favoritos__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.favorito {
    background: var(--white);
}

.favorito__grid {
    display: flex;
    gap: 1.25rem;
    padding: 1.75rem;
    border-radius: var(--radius);
    border: 1px solid rgba(26, 26, 26, 0.06);
    height: 100%;
    transition: all 0.3s ease;
}

.favorito__grid:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: transparent;
}

.favorito__imagen {
    width: 52px;
    height: 52px;
    min-width: 52px;
    background: linear-gradient(135deg, var(--cream-dark) 0%, #e8d8c8 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.favorito__imagen i {
    font-size: 1.5rem !important;
    color: var(--primary) !important;
}

.favorito__nombre {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.favorito__descripcion {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ========== CTA SECTION ========== */
.repartidores {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    color: var(--white);
}

.repartidores__heading {
    font-family: var(--font-display);
    text-align: center;
    font-size: clamp(2rem, 3vw, 2.75rem);
    font-weight: 600;
    margin-bottom: 3rem;
    color: var(--white);
}

.repartidores__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.repartidores__imagen {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.25);
}

.repartidores__imagen img {
    width: 100%;
    height: auto;
    display: block;
}

.repartidores__texto {
    font-size: 1.05rem;
    margin-bottom: 1.25rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.95);
}

.repartidores__texto strong {
    color: var(--white);
}

.repartidores__enlace {
    display: inline-block;
    background: var(--white);
    color: var(--accent);
    padding: 1rem 2.25rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    margin-top: 0.5rem;
    transition: all 0.25s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.repartidores__enlace:hover {
    background: var(--cream);
    color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
}

/* ========== PLANES ========== */
.planes {
    padding: 5rem 0;
    background: var(--cream);
}

.planes h2 {
    font-family: var(--font-display);
    text-align: center;
    font-size: clamp(2rem, 3vw, 2.75rem);
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.descripcion {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.planes-activos {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 3rem;
    background: rgba(26, 26, 26, 0.08);
    padding: 0.5rem;
    border-radius: 50px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.toggle-background {
    position: absolute;
    background: var(--primary);
    width: 50%;
    height: calc(100% - 1rem);
    top: 0.5rem;
    left: 0.5rem;
    border-radius: 50px;
    transition: transform 0.3s ease;
    z-index: 0;
}

.planes-activos button {
    padding: 0.75rem 2rem;
    border: none;
    background: transparent;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    color: var(--text-muted);
}

.planes-activos button.active {
    color: var(--white);
}

.nuestros-planes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.plan {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius);
    border: 1px solid rgba(26, 26, 26, 0.06);
    text-align: center;
    transition: all 0.3s ease;
}

.plan:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: transparent;
}

.plan.pro {
    border-color: rgba(196, 92, 38, 0.3);
}

.plan h3 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary);
}

.precio {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1.5rem;
}

.listado {
    list-style: none;
    margin-bottom: 2rem;
}

.listado li {
    padding: 0.65rem 0;
    border-bottom: 1px solid rgba(26, 26, 26, 0.06);
    color: var(--text-muted);
    font-size: 0.95rem;
}

.listado li:last-child {
    border-bottom: none;
}

.boton-plan {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-body);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.25s ease;
    width: 100%;
}

.boton-plan:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(196, 92, 38, 0.35);
}

/* ========== FOOTER ========== */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 4rem 0 1.5rem;
}

.footer__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 2.5rem;
}

.footer__heading {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--white);
}

.footer__texto {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    font-size: 0.95rem;
}

.footer__nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer__link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer__link:hover {
    color: var(--white);
}

.footer__copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 968px) {
    .formulario__grid,
    .repartidores__grid {
        grid-template-columns: 1fr;
    }

    .formulario__imagen-contenedor {
        order: -1;
    }

    .formulario__imagen {
        max-width: 380px;
    }

    .pasos__grid,
    .testimoniales__grid,
    .favoritos__grid {
        grid-template-columns: 1fr;
    }

    .nuestros-planes {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .header {
        flex-direction: column;
        gap: 1rem;
    }

    .navegacion {
        flex-wrap: wrap;
        justify-content: center;
    }

    .formulario {
        padding: 3rem 0 4rem;
    }

    .footer__grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}
