/* ============================================
   HELAUS — Helado Artesanal
   Design System & Landing Page Styles
   ============================================ */

/* --- Custom Properties --- */
:root {
    --color-primary: #E8546A;
    --color-primary-dark: #D94452;
    --color-primary-light: #F28C9B;
    --color-accent: #F5C33B;
    --color-accent-dark: #D9A520;
    --color-white: #FFFFFF;
    --color-cream: #FFF8F0;
    --color-dark: #2D1B1E;
    --color-gray: #8A7A7D;

    --gradient-brand: linear-gradient(135deg, #E8546A 0%, #D94452 100%);
    --gradient-hero: linear-gradient(160deg, #E8546A 0%, #C93A4A 60%, #B8303F 100%);

    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, sans-serif;

    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 32px;
    --radius-full: 9999px;

    --shadow-soft: 0 4px 24px rgba(232, 84, 106, 0.12);
    --shadow-medium: 0 8px 40px rgba(232, 84, 106, 0.18);
    --shadow-card: 0 12px 48px rgba(0, 0, 0, 0.08);
    --shadow-elevated: 0 20px 60px rgba(232, 84, 106, 0.25);

    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-medium: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    color: var(--color-dark);
    background: var(--color-cream);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Waffle Pattern Background --- */
.hero-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.08;
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    pointer-events: none;
    z-index: 0;
}

/* --- Reveal Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 {
    transition-delay: 0.15s;
}

.reveal-delay-2 {
    transition-delay: 0.3s;
}

.reveal-delay-3 {
    transition-delay: 0.45s;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition-medium);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
    padding: 10px 0;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1001;
}

.logo-img {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

.logo-name {
    font-family: var(--font-body);
    font-weight: 800;
    font-size: 1.3rem;
    letter-spacing: 2px;
    color: var(--color-white);
    display: block;
    line-height: 1.1;
    transition: var(--transition-medium);
}

.logo-sub {
    font-size: 0.55rem;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.7);
    display: block;
    transition: var(--transition-medium);
}

.navbar.scrolled .logo-name {
    color: var(--color-dark);
}

.navbar.scrolled .logo-sub {
    color: var(--color-gray);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links li a {
    padding: 10px 18px;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-white);
    transition: var(--transition-fast);
}

.navbar.scrolled .nav-links li a {
    color: var(--color-dark);
}

.nav-links li a:hover {
    background: rgba(255, 255, 255, 0.15);
}

.navbar.scrolled .nav-links li a:hover {
    background: var(--color-cream);
}

/* CTA Button */
.btn-cta {
    background: var(--color-accent) !important;
    color: var(--color-dark) !important;
    font-weight: 700 !important;
    padding: 10px 24px !important;
    box-shadow: 0 4px 16px rgba(245, 195, 59, 0.3);
}

.btn-cta:hover {
    background: var(--color-accent-dark) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(245, 195, 59, 0.4) !important;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.mobile-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-white);
    border-radius: 2px;
    transition: var(--transition-fast);
}

.navbar.scrolled .mobile-toggle span {
    background: var(--color-dark);
}

.mobile-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition-fast);
    white-space: nowrap;
}

.btn-primary {
    background: var(--color-accent);
    color: var(--color-dark);
    box-shadow: 0 4px 20px rgba(245, 195, 59, 0.3);
}

.btn-primary:hover {
    background: var(--color-accent-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(245, 195, 59, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: var(--color-white);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
}

.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-outline:hover {
    background: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-3px);
}

/* ============================================
   HERO
   ============================================ */
.hero {
    background: var(--gradient-hero);
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to top, var(--color-cream), transparent);
    z-index: 1;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 8px 20px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-white);
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.8rem, 6vw, 5rem);
    font-weight: 800;
    color: var(--color-white);
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-title .highlight {
    color: var(--color-accent);
    font-style: italic;
}

.hero-text {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 480px;
    margin-bottom: 36px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-image {
    width: 100%;
    max-width: 460px;
    border-radius: var(--radius-lg);
    filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.25));
    animation: float 6s ease-in-out infinite;
}

