/* ==========================================================
   Pastelería Catalina · Stylesheet
   Paleta basada en el logo: rosa acuarela + burdeos
   ========================================================== */

:root {
    --pink-50:  #fff5f8;
    --pink-100: #ffe4ec;
    --pink-200: #fbcdd9;
    --pink-300: #f7b3c5;
    --pink-400: #f191aa;
    --pink-500: #e26b8a;
    --rose:     #c8456b;
    --burgundy: #8b1c3f;
    --wine:     #5e0f2a;
    --cream:    #fef8f5;
    --ivory:    #fffaf6;
    --text:     #3d1f2a;
    --text-soft:#6b4753;
    --shadow:   0 10px 30px rgba(139, 28, 63, 0.10);
    --shadow-lg:0 20px 50px rgba(139, 28, 63, 0.18);
    --radius:   18px;
    --radius-lg:28px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
    color: var(--text);
    background: var(--ivory);
    line-height: 1.65;
    overflow-x: hidden;
}

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

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

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============ NAVBAR ============ */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    background: rgba(255, 250, 246, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 100;
    border-bottom: 1px solid rgba(199, 69, 107, 0.08);
    transition: padding 0.3s ease;
}

.nav-container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo img {
    height: 50px;
    width: 50px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: var(--shadow);
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 36px;
}

.nav-menu a {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: var(--text);
    position: relative;
    transition: color 0.3s;
}

.nav-menu a:hover { color: var(--rose); }

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -6px; left: 50%;
    width: 0; height: 2px;
    background: var(--rose);
    transition: all 0.3s;
    transform: translateX(-50%);
}

.nav-menu a:hover::after { width: 100%; }

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

.nav-toggle span {
    width: 26px;
    height: 2px;
    background: var(--burgundy);
    transition: all 0.3s;
}

.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -7px); }

/* ============ HERO ============ */
.hero {
    min-height: 100vh;
    background:
        radial-gradient(ellipse at 20% 30%, rgba(247, 179, 197, 0.4) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(251, 205, 217, 0.5) 0%, transparent 50%),
        linear-gradient(135deg, var(--ivory) 0%, var(--pink-50) 50%, var(--pink-100) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 80px;
    position: relative;
    overflow: hidden;
}

.hero-dots {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-dots span {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--pink-300);
    opacity: 0;
    animation: drift 14s linear infinite;
}

.hero-dots span:nth-child(1) { left: 8%;  animation-delay: 0s;  width: 4px; height: 4px; }
.hero-dots span:nth-child(2) { left: 28%; animation-delay: 3s;  width: 8px; height: 8px; background: var(--pink-200); }
.hero-dots span:nth-child(3) { left: 52%; animation-delay: 6s;  width: 5px; height: 5px; }
.hero-dots span:nth-child(4) { left: 72%; animation-delay: 9s;  width: 7px; height: 7px; background: var(--pink-200); }
.hero-dots span:nth-child(5) { left: 88%; animation-delay: 12s; width: 4px; height: 4px; }

@keyframes drift {
    0%   { transform: translateY(110vh) translateX(0);     opacity: 0; }
    10%  { opacity: 0.5; }
    50%  { transform: translateY(50vh)  translateX(20px); }
    90%  { opacity: 0.5; }
    100% { transform: translateY(-20vh) translateX(-20px); opacity: 0; }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 720px;
    animation: fadeUp 1s ease-out;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero-logo {
    width: 220px;
    height: 220px;
    margin: 0 auto 24px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: var(--shadow-lg);
    border: 6px solid white;
    animation: gentlePulse 4s ease-in-out infinite;
}

@keyframes gentlePulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.03); }
}

.hero-title {
    font-family: 'Dancing Script', cursive;
    font-size: clamp(48px, 8vw, 88px);
    font-weight: 700;
    color: var(--burgundy);
    margin-bottom: 8px;
    line-height: 1;
}

.hero-tagline {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(18px, 2.5vw, 24px);
    font-weight: 400;
    color: var(--text-soft);
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.hero-location {
    font-size: 16px;
    color: var(--rose);
    font-weight: 500;
    margin-bottom: 32px;
    letter-spacing: 1px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--rose) 0%, var(--burgundy) 100%);
    color: white;
    box-shadow: 0 8px 20px rgba(199, 69, 107, 0.35);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(199, 69, 107, 0.45);
}

