/* CSS Personalizado - Landing Page Mama Chicken */

:root {
    --brand-primary: #FFD036;    /* Amarillo Huevo */
    --brand-secondary: #40B9B9;  /* Turquesa */
    --brand-dark-bg: #40B9B9;    /* Fondo Turquesa de la marca */
    --brand-card-bg: rgba(255, 255, 255, 0.1); /* Glassmorphism claro para tarjetas */
    --brand-charcoal: #706F6F;   /* Gris Carbón */
    --brand-white: #ffffff;
    --brand-text-muted: rgba(255, 255, 255, 0.75);
    --font-outfit: 'Outfit', sans-serif;
}

/* Scrollbar Personalizado Ultra-Premium */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #257373;
}
::-webkit-scrollbar-thumb {
    background: var(--brand-primary);
    border-radius: 4px;
    border: 2px solid #257373;
}
::-webkit-scrollbar-thumb:hover {
    background: #ffffff;
}

/* Barra de progreso de lectura */
.scroll-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    z-index: 9999;
    pointer-events: none;
    background: rgba(0, 0, 0, 0.1);
}
.scroll-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
    box-shadow: 0 0 10px var(--brand-primary), 0 0 5px var(--brand-secondary);
    transition: width 0.1s ease-out;
}

body {
    background: linear-gradient(185deg, #40B9B9 0%, #257373 100%);
    color: var(--brand-white);
    font-family: var(--font-outfit);
    overflow-x: hidden;
    scroll-behavior: smooth;
    min-height: 100vh;
}

/* Tipografías y Títulos */
h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
}

.text-gradient {
    color: var(--brand-primary) !important;
}

/* Navbar */
.navbar-custom {
    background-color: rgba(64, 185, 185, 0.9);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
}

.nav-link {
    color: var(--brand-white) !important;
    font-weight: 600;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background-color: var(--brand-primary);
    border-radius: 2px;
    transition: width 0.3s cubic-bezier(0.25, 1, 0.5, 1), left 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 70%;
    left: 15%;
}

.nav-link:hover {
    color: var(--brand-primary) !important;
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 160px 0 100px 0;
    overflow: hidden;
}

/* Background Blobs */
.blob-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.25, 1);
}

.bg-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.15;
}

.blob-1 {
    width: 300px;
    height: 300px;
    background-color: var(--brand-primary);
    top: 10%;
    right: -100px;
}

.blob-2 {
    width: 250px;
    height: 250px;
    background-color: #ffffff;
    bottom: 20%;
    left: -100px;
}

/* Botones */
.btn-brand-primary {
    background-color: var(--brand-primary);
    color: #121212;
    font-weight: 700;
    border-radius: 30px;
    padding: 12px 30px;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 208, 54, 0.3);
}

.btn-brand-primary:hover {
    background-color: #ffffff;
    color: var(--brand-secondary);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.4);
}

.btn-brand-secondary {
    background-color: transparent;
    color: var(--brand-white);
    font-weight: 700;
    border-radius: 30px;
    padding: 12px 30px;
    border: 2px solid var(--brand-white);
    transition: all 0.3s ease;
}

.btn-brand-secondary:hover {
    background-color: var(--brand-white);
    color: var(--brand-secondary);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
}

/* Tarjetas con Bordes de Degradado Luminoso */
.card-premium {
    position: relative;
    background-color: var(--brand-card-bg);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 30px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
    backdrop-filter: blur(10px);
    z-index: 1;
}

.card-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    padding: 1.5px;
    background: linear-gradient(135deg, var(--brand-primary) 0%, transparent 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
    pointer-events: none;
}

.card-premium:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 208, 54, 0.4) !important;
    box-shadow: 0 15px 35px rgba(64, 185, 185, 0.25), 0 5px 15px rgba(255, 208, 54, 0.15);
    background-color: rgba(255, 255, 255, 0.15);
}

.card-premium:hover::before {
    opacity: 1;
}

.card-icon-container {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    background-color: rgba(255, 208, 54, 0.15);
    color: var(--brand-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}


.card-premium:hover .card-icon-container {
    background-color: var(--brand-primary);
    color: #121212;
}

/* List Items */
.maps-link {
    color: var(--brand-primary);
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.maps-link i {
    transition: transform 0.3s ease;
}

.maps-link:hover {
    color: #ffffff;
}

.maps-link:hover i {
    transform: translateX(5px);
}

/* Contact Badges/Links */
.contact-item-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--brand-white);
    margin-bottom: 15px;
}

.contact-item-box:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--brand-primary);
    transform: translateX(5px);
    color: var(--brand-white);
}

