/* ========================================
   EL PICOSITO — Custom Styles
   ======================================== */

/* --- Reset & Base --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
}

/* --- Navbar --- */
.nav {
    background: rgba(255, 252, 245, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: background 0.4s ease, box-shadow 0.4s ease;
}

.nav.scrolled {
    background: rgba(255, 252, 245, 0.97);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

.nav-inner {
    transition: padding 0.3s ease;
}

.nav-logo {
    text-decoration: none;
}

.nav-logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #d4502b, #e46a4a);
    border-radius: 8px;
    position: relative;
    flex-shrink: 0;
}

.nav-logo-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: rgba(255, 252, 245, 0.9);
    border-radius: 50%;
}

.nav-link {
    text-decoration: none;
    color: rgba(26, 15, 10, 0.7);
    font-weight: 500;
    font-size: 0.938rem;
    padding: 0.5rem 0.875rem;
    border-radius: 8px;
    transition: color 0.2s, background 0.2s;
}

.nav-link:hover {
    color: #d4502b;
    background: rgba(212, 80, 43, 0.06);
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: #d4502b;
    color: #fff;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    margin-left: 0.5rem;
}

.nav-cta:hover {
    background: #b83d1e;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(212, 80, 43, 0.35);
}

.nav-cta-icon {
    width: 14px;
    height: 14px;
}

/* --- Mobile Menu --- */
.mobile-menu {
    z-index: 40;
}

.mobile-menu.open {
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu-link {
    text-decoration: none;
    font-family: 'Playfair Display', Georgia, serif;
}

.mobile-menu-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #d4502b;
    color: #fff;
    font-weight: 600;
    font-size: 1.125rem;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
}

.mobile-menu-cta:hover {
    background: #b83d1e;
    transform: translateY(-2px);
}

.mob-cta-icon {
    width: 18px;
    height: 18px;
}

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
}

.hero-img {
    position: absolute;
    inset: 0;
}

.hero-img-fill {
    transform: scale(1.05);
    animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
    from { transform: scale(1.05); }
    to { transform: scale(1.12); }
}

.hero-overlay {
    background: linear-gradient(
        135deg,
        rgba(26, 15, 10, 0.82) 0%,
        rgba(54, 17, 10, 0.72) 50%,
        rgba(26, 15, 10, 0.85) 100%
    );
}

.hero-geo {
    position: absolute;
    border-radius: 50%;
    opacity: 0.12;
    pointer-events: none;
}

.hero-geo--top-right {
    width: 400px;
    height: 400px;
    background: #f5b825;
    top: -100px;
    right: -100px;
}

.hero-geo--bottom-left {
    width: 300px;
    height: 300px;
    background: #d4502b;
    bottom: -80px;
    left: -80px;
}

.hero-geo--bottom-right {
    width: 200px;
    height: 200px;
    background: #e46a4a;
    bottom: 20%;
    right: 5%;
    opacity: 0.08;
}

.hero-content {
    animation: heroFadeIn 1s ease-out both;
}

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

.hero-badge {
    animation: heroFadeIn 1s ease-out 0.2s both;
}

.hero-badge-dot {
    width: 8px;
    height: 8px;
    background: #f5b825;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.3); }
}

.hero-headline {
    animation: heroFadeIn 1s ease-out 0.3s both;
}

.hero-headline-line {
    display: block;
    line-height: 1.05;
}

.hero-sub {
    animation: heroFadeIn 1s ease-out 0.4s both;
}

.hero-actions {
    animation: heroFadeIn 1s ease-out 0.5s both;
}

.hero-trust {
    animation: heroFadeIn 1s ease-out 0.6s both;
}

/* Scroll indicator */
.hero-scroll {
    animation: heroFadeIn 1s ease-out 0.8s both;
}

.hero-scroll-mouse {
    width: 26px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 13px;
    position: relative;
}

.hero-scroll-wheel {
    width: 4px;
    height: 8px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s ease-in-out infinite;
}

@keyframes scrollWheel {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(12px); }
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: 'Outfit', system-ui, sans-serif;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.btn--primary {
    background: #d4502b;
    color: #fff;
    padding: 0.875rem 1.75rem;
    border-radius: 50px;
    font-size: 1rem;
}

.btn--primary:hover {
    background: #b83d1e;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 80, 43, 0.4);
}

.btn--terracotta {
    background: #d4502b;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-size: 0.938rem;
}

.btn--terracotta:hover {
    background: #b83d1e;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 80, 43, 0.35);
}