.btn-secondary {
    background: white;
    color: var(--burgundy);
    border-color: var(--pink-300);
    box-shadow: var(--shadow);
}

.btn-secondary:hover {
    background: var(--pink-100);
    transform: translateY(-3px);
}

.hero-note {
    font-size: 14px;
    color: var(--text-soft);
    background: rgba(255, 255, 255, 0.7);
    padding: 12px 24px;
    border-radius: 50px;
    display: inline-block;
    border: 1px solid var(--pink-200);
}

/* ============ SECTIONS ============ */
.section {
    padding: 100px 0;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 64px;
}

.eyebrow {
    display: inline-block;
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--rose);
    font-weight: 600;
    margin-bottom: 16px;
}

.section-header h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 500;
    color: var(--burgundy);
    line-height: 1.2;
    margin-bottom: 16px;
}

.section-sub {
    font-size: 16px;
    color: var(--text-soft);
}

.ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 22px;
}

.ornament span {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--pink-300), transparent);
}

.ornament em {
    font-style: normal;
    color: var(--pink-400);
    font-size: 12px;
    letter-spacing: 2px;
}

/* ============ ABOUT ============ */
.about { background: var(--ivory); }

.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 80px;
    align-items: center;
}

.about-text p {
    font-size: 17px;
    color: var(--text-soft);
    margin-bottom: 20px;
}

.about-text strong { color: var(--burgundy); font-weight: 600; }

.features {
    list-style: none;
    margin-top: 32px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: var(--text);
    font-weight: 500;
}

.features li span {
    color: var(--rose);
    font-size: 14px;
}

.about-image .image-frame {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--pink-100), var(--pink-200));
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.about-image img {
    border-radius: 50%;
    box-shadow: var(--shadow);
    transform: rotate(-3deg);
    transition: transform 0.5s ease;
}

.about-image .image-frame:hover img { transform: rotate(0deg) scale(1.05); }

/* ============ SERVICES ============ */
.services {
    background: linear-gradient(180deg, var(--ivory) 0%, var(--pink-50) 100%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
}

.service-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 40px 28px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.4s ease;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--pink-300), var(--rose), var(--burgundy));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--pink-200);
}

.service-card:hover::before { transform: scaleX(1); }

.service-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    color: var(--rose);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s ease, color 0.4s ease;
}

.service-icon svg {
    width: 100%;
    height: 100%;
}

.service-card:hover .service-icon {
    transform: translateY(-4px);
    color: var(--burgundy);
}

.service-num {
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-size: 13px;
    letter-spacing: 4px;
    color: var(--pink-400);
    margin-bottom: 10px;
    font-weight: 500;
}

.service-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 24px;
    font-weight: 600;
    color: var(--burgundy);
    margin-bottom: 12px;
}

.service-card p {
    font-size: 15px;
    color: var(--text-soft);
}

/* ============ PROCESS ============ */
.process { background: var(--pink-50); }

.steps {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    counter-reset: steps;
}

.steps li {
    background: white;
    padding: 36px 28px;
    border-radius: var(--radius);
    text-align: center;
    position: relative;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.steps li:hover { transform: translateY(-5px); }

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--pink-300), var(--rose));
    color: white;
    font-family: 'Dancing Script', cursive;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    box-shadow: 0 6px 16px rgba(199, 69, 107, 0.3);
}

.steps li h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px;
    color: var(--burgundy);
    margin-bottom: 10px;
}

.steps li p {
    font-size: 14px;
    color: var(--text-soft);
}

/* ============ GALLERY / IG ============ */
.gallery { background: var(--ivory); }

.instagram-cta {
    display: flex;
    justify-content: center;
}

.ig-card {
    display: block;
    text-align: center;
    background: linear-gradient(135deg, #f9ce34 0%, #ee2a7b 50%, #6228d7 100%);
    padding: 4px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transition: all 0.4s ease;
    max-width: 420px;
    width: 100%;
}

.ig-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 25px 60px rgba(238, 42, 123, 0.3);
}

.ig-card .ig-icon,
.ig-card h3,
.ig-card p,
.ig-card .ig-btn {
    background: white;
}

.ig-card > * {
    background: white;
}

.ig-card .ig-icon {
    padding: 40px 0 20px;
    color: #ee2a7b;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.ig-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 26px;
    color: var(--burgundy);
    padding: 0 20px 8px;
}

