/* SABOR DE @CASA — Components Part 2 */

/* PRODUCT CARDS */
.product-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: all var(--transition-slow);
    position: relative
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg)
}

.product-card-img {
    height: 280px;
    overflow: hidden;
    position: relative
}

.product-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow)
}

.product-card:hover .product-card-img img {
    transform: scale(1.06)
}

.product-card-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--terracotta);
    color: var(--white);
    font-family: var(--font-script);
    font-size: 0.9rem;
    padding: 0.3rem 1rem;
    border-radius: var(--radius-xl);
    z-index: 2
}

.product-card-body {
    padding: var(--space-md);
    text-align: center
}

.product-card-body h3 {
    margin-bottom: var(--space-xs);
    font-size: 1.4rem
}

.product-card-body .card-script {
    font-family: var(--font-script);
    color: var(--terracotta);
    font-size: 1.05rem;
    margin-bottom: var(--space-xs)
}

.product-card-body p {
    font-size: 0.95rem;
    margin-bottom: var(--space-md);
    color: var(--chocolate-light)
}

/* STORY SECTION */
.story-section {
    background: var(--cream);
    position: relative;
    overflow: hidden
}

.story-section::before {
    content: '';
    position: absolute;
    top: -60px;
    left: -60px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(156, 175, 136, 0.1)
}

.story-img {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative
}

.story-img img {
    width: 100%;
    height: 400px;
    object-fit: cover
}

.story-img::after {
    content: '';
    position: absolute;
    bottom: -15px;
    right: -15px;
    width: 120px;
    height: 120px;
    border: 3px solid var(--terracotta);
    border-radius: var(--radius-lg);
    z-index: -1
}

.story-content {
    padding-left: var(--space-lg)
}

.story-content .script-quote {
    font-family: var(--font-script);
    font-size: 1.6rem;
    color: var(--terracotta);
    margin-bottom: var(--space-md);
    line-height: 1.4
}

.story-content h2 {
    margin-bottom: var(--space-sm)
}

.story-content p {
    margin-bottom: var(--space-sm)
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    align-items: center
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg)
}

/* TESTIMONIALS */
.testimonials-section {
    background: linear-gradient(135deg, var(--chocolate) 0%, var(--chocolate-light) 100%);
    position: relative;
    overflow: hidden
}

.testimonials-section .section-header h2 {
    color: var(--cream)
}

.testimonials-section .section-header p {
    color: rgba(245, 245, 220, 0.7)
}

.testimonials-section .section-divider {
    background: var(--terracotta)
}

.testimonial-slider {
    display: flex;
    gap: var(--space-lg);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding: var(--space-sm) 0
}

.testimonial-slider::-webkit-scrollbar {
    display: none
}

.testimonial-card {
    flex: 0 0 calc(33.333% - 1.7rem);
    scroll-snap-align: center;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    text-align: center
}

.testimonial-stars {
    color: #FFD700;
    font-size: 1.2rem;
    margin-bottom: var(--space-sm);
    letter-spacing: 3px
}

.testimonial-text {
    font-style: italic;
    color: rgba(245, 245, 220, 0.9);
    font-size: 1.05rem;
    margin-bottom: var(--space-md);
    line-height: 1.8
}

.testimonial-author {
    font-weight: 600;
    color: var(--terracotta-light);
    font-size: 0.95rem
}

/* LOCATION */
.location-section {
    background: var(--cream)
}

.location-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    align-items: center
}

.location-info {
    padding-right: var(--space-lg)
}

.location-info h3 {
    margin-bottom: var(--space-sm)
}

.location-info .address {
    font-size: 1.05rem;
    margin-bottom: var(--space-md);
    line-height: 1.8
}

.location-hours {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    margin-bottom: var(--space-md);
    box-shadow: var(--shadow-sm)
}

.location-hours h4 {
    margin-bottom: var(--space-xs);
    color: var(--terracotta);
    font-size: 1rem
}