.btn--outline-light {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.4);
    padding: 0.813rem 1.625rem;
    border-radius: 50px;
    font-size: 1rem;
}

.btn--outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.7);
    transform: translateY(-2px);
}

.btn--lg {
    padding: 1rem 2rem;
    font-size: 1.063rem;
}

.btn--md {
    padding: 0.75rem 1.5rem;
    font-size: 0.938rem;
}

.btn-icon {
    width: 18px;
    height: 18px;
}

.btn-arrow {
    width: 18px;
    height: 18px;
    transition: transform 0.2s;
}

.btn:hover .btn-arrow {
    transform: translateX(4px);
}

/* --- Highlights Bar --- */
.highlight-item {
    transition: transform 0.2s;
}

.highlight-item:hover {
    transform: translateY(-2px);
}

.highlight-num {
    font-family: 'Playfair Display', Georgia, serif;
}

.highlight-label {
    font-size: 0.813rem;
}

/* --- Sections --- */
.section {
    position: relative;
    z-index: 1;
}

.section-header {
    margin-bottom: 3rem;
}

.section-tag {
    margin-bottom: 1rem;
}

.section-tag-line {
    height: 2px;
    width: 32px;
    border-radius: 1px;
}

.section-title {
    font-family: 'Playfair Display', Georgia, serif;
}

.section-desc {
    font-size: 1.063rem;
    line-height: 1.65;
}

/* --- Menu Cards --- */
.menu-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.menu-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
}

.menu-card-inner {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.menu-card:hover .menu-card-inner {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.menu-card--reverse .menu-card-inner {
    background: #1a0f0a;
}

.menu-card-accent {
    height: 5px;
    background: linear-gradient(90deg, #d4502b, #f5b825);
}

.menu-card--reverse .menu-card-accent {
    background: linear-gradient(90deg, #f5b825, #d4502b);
}

.menu-card-content {
    padding: 1.75rem;
}

.menu-card-header {
    margin-bottom: 1.25rem;
}

.menu-card-icon {
    width: 48px;
    height: 48px;
    background: rgba(212, 80, 43, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.menu-card--reverse .menu-card-icon {
    background: rgba(245, 184, 37, 0.15);
}

.menu-card-icon svg {
    width: 24px;
    height: 24px;
    stroke: #d4502b;
}

.menu-card--reverse .menu-card-icon svg {
    stroke: #f5b825;
}

.menu-items {
    list-style: none;
}

.menu-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.menu-item-dot {
    width: 6px;
    height: 6px;
    background: #d4502b;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 0.5rem;
}

.menu-item-dot--secondary {
    background: #f5b825;
}

.menu-item-name {
    font-family: 'Outfit', system-ui, sans-serif;
}

.menu-item-desc {
    font-family: 'Outfit', system-ui, sans-serif;
}

/* --- About --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.about-img-main {
    border-radius: 20px;
    overflow: hidden;
}

.about-img-fill {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about-float-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.about-dots {
    position: absolute;
    z-index: -1;
}

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

.about-value {
    padding: 1rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s;
}

.about-value:hover {
    transform: translateY(-2px);
}

.about-value-icon {
    margin-bottom: 0.5rem;
}

.about-value-title {
    font-family: 'Outfit', system-ui, sans-serif;
}

.about-value-desc {
    font-family: 'Outfit', system-ui, sans-serif;
    line-height: 1.5;
}

/* --- Gallery --- */
.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    grid-template-rows: auto;
}

@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(12, 1fr);
        grid-template-rows: 200px 200px;
        gap: 1rem;
    }

    .gallery-item--1 {
        grid-column: 1 / 8;
        grid-row: 1 / 2;
    }

    .gallery-item--2 {
        grid-column: 8 / 13;
        grid-row: 1 / 2;
    }

    .gallery-item--3 {
        grid-column: 1 / 7;
        grid-row: 2 / 3;
    }

    .gallery-item--4 {
        grid-column: 7 / 13;
        grid-row: 2 / 3;
    }
}

.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
}

.gallery-img {
    transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-img {
    transform: scale(1.08);
}

.gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26, 15, 10, 0.7) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 1.25rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}

/* --- Testimonials --- */
.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 768px) {
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.75rem;
    transition: transform 0.3s, background 0.3s;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.12);
}

.testimonial-stars {
    font-size: 1.125rem;
    letter-spacing: 2px;
}