.hero-logo-float {
    position: absolute;
    top: -20px;
    left: -50px;
    width: 144px;
    height: 144px;
    z-index: 3;
    transform-origin: center bottom;
    filter: drop-shadow(0 4px 20px rgba(245, 195, 59, 0.5));
    animation: logoSwing 4s ease-in-out infinite, logoDrift 6s ease-in-out infinite;
}

@keyframes logoSwing {

    0%,
    100% {
        rotate: 0deg;
    }

    25% {
        rotate: 45deg;
    }

    75% {
        rotate: -45deg;
    }
}

@keyframes logoDrift {

    0%,
    100% {
        transform: translate(0, 0);
    }

    33% {
        transform: translate(8px, -12px);
    }

    66% {
        transform: translate(-6px, -8px);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-16px);
    }
}

.floating-badge {
    position: absolute;
    bottom: 30px;
    right: 20px;
    background: var(--color-white);
    padding: 16px 20px;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-elevated);
    animation: float 6s ease-in-out infinite 1s;
}

.floating-badge span {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--color-primary);
}

.floating-badge small {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================
   SECCIÓN LÍNEAS
   ============================================ */
.section-lineas {
    padding: 100px 0;
    background: var(--color-cream);
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--color-dark);
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-gray);
    max-width: 550px;
    margin: 0 auto;
}

.lineas-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.linea-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: var(--transition-medium);
    position: relative;
}

.linea-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-elevated);
}

.linea-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    z-index: 2;
    background: var(--color-white);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-soft);
}

.linea-image-wrapper {
    height: 240px;
    overflow: hidden;
    position: relative;
}

.linea-gourmet .linea-image-wrapper {
    background: linear-gradient(135deg, #8B4513, #D2691E);
}

.linea-fit .linea-image-wrapper {
    background: linear-gradient(135deg, #2ECC71, #27AE60);
}

.linea-pet .linea-image-wrapper {
    background: linear-gradient(135deg, #3498DB, #2980B9);
}

.linea-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.linea-card:hover .linea-image {
    transform: scale(1.05);
}

.linea-content {
    padding: 28px;
}

.linea-content h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--color-dark);
    margin-bottom: 12px;
}

.linea-content p {
    color: var(--color-gray);
    font-size: 0.95rem;
    margin-bottom: 16px;
    line-height: 1.7;
}

.linea-tag {
    display: inline-block;
    background: var(--color-cream);
    color: var(--color-primary);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
}

/* ============================================
   SECCIÓN HISTORIA
   ============================================ */
.section-historia {
    padding: 100px 0;
    background: var(--gradient-brand);
    position: relative;
    overflow: hidden;
}

.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.text-block .section-title {
    color: var(--color-white);
    margin-bottom: 24px;
}

.text-block .section-title em {
    color: var(--color-accent);
}

.text-block p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.05rem;
    margin-bottom: 20px;
    line-height: 1.8;
}

.text-block .btn-primary {
    margin-top: 12px;
}

.about-image {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-elevated);
}

/* ============================================
   MISIÓN & VISIÓN
   ============================================ */
.section-mision-vision {
    padding: 100px 0;
    background: var(--color-cream);
}

.mv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.mv-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: 48px 40px;
    box-shadow: var(--shadow-card);
    transition: var(--transition-medium);
}

.mv-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-elevated);
}

.mv-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.mv-card h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: var(--color-primary);
    margin-bottom: 16px;
}

.mv-card p {
    color: var(--color-gray);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 12px;
}

.mv-card p:last-child {
    margin-bottom: 0;
}

/* ============================================
   TESTIMONIOS
   ============================================ */
.section-testimonios {
    padding: 100px 0;
    background: var(--color-cream);
}

.section-testimonios blockquote {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}

.quote-icon {
    font-family: var(--font-heading);
    font-size: 6rem;
    font-weight: 800;
    color: var(--color-primary-light);
    line-height: 0.5;
    display: block;
    margin-bottom: 20px;
    opacity: 0.4;
}