.location-hours p {
    font-size: 0.95rem
}

.map-wrapper {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    height: 400px
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: 0
}

/* PAGE HERO (Internal pages) */
.page-hero {
    padding-top: calc(var(--header-height) + var(--space-2xl));
    padding-bottom: var(--space-xl);
    background: linear-gradient(135deg, var(--cream) 0%, var(--cream-dark) 100%);
    text-align: center;
    position: relative;
    overflow: hidden
}

.page-hero::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(226, 114, 91, 0.06)
}

.page-hero::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: rgba(156, 175, 136, 0.06)
}

.page-hero h1 {
    margin-bottom: var(--space-xs)
}

.page-hero .subtitle {
    font-family: var(--font-script);
    font-size: 1.3rem;
    color: var(--terracotta)
}

.breadcrumb {
    margin-top: var(--space-sm);
    font-size: 0.85rem;
    color: var(--chocolate-light)
}

.breadcrumb a {
    color: var(--terracotta)
}

.breadcrumb a:hover {
    text-decoration: underline
}

/* SPECIALTIES */
.specialty-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
    padding: var(--space-xl) 0;
    border-bottom: 1px solid var(--cream-dark)
}

.specialty-block:last-child {
    border-bottom: none
}

.specialty-block.reverse {
    direction: rtl
}

.specialty-block.reverse>* {
    direction: ltr
}

.specialty-img {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg)
}

.specialty-img img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    transition: transform var(--transition-slow)
}

.specialty-img:hover img {
    transform: scale(1.04)
}

.specialty-content h3 {
    font-size: 1.8rem;
    margin-bottom: var(--space-xs)
}

.specialty-content .script-label {
    font-family: var(--font-script);
    color: var(--terracotta);
    font-size: 1.15rem;
    margin-bottom: var(--space-sm)
}

.specialty-content p {
    margin-bottom: var(--space-sm)
}

.filling-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: var(--space-sm)
}

.filling-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: var(--cream);
    color: var(--chocolate);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-xl);
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid var(--cream-dark);
    transition: all var(--transition-base)
}

.filling-tag:hover {
    background: var(--terracotta);
    color: var(--white);
    border-color: var(--terracotta)
}

/* CAKES */
.cake-categories {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
    margin-bottom: var(--space-xl)
}

.cake-category {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    text-align: center;
    transition: all var(--transition-base);
    cursor: pointer
}

.cake-category:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg)
}

.cake-category-img {
    height: 200px;
    overflow: hidden
}

.cake-category-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow)
}

.cake-category:hover .cake-category-img img {
    transform: scale(1.06)
}

.cake-category h4 {
    padding: var(--space-sm);
    font-size: 1.1rem
}

.cake-category .icon {
    font-size: 1.8rem;
    margin-bottom: 0.3rem
}

/* ORDER FORM */
.order-form-section {
    background: var(--cream);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    margin-top: var(--space-xl)
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md)
}

.form-group {
    margin-bottom: var(--space-sm)
}

.form-group.full-width {
    grid-column: 1/-1
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
    color: var(--chocolate)
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.85rem 1.2rem;
    border: 2px solid var(--cream-dark);
    border-radius: var(--radius-md);
    background: var(--white);
    font-size: 0.95rem;
    color: var(--chocolate);
    transition: border-color var(--transition-base)
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--terracotta);
    box-shadow: 0 0 0 3px rgba(226, 114, 91, 0.1)
}

.form-group textarea {
    resize: vertical;
    min-height: 120px
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #B0A89B
}

/* BLOG */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg)
}

.blog-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: all var(--transition-slow)
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg)
}

.blog-card-img {
    height: 220px;
    overflow: hidden
}

.blog-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow)
}

.blog-card:hover .blog-card-img img {
    transform: scale(1.06)
}

.blog-card-body {
    padding: var(--space-md)
}

.blog-card-meta {
    font-size: 0.8rem;
    color: var(--sage);
    font-weight: 500;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px
}