.contact-icon {
    font-size: 32px;
    margin-right: 20px;
}

.contact-icon.whatsapp {
    color: #25D366;
}

.contact-icon.email,
.contact-icon.form {
    color: var(--brand-primary);
}

/* Animaciones */
.animated-fadeInUp {
    animation: fadeInUp 0.8s cubic-bezier(0.25, 1, 0.5, 1) both;
}

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

/* Animación de Flotación para el Logo del Hero */
.hero-logo-img {
    animation: heroFloat 6s ease-in-out infinite;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1), filter 0.5s ease;
    transform-style: preserve-3d;
    perspective: 1000px;
}
.hero-logo-img.tilting {
    animation-play-state: paused;
    transition: transform 0.1s ease-out;
}

@keyframes heroFloat {
    0%, 100% {
        transform: translateY(0);
        filter: drop-shadow(0 10px 25px rgba(255, 208, 54, 0.25));
    }
    50% {
        transform: translateY(-12px);
        filter: drop-shadow(0 20px 35px rgba(255, 208, 54, 0.45));
    }
}

/* Animación de Pulso / Brillo para CTAs destacados */
.btn-pulse-glow {
    animation: ctaPulse 3.5s infinite ease-in-out;
}
.btn-pulse-glow:hover {
    animation: none; /* Pausar pulso al hacer hover para no interferir con la escala nativa */
}

@keyframes ctaPulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(255, 208, 54, 0.3);
    }
    50% {
        box-shadow: 0 6px 25px rgba(255, 208, 54, 0.7);
    }
}

/* Animación de Deriva para Blobs de Fondo */
.blob-1 {
    animation: driftBlobs1 25s infinite alternate ease-in-out;
}
.blob-2 {
    animation: driftBlobs2 30s infinite alternate ease-in-out;
}

@keyframes driftBlobs1 {
    0% { transform: translate(0, 0) scale(1) rotate(0deg); }
    50% { transform: translate(60px, -40px) scale(1.15) rotate(90deg); }
    100% { transform: translate(-30px, 30px) scale(0.9) rotate(180deg); }
}

@keyframes driftBlobs2 {
    0% { transform: translate(0, 0) scale(1) rotate(0deg); }
    50% { transform: translate(-50px, 50px) scale(1.2) rotate(-90deg); }
    100% { transform: translate(40px, -30px) scale(0.85) rotate(-180deg); }
}

/* Efectos Interactivos Hover de Iconos en Tarjetas */
.card-icon-container i {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: inline-block;
}

.card-premium:hover .card-icon-container i {
    transform: scale(1.2) rotate(10deg);
}

.contact-item-box .contact-icon i {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: inline-block;
}

.contact-item-box:hover .contact-icon i {
    transform: scale(1.2) rotate(-10deg);
}

/* Clases de Retraso de Animación para entrada en Cascada */
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }
.delay-6 { animation-delay: 0.6s; }

/* Botón Volver Arriba (Back to Top) */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: rgba(64, 185, 185, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    color: var(--brand-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--brand-primary);
    color: #121212;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(255, 208, 54, 0.45);
}

/* Mapas interactivos en sucursales */
.map-container {
    border-radius: 12px;
    overflow: hidden;
    height: 150px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    margin-top: 15px;
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
    background-color: rgba(0, 0, 0, 0.2);
}

.card-premium:hover .map-container {
    border-color: rgba(255, 208, 54, 0.4);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

.map-container iframe {
    filter: grayscale(25%) contrast(105%);
    transition: filter 0.4s ease;
}

.card-premium:hover .map-container iframe {
    filter: grayscale(0%) contrast(100%);
}

/* Responsividad para Menú Móvil Hamburguesa */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: rgba(42, 125, 125, 0.98); /* Turquesa oscuro sólido */
        backdrop-filter: blur(15px);
        border-radius: 20px;
        padding: 25px;
        margin-top: 15px;
        border: 1px solid rgba(255, 255, 255, 0.15);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    }
    
    .navbar-nav {
        text-align: center;
    }
    
    .navbar-nav .nav-link {
        padding: 12px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .navbar-nav .nav-item:last-child .nav-link {
        border-bottom: none;
    }
}