.section-testimonios blockquote p {
    font-family: var(--font-heading);
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    font-weight: 600;
    font-style: italic;
    color: var(--color-dark);
    line-height: 1.6;
    margin-bottom: 24px;
}

.section-testimonios cite {
    font-style: normal;
    font-weight: 600;
    color: var(--color-primary);
    font-size: 1rem;
}

/* ============================================
   UBICACIÓN
   ============================================ */
.section-ubicacion {
    padding: 100px 0;
    background: var(--color-white);
}

.location-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.location-card {
    background: var(--color-cream);
    border-radius: var(--radius-lg);
    padding: 48px 40px;
    text-align: center;
    border: 2px solid transparent;
    transition: var(--transition-medium);
}

.location-card:hover {
    border-color: var(--color-primary-light);
    box-shadow: var(--shadow-medium);
}

.location-badge {
    font-size: 3rem;
    margin-bottom: 20px;
}

.location-card h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--color-dark);
    margin-bottom: 12px;
}

.location-detail {
    color: var(--color-gray);
    margin-bottom: 28px;
    font-size: 1rem;
}

.location-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.location-actions .btn-secondary {
    background: rgba(232, 84, 106, 0.08);
    color: var(--color-primary);
    border-color: var(--color-primary-light);
    backdrop-filter: none;
}

.location-actions .btn-secondary:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

.location-coming {
    background: linear-gradient(135deg, var(--color-cream), #FFF0F2);
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    background: var(--gradient-hero);
    padding: 80px 0 0;
    position: relative;
    overflow: hidden;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    position: relative;
    z-index: 2;
}

.footer-logo {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
}

.footer-brand h3 {
    font-family: var(--font-body);
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 3px;
    color: var(--color-white);
    margin-bottom: 4px;
}

.footer-slogan {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.footer-grid h4 {
    font-family: var(--font-heading);
    color: var(--color-accent);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-grid ul li {
    margin-bottom: 10px;
}

.footer-grid ul li a {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.footer-grid ul li a:hover {
    color: var(--color-white);
    padding-left: 4px;
}

.copyright {
    text-align: center;
    padding: 32px 0;
    margin-top: 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    position: relative;
    z-index: 2;
}

.copyright p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .hero-grid {
        gap: 40px;
    }

    .lineas-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(232, 84, 106, 0.97);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 16px;
        opacity: 0;
        pointer-events: none;
        transition: var(--transition-medium);
    }

    .nav-links.active {
        opacity: 1;
        pointer-events: all;
    }

    .nav-links li a {
        font-size: 1.3rem;
        color: var(--color-white) !important;
    }

    .hero {
        padding: 100px 0 60px;
        min-height: auto;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text {
        margin: 0 auto 28px;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-image {
        max-width: 320px;
        margin: 0 auto;
    }

    .hero-logo-float {
        left: 10px;
        top: -10px;
        width: 100px;
    }

    .floating-badge {
        right: auto;
        left: 50%;
        transform: translateX(-50%);
        bottom: -10px;
    }

    .lineas-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .split-layout {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .mv-grid {
        grid-template-columns: 1fr;
    }

    .location-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .section-lineas,
    .section-historia,
    .section-testimonios,
    .section-ubicacion {
        padding: 64px 0;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.4rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 280px;
    }

    .linea-image-wrapper {
        height: 180px;
    }
}

/* Credit & Easter egg */
.credit {
    margin-top: 8px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
}

.credit a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.3s;
}

.credit a:hover {
    color: var(--color-accent);
}

.easter-egg {
    position: absolute;
    bottom: 24px;
    right: 24px;
    font-size: 1.2rem;
    text-decoration: none;
    opacity: 0.3;
    transition: opacity 0.3s, transform 0.3s;
    cursor: pointer;
    z-index: 10;
}

.easter-egg:hover {
    opacity: 1;
    transform: scale(1.2) rotate(10deg);
}