.blog-card-body h3 {
    font-size: 1.2rem;
    margin-bottom: var(--space-xs);
    line-height: 1.4
}

.blog-card-body h3 a:hover {
    color: var(--terracotta)
}

.blog-card-body p {
    font-size: 0.9rem;
    margin-bottom: var(--space-sm);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden
}

.blog-card .read-more {
    color: var(--terracotta);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem
}

.blog-card .read-more:hover {
    gap: 0.6rem
}

.blog-article {
    max-width: 780px;
    margin: 0 auto;
    padding: var(--space-xl) 1.5rem
}

.blog-article h2 {
    margin-top: var(--space-lg);
    margin-bottom: var(--space-sm);
    font-size: 1.6rem
}

.blog-article h3 {
    margin-top: var(--space-md);
    margin-bottom: var(--space-xs)
}

.blog-article p {
    margin-bottom: var(--space-sm);
    font-size: 1.05rem;
    line-height: 1.9
}

.blog-article ul,
.blog-article ol {
    padding-left: 1.5rem;
    margin-bottom: var(--space-sm);
    list-style: disc
}

.blog-article li {
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--chocolate-light)
}

.blog-article blockquote {
    border-left: 4px solid var(--terracotta);
    padding: var(--space-md);
    margin: var(--space-md) 0;
    background: var(--cream);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-family: var(--font-script);
    font-size: 1.3rem;
    color: var(--chocolate)
}

/* CONTACT */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl)
}

.contact-info-block {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    margin-bottom: var(--space-md)
}

.contact-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--cream);
    border-radius: var(--radius-md);
    font-size: 1.3rem;
    color: var(--terracotta)
}

.contact-info-block h4 {
    font-size: 1rem;
    margin-bottom: 0.2rem
}

.contact-info-block p {
    font-size: 0.95rem
}

.contact-form {
    background: var(--white);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card)
}

/* VALUES GRID */
.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
    margin-top: var(--space-lg)
}

.value-card {
    text-align: center;
    padding: var(--space-lg);
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base)
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md)
}

.value-card .value-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-sm)
}

.value-card h4 {
    margin-bottom: var(--space-xs);
    font-size: 1.1rem
}

.value-card p {
    font-size: 0.9rem
}

/* FOOTER */
.footer {
    background: var(--chocolate);
    color: rgba(245, 245, 220, 0.7);
    padding: var(--space-xl) 0 var(--space-md)
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl)
}

.footer h4 {
    color: var(--cream);
    font-size: 1.1rem;
    margin-bottom: var(--space-sm)
}

.footer-brand .logo-text {
    color: var(--cream);
    font-size: 1.5rem;
    margin-bottom: var(--space-xs)
}

.footer-brand .logo-text span {
    color: var(--terracotta)
}

.footer-brand p {
    color: rgba(245, 245, 220, 0.6);
    font-size: 0.9rem;
    line-height: 1.7
}

.footer-links a {
    display: block;
    color: rgba(245, 245, 220, 0.6);
    font-size: 0.9rem;
    padding: 0.3rem 0;
    transition: color var(--transition-fast)
}

.footer-links a:hover {
    color: var(--terracotta)
}

.footer-contact p {
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: rgba(245, 245, 220, 0.6)
}

.footer-contact .icon {
    color: var(--terracotta)
}

.footer-bottom {
    border-top: 1px solid rgba(245, 245, 220, 0.1);
    padding-top: var(--space-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-sm)
}

.footer-bottom p {
    font-size: 0.85rem;
    color: rgba(245, 245, 220, 0.4)
}

.footer-social {
    display: flex;
    gap: 0.8rem
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(245, 245, 220, 0.08);
    border-radius: 50%;
    color: rgba(245, 245, 220, 0.6);
    font-size: 1.1rem;
    transition: all var(--transition-base)
}

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