.testimonial-text {
    font-family: 'Outfit', system-ui, sans-serif;
    font-size: 1.063rem;
    line-height: 1.7;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.testimonial-avatar {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.testimonial-name {
    font-family: 'Outfit', system-ui, sans-serif;
}

.testimonial-location {
    font-family: 'Outfit', system-ui, sans-serif;
}

.testimonials-geo {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.testimonials-geo--1 {
    width: 300px;
    height: 300px;
    background: rgba(245, 184, 37, 0.08);
    top: -100px;
    right: -50px;
}

.testimonials-geo--2 {
    width: 200px;
    height: 200px;
    background: rgba(212, 80, 43, 0.08);
    bottom: -60px;
    left: -40px;
}

/* --- Visit / Contact --- */
.visit-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .visit-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.visit-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.visit-card {
    border-radius: 16px;
    overflow: hidden;
}

.visit-card-inner {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: #fff;
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s, box-shadow 0.2s;
}

.visit-card-inner:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.visit-card-icon {
    width: 48px;
    height: 48px;
    background: rgba(212, 80, 43, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.visit-card-icon svg {
    width: 24px;
    height: 24px;
}

.visit-card h3 {
    font-family: 'Outfit', system-ui, sans-serif;
}

.visit-card p {
    font-family: 'Outfit', system-ui, sans-serif;
    line-height: 1.7;
}

.visit-card-link {
    font-family: 'Outfit', system-ui, sans-serif;
}

.visit-map {
    position: relative;
}

/* --- CTA Banner --- */
.cta-banner {
    position: relative;
    z-index: 1;
}

.cta-geo {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.cta-geo--1 {
    width: 250px;
    height: 250px;
    background: rgba(212, 80, 43, 0.15);
    top: -80px;
    left: -60px;
}

.cta-geo--2 {
    width: 180px;
    height: 180px;
    background: rgba(245, 184, 37, 0.1);
    bottom: -60px;
    right: -40px;
}

/* --- Footer --- */
.footer {
    position: relative;
    z-index: 1;
}

.footer-logo {
    text-decoration: none;
}

.footer-logo-icon {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #d4502b, #e46a4a);
    border-radius: 6px;
    position: relative;
    flex-shrink: 0;
}

.footer-logo-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: rgba(255, 252, 245, 0.9);
    border-radius: 50%;
}

.footer-logo span {
    font-family: 'Playfair Display', Georgia, serif;
}

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

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.footer h4 {
    font-family: 'Outfit', system-ui, sans-serif;
}

.footer p, .footer li {
    font-family: 'Outfit', system-ui, sans-serif;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

@media (min-width: 640px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* --- Geometric Background Shapes --- */
.geo-shapes {
    z-index: 0;
}

.geo-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.06;
}

.geo-circle--1 {
    width: 500px;
    height: 500px;
    background: #d4502b;
    top: 10%;
    right: -150px;
}

.geo-circle--2 {
    width: 350px;
    height: 350px;
    background: #f5b825;
    bottom: 20%;
    left: -100px;
}

.geo-triangle {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0.05;
}

.geo-triangle--1 {
    border-left: 120px solid transparent;
    border-right: 120px solid transparent;
    border-bottom: 200px solid #d4502b;
    top: 35%;
    left: 5%;
    transform: rotate(15deg);
}

.geo-dots {
    position: absolute;
    opacity: 0.08;
}

.geo-dots--1 {
    top: 60%;
    right: 8%;
    width: 80px;
    height: 80px;
    background-image: radial-gradient(circle, #d4502b 1.5px, transparent 1.5px);
    background-size: 12px 12px;
}

.geo-stripe {
    position: absolute;
    opacity: 0.04;
}

.geo-stripe--1 {
    width: 300px;
    height: 200px;
    bottom: 10%;
    right: 15%;
    background: repeating-linear-gradient(
        -45deg,
        #f5b825,
        #f5b825 4px,
        transparent 4px,
        transparent 8px
    );
}

/* --- Scroll Reveal (progressive enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

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

    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
}

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

    html {
        scroll-behavior: auto;
    }

    .hero-img-fill {
        animation: none;
        transform: scale(1.05);
    }
}

/* --- Mobile menu open state --- */
body.menu-open {
    overflow: hidden;
}

.mobile-menu.open {
    opacity: 1;
    pointer-events: auto;
}

.mobile-toggle[aria-expanded="true"] .mob-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle[aria-expanded="true"] .mob-line:nth-child(2) {
    opacity: 0;
}

.mobile-toggle[aria-expanded="true"] .mob-line:nth-child(3) {
    width: 24px;
    transform: rotate(-45deg) translate(5px, -5px);
}