.ig-card p {
    color: var(--text-soft);
    font-size: 15px;
    padding: 0 20px 24px;
}

.ig-card .ig-btn {
    display: block;
    padding: 18px;
    color: white !important;
    background: linear-gradient(135deg, #f9ce34 0%, #ee2a7b 50%, #6228d7 100%) !important;
    font-weight: 600;
    letter-spacing: 1px;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    transition: opacity 0.3s;
}

.ig-card:hover .ig-btn { opacity: 0.92; }

/* ============ CONTACT ============ */
.contact {
    background: linear-gradient(180deg, var(--pink-50) 0%, var(--pink-100) 100%);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    max-width: 920px;
    margin: 0 auto;
}

.contact-card {
    background: white;
    padding: 36px 24px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    display: block;
}

a.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.contact-icon {
    width: 44px;
    height: 44px;
    margin: 0 auto 16px;
    color: var(--rose);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s, transform 0.3s;
}

.contact-icon svg { width: 100%; height: 100%; }

a.contact-card:hover .contact-icon {
    color: var(--burgundy);
    transform: translateY(-3px);
}

.contact-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px;
    color: var(--burgundy);
    margin-bottom: 8px;
}

.contact-card p {
    color: var(--text-soft);
    font-size: 15px;
}

/* ============ FOOTER ============ */
.footer {
    background: linear-gradient(135deg, var(--burgundy) 0%, var(--wine) 100%);
    color: var(--pink-100);
    padding: 60px 0 30px;
    text-align: center;
}

.footer-logo {
    width: 90px;
    height: 90px;
    margin: 0 auto 20px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--pink-200);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.footer-name {
    font-family: 'Dancing Script', cursive;
    font-size: 36px;
    color: white;
    margin-bottom: 4px;
}

.footer-tag {
    font-family: 'Cormorant Garamond', serif;
    font-size: 16px;
    color: var(--pink-200);
    margin-bottom: 6px;
    letter-spacing: 2px;
}

.footer-location {
    font-size: 14px;
    color: var(--pink-200);
    margin-bottom: 24px;
}

.footer-social {
    margin-bottom: 24px;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: var(--pink-100);
    transition: all 0.3s;
}

.footer-social a:hover {
    background: white;
    color: var(--burgundy);
    transform: translateY(-3px);
}

.footer-copy {
    font-size: 12px;
    color: var(--pink-300);
    letter-spacing: 1px;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
    margin-top: 24px;
}

/* ============ FLOAT BUTTON ============ */
.float-ig {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #f9ce34 0%, #ee2a7b 50%, #6228d7 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 10px 30px rgba(238, 42, 123, 0.4);
    z-index: 99;
    transition: all 0.3s;
    animation: gentleBounce 3s ease-in-out infinite;
}

.float-ig:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 40px rgba(238, 42, 123, 0.5);
}

@keyframes gentleBounce {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-6px); }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 860px) {
    .nav-menu {
        position: fixed;
        top: 78px;
        left: 0; right: 0;
        flex-direction: column;
        background: var(--ivory);
        padding: 24px;
        gap: 18px;
        transform: translateY(-150%);
        transition: transform 0.4s ease;
        box-shadow: 0 8px 20px rgba(0,0,0,0.05);
        border-top: 1px solid rgba(199, 69, 107, 0.08);
    }

    .nav-menu.active { transform: translateY(0); }

    .nav-toggle { display: flex; }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image {
        max-width: 360px;
        margin: 0 auto;
    }

    .features { grid-template-columns: 1fr; }

    .section { padding: 70px 0; }

    .hero { padding: 100px 24px 60px; }

    .hero-logo {
        width: 160px;
        height: 160px;
    }
}

@media (max-width: 480px) {
    .hero-cta { flex-direction: column; width: 100%; }
    .btn { width: 100%; text-align: center; }
    .float-ig { width: 54px; height: 54px; bottom: 20px; right: 20px; }
}

/* ============ ANIMATIONS ON SCROLL ============ */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============ PAGE ENTER ============ */
@media (prefers-reduced-motion: no-preference) {
    main, header.hero {
        animation: pageEnter 0.5s ease-out;
    }
}

@keyframes pageEnter {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============ FOCUS VISIBLE ============ */
:focus-visible {
    outline: 2px solid var(--rose);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