/* WHATSAPP FLOAT */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 999;
    animation: pulse-wa 2s infinite
}

.whatsapp-float a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: #25D366;
    color: var(--white);
    padding: 0.85rem 1.4rem;
    border-radius: var(--radius-xl);
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all var(--transition-base)
}

.whatsapp-float a:hover {
    background: #1EBE5C;
    transform: translateY(-3px);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5)
}

.whatsapp-float .wa-icon {
    font-size: 1.4rem
}

@keyframes pulse-wa {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4);
        border-radius: var(--radius-xl)
    }

    50% {
        box-shadow: 0 0 0 12px rgba(37, 211, 102, 0);
        border-radius: var(--radius-xl)
    }
}

/* ANIMATIONS */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0)
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.7s ease, transform 0.7s ease
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0)
}

.fade-in-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.7s ease, transform 0.7s ease
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0)
}

.scale-in {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s ease, transform 0.6s ease
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1)
}

/* FORM ALERTS */
.form-alert {
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
    font-size: 0.95rem;
    display: none
}

.form-alert.success {
    background: rgba(156, 175, 136, 0.15);
    border: 1px solid var(--sage);
    color: var(--sage-dark);
    display: block
}

.form-alert.error {
    background: rgba(226, 114, 91, 0.1);
    border: 1px solid var(--terracotta-light);
    color: var(--terracotta-dark);
    display: block
}

/* RESPONSIVE */
@media(max-width:1024px) {

    .grid-3,
    .blog-grid {
        grid-template-columns: repeat(2, 1fr)
    }

    .values-grid,
    .cake-categories {
        grid-template-columns: repeat(2, 1fr)
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-md)
    }

    .testimonial-card {
        flex: 0 0 calc(50% - 1.25rem)
    }
}

@media(max-width:768px) {
    :root {
        --header-height: 70px
    }

    .hamburger {
        display: flex
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 340px;
        height: 100vh;
        background: var(--cream-light);
        flex-direction: column;
        align-items: flex-start;
        padding: calc(var(--header-height) + 2rem) 2rem 2rem;
        box-shadow: var(--shadow-lg);
        transition: right var(--transition-base);
        gap: 0.2rem
    }

    .nav-links.open {
        right: 0
    }

    .nav-links a {
        font-size: 1.05rem;
        padding: 0.8rem 0;
        width: 100%
    }

    .mobile-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.4);
        z-index: 999;
        opacity: 0;
        pointer-events: none;
        transition: opacity var(--transition-base)
    }

    .mobile-overlay.active {
        opacity: 1;
        pointer-events: all
    }

    .hero {
        min-height: 500px;
        max-height: 700px
    }

    .hero-content h1 {
        font-size: 2rem
    }

    .grid-2,
    .grid-3,
    .blog-grid,
    .location-grid,
    .contact-grid,
    .values-grid,
    .specialty-block,
    .cake-categories {
        grid-template-columns: 1fr
    }

    .specialty-block.reverse {
        direction: ltr
    }

    .story-content {
        padding-left: 0;
        padding-top: var(--space-md)
    }

    .location-info {
        padding-right: 0
    }

    .form-grid {
        grid-template-columns: 1fr
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center
    }

    .footer-bottom {
        justify-content: center;
        text-align: center
    }

    .footer-social {
        justify-content: center
    }

    .section {
        padding: var(--space-xl) 0
    }

    .whatsapp-float a span {
        display: none
    }

    .whatsapp-float a {
        padding: 0.9rem;
        border-radius: 50%
    }

    .testimonial-card {
        flex: 0 0 85%;
        min-width: 280px
    }

    .footer-contact p {
        justify-content: center
    }
}

@media(max-width:480px) {
    .hero-content h1 {
        font-size: 1.7rem
    }

    .section-header h2 {
        font-size: 1.6rem
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center
    }

    .btn {
        width: 100%;
        justify-content: center
    }

    .cake-categories {
        gap: var(--space-sm)
    }
}