/* ============================================================ */
/* Animación de pulso y balanceo para incitar al pedido */
/* ============================================================ */
@keyframes pulseWiggle {
  0% {
    transform: scale(1) rotate(0deg);
    box-shadow: 0 4px 15px rgba(255, 208, 54, 0.4);
  }
  15% {
    transform: scale(1.06) rotate(-2deg);
    box-shadow: 0 8px 25px rgba(255, 208, 54, 0.7);
  }
  30% {
    transform: scale(1.06) rotate(2deg);
    box-shadow: 0 8px 25px rgba(255, 208, 54, 0.7);
  }
  45% {
    transform: scale(1.06) rotate(-2deg);
    box-shadow: 0 8px 25px rgba(255, 208, 54, 0.7);
  }
  60% {
    transform: scale(1) rotate(0deg);
    box-shadow: 0 4px 15px rgba(255, 208, 54, 0.4);
  }
  100% {
    transform: scale(1) rotate(0deg);
    box-shadow: 0 4px 15px rgba(255, 208, 54, 0.4);
  }
}

.btn-pulse-glow {
  animation: pulseWiggle 3.5s infinite ease-in-out;
}

/* Estilos de la Modal de Descarga Premium */
.modal-download-custom .modal-content {
  background: linear-gradient(135deg, rgba(37, 115, 115, 0.95) 0%, rgba(64, 185, 185, 0.95) 100%);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  color: var(--brand-white);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.modal-download-custom .modal-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px 24px 12px 24px;
}

.modal-download-custom .btn-close {
  filter: invert(1) grayscale(1) brightness(2);
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.modal-download-custom .btn-close:hover {
  opacity: 1;
}

.modal-download-custom .modal-body {
  padding: 24px;
}

.download-store-btn-custom {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 16px 20px;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
  color: var(--brand-white);
}

.download-store-btn-custom:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 208, 54, 0.5);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
  color: var(--brand-white);
}

.store-icon-square {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  flex-shrink: 0;
}

.store-btn-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.store-btn-subtitle {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.7;
}

.store-btn-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
}

.store-warning-text {
  font-size: 0.85rem;
  color: #ffeb3b; /* Amarillo claro llamativo pero premium */
  background-color: rgba(255, 235, 59, 0.1);
  border: 1px dashed rgba(255, 235, 59, 0.3);
  border-radius: 10px;
  padding: 8px 12px;
  margin-top: 12px;
  text-align: left;
}

/* Redes Sociales Footer */
.social-link-icon {
    width: 50px;
    height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--brand-white) !important;
    font-size: 1.5rem;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.social-link-icon:hover {
    background-color: var(--brand-primary);
    color: #121212 !important;
    border-color: var(--brand-primary);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(255, 208, 54, 0.4);
}

/* Tarjetas de Producto */
.card-product {
    position: relative;
    background-color: var(--brand-card-bg);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    padding: 24px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(15px);
    overflow: hidden;
}

.card-product:hover {
    transform: translateY(-10px);
    border-color: var(--brand-primary) !important;
    box-shadow: 0 20px 40px rgba(255, 208, 54, 0.15), 0 5px 15px rgba(64, 185, 185, 0.15);
}

.product-img-wrapper {
    width: 100%;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    position: relative;
}

.product-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.3s ease;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.25));
}

.card-product:hover .product-img {
    transform: scale(1.12) rotate(3deg);
    filter: drop-shadow(0 15px 25px rgba(255, 208, 54, 0.3));
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--brand-primary);
    color: #121212;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    z-index: 5;
}

.product-badge.hot {
    background: linear-gradient(135deg, #ff5722 0%, #f44336 100%);
    color: #fff;
}

.product-badge.premium {
    background: linear-gradient(135deg, #00bcd4 0%, #009688 100%);
    color: #fff;
}

.product-title {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--brand-white);
}

.product-description {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 0;
}

/* Botón de Pedir Ahora Ultra-Llamativo */
.btn-pulse-glow {
    background: linear-gradient(135deg, var(--brand-primary) 0%, #ffb800 100%) !important;
    color: #121212 !important;
    font-weight: 800 !important;
    letter-spacing: 0.5px;
    border: 2px solid #ffffff !important;
    position: relative;
    overflow: hidden;
    z-index: 1;
    animation: pulse-brand 2s infinite;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

.btn-pulse-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.4) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-25deg);
    animation: shine-sweep 3s infinite;
    z-index: -1;
}

.btn-pulse-glow:hover {
    background: #ffffff !important;
    color: #257373 !important;
    transform: translateY(-4px) scale(1.06) !important;
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.5) !important;
    animation: none;
}

@keyframes pulse-brand {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 208, 54, 0.8), 0 0 0 0 rgba(64, 185, 185, 0.4);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(255, 208, 54, 0), 0 0 0 25px rgba(64, 185, 185, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 208, 54, 0), 0 0 0 0 rgba(64, 185, 185, 0);
    }
}

@keyframes shine-sweep {
    0% {
        left: -100%;
    }
    20% {
        left: 200%;
    }
    100% {
        left: 200%;
    }
}
