/* 
 * Patitags Custom Stylesheet
 * Marca: Patitags - Rastreo Pasivo de Mascotas (NFC / QR)
 * Colores: Naranja Vibrante (Acción/Emoción) y Azul Tecnológico (Confianza/Conectividad)
 */

:root {
    --brand-orange: #FF5722;
    --brand-orange-hover: #F4511E;
    --brand-blue: #0A2540;
    --brand-blue-hover: #071a2e;
    --tech-blue: #03A9F4;
    --tech-blue-light: rgba(3, 169, 244, 0.08);
    --bg-light: #F8F9FA;
    --bg-white: #FFFFFF;
    --text-dark: #334155;
    --text-muted: #64748B;
    --text-light-muted: #94A3B8;
}

/* Tipografía y Estructura Base */
body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-white);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--brand-blue);
}

.font-outfit {
    font-family: 'Outfit', sans-serif;
}

/* Colores de marca como clases de utilidad */
.text-brand-orange {
    color: var(--brand-orange) !important;
}
.text-brand-blue {
    color: var(--brand-blue) !important;
}
.text-tech-blue {
    color: var(--tech-blue) !important;
}
.bg-brand-orange {
    background-color: var(--brand-orange) !important;
}
.bg-brand-blue {
    background-color: var(--brand-blue) !important;
}
.bg-dark-blue {
    background-color: var(--brand-blue) !important;
}
.bg-light-gray {
    background-color: var(--bg-light) !important;
}
.text-light-muted {
    color: var(--text-light-muted) !important;
}

/* Estilos de Botones Personalizados */
.btn-brand-orange {
    background-color: var(--brand-orange);
    color: #fff;
    border: 2px solid var(--brand-orange);
    transition: all 0.3s ease;
}

.btn-brand-orange:hover,
.btn-brand-orange:focus {
    background-color: var(--brand-orange-hover);
    border-color: var(--brand-orange-hover);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 90, 31, 0.4);
}

.btn-brand-blue {
    background-color: var(--brand-blue);
    color: #fff;
    border: 2px solid var(--brand-blue);
    transition: all 0.3s ease;
}

.btn-brand-blue:hover,
.btn-brand-blue:focus {
    background-color: var(--brand-blue-hover);
    border-color: var(--brand-blue-hover);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(10, 37, 64, 0.3);
}

.btn-outline-brand-blue {
    color: var(--brand-blue);
    background-color: transparent;
    border: 2px solid var(--brand-blue);
    transition: all 0.3s ease;
}

.btn-outline-brand-blue:hover,
.btn-outline-brand-blue:focus {
    background-color: var(--brand-blue);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(10, 37, 64, 0.15);
}

/* Efectos de Hover Interactivos y Animaciones */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08) !important;
}

/* Navbar Customizations */
.navbar {
    transition: all 0.3s ease;
}

.brand-logo {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background-color: #FFFFFF;
    padding: 3px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    object-fit: contain;
}

.brand-name {
    font-weight: 800;
    font-size: 1.6rem;
    color: var(--brand-orange) !important;
    letter-spacing: -0.5px;
}

.nav-link {
    position: relative;
    transition: color 0.2s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 2px;
    left: 8px;
    background-color: var(--brand-orange);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: calc(100% - 16px);
}

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

/* Hero Section Styles */
.hero-section {
    padding: 6rem 0;
    background: radial-gradient(circle at 10% 20%, rgba(0, 102, 255, 0.03) 0%, rgba(255, 90, 31, 0.03) 90%);
}

.hero-tag {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    background-color: rgba(255, 90, 31, 0.1);
    color: var(--brand-orange);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Comparativa de Placas (Pain points vs Solution) */
.comparative-card {
    border-radius: 16px;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

.card-pain {
    border-top: 5px solid #E53E3E;
    background-color: #FFF5F5;
}

.card-gain {
    border-top: 5px solid var(--tech-blue);
    background-color: #EBF8FF;
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 102, 255, 0.1);
}

@media (max-width: 991px) {
    .card-gain {
        transform: none;
        margin-top: 1.5rem;
    }
}

/* Pasos "Cómo funciona" */
.step-number {
    width: 50px;
    height: 50px;
    background-color: var(--brand-orange);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem auto;
    box-shadow: 0 4px 10px rgba(255, 90, 31, 0.3);
}

.step-card {
    position: relative;
    border: none;
    background: transparent;
}

.step-card::after {
    content: '';
    position: absolute;
    top: 25px;
    left: 70%;
    width: 60%;
    height: 2px;
    border-top: 2px dashed rgba(10, 37, 64, 0.15);
    z-index: 1;
}

@media (max-width: 991px) {
    .step-card::after {
        display: none;
    }
}

.step-card-last::after {
    display: none;
}

/* Tarjetas de Producto */
.product-card {
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 20px;
    overflow: hidden;
    background-color: var(--bg-white);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card.popular {
    border: 2px solid var(--brand-orange);
    transform: scale(1.03);
    box-shadow: 0 15px 35px rgba(255, 90, 31, 0.1);
}

@media (max-width: 991px) {
    .product-card.popular {
        transform: none;
        margin-top: 1.5rem;
    }
}

.badge-popular {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--brand-orange);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
    text-transform: uppercase;
}

.product-img-wrapper {
    background-color: var(--bg-light);
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Iconos de NFC y QR animados */
.nfc-scan-mockup {
    position: relative;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background-color: var(--bg-white);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.nfc-waves {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--tech-blue);
    animation: nfcPulse 2.5s infinite ease-out;
    opacity: 0;
}

.nfc-waves:nth-child(2) {
    animation-delay: 0.8s;
}

.nfc-waves:nth-child(3) {
    animation-delay: 1.6s;
}

@keyframes nfcPulse {
    0% {
        transform: scale(0.9);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

/* Acordeón de FAQs Personalizado */
.accordion-item {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px !important;
    overflow: hidden;
    margin-bottom: 1rem;
    background-color: var(--bg-white);
    transition: all 0.2s ease;
}

.accordion-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.accordion-button {
    font-weight: 600;
    color: var(--brand-blue);
    padding: 1.25rem 1.5rem;
}

.accordion-button:not(.collapsed) {
    background-color: var(--tech-blue-light);
    color: var(--tech-blue);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
}

/* Estilos Footer */
.footer-links a {
    transition: all 0.2s ease;
}

.footer-links a:hover {
    color: var(--brand-orange) !important;
    padding-left: 5px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: var(--brand-orange);
    transform: translateY(-3px);
}

.input-group .rounded-pill-start {
    border-top-left-radius: 50px !important;
    border-bottom-left-radius: 50px !important;
}

.input-group .rounded-pill-end {
    border-top-right-radius: 50px !important;
    border-bottom-right-radius: 50px !important;
}

/* Formulario de Contacto Premium */
.contact-form-card {
    border: none;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.05);
}

.form-control:focus, .form-select:focus {
    border-color: var(--tech-blue);
    box-shadow: 0 0 0 0.25rem rgba(0, 102, 255, 0.15);
}

/* ==========================================================================
   INTERACTIVE VIDEO STORYBOARD PLAYER (STORYTELLING PATITAGS)
   ========================================================================== */
.story-video-player {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    background-color: #0c1724;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(10, 37, 64, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 2;
}

/* Diapositivas (Slides) */
.story-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.story-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
}

.story-slide.active {
    opacity: 1;
    visibility: visible;
}

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

/* Overlay de Play Inicial (Simulador de Video) */
.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 37, 64, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    transition: all 0.4s ease;
}

.play-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.play-pulse-btn {
    width: 85px;
    height: 85px;
    border-radius: 50%;
    background-color: var(--brand-orange);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    box-shadow: 0 0 0 0 rgba(255, 90, 31, 0.7);
    animation: playRipple 2s infinite;
    transition: transform 0.3s ease;
}

.play-overlay:hover .play-pulse-btn {
    transform: scale(1.1);
    background-color: var(--brand-orange-hover);
}

.play-text {
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: 15px;
    font-family: 'Outfit', sans-serif;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    letter-spacing: 0.5px;
}

@keyframes playRipple {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 90, 31, 0.7);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(255, 90, 31, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 90, 31, 0);
    }
}

/* Caja de Subtítulos / Narración */
.story-caption-box {
    position: absolute;
    bottom: 85px;
    left: 20px;
    right: 20px;
    background: rgba(10, 37, 64, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 14px 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.story-caption-box h5 {
    color: var(--brand-orange);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
    font-weight: 800;
}

.story-caption-box p {
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 0;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.95);
}

/* Barra de Controles Inferior (Aspecto de YouTube / Premium Player) */
.player-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.5) 70%, rgba(0, 0, 0, 0) 100%);
    padding: 15px 20px 20px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 10;
}

.player-btn {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.25rem;
    padding: 0;
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.player-btn:hover {
    color: var(--brand-orange);
    transform: scale(1.1);
}

/* Volumen y Sonido Simulado */
.volume-control {
    display: flex;
    align-items: center;
    gap: 8px;
}

.volume-slider {
    width: 0;
    height: 4px;
    background: rgba(255,255,255,0.3);
    border-radius: 2px;
    position: relative;
    cursor: pointer;
    transition: width 0.3s ease;
}

.volume-control:hover .volume-slider {
    width: 60px;
}

.volume-progress {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: white;
    width: 70%;
    border-radius: 2px;
}

/* Timeline Segmentada interactiva */
.timeline-container {
    flex-grow: 1;
    display: flex;
    gap: 5px;
    height: 12px;
    cursor: pointer;
    align-items: center;
}

.timeline-segment {
    flex: 1;
    height: 5px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    transition: height 0.2s ease, background 0.2s ease;
}

.timeline-container:hover .timeline-segment {
    height: 7px;
}

.timeline-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: var(--brand-orange);
    width: 0%;
    transition: width 0.1s linear;
}

/* Segmento completado */
.timeline-segment.completed .timeline-progress {
    width: 100% !important;
}

/* Tiempo del Video */
.time-display {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85rem;
    font-family: 'Outfit', sans-serif;
    min-width: 75px;
    text-align: center;
}

/* Tarjeta de notificación simulada flotante */
.floating-notif-card {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 260px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-left: 5px solid var(--brand-orange);
    z-index: 15;
    animation: slideInNotif 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.floating-notif-card.hidden {
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;
    transition: all 0.3s ease;
}

@keyframes slideInNotif {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Ajustes Responsive */
@media (max-width: 767px) {
    .story-video-player {
        aspect-ratio: 4 / 3;
    }
    .story-caption-box {
        bottom: 75px;
        left: 10px;
        right: 10px;
        padding: 10px 14px;
    }
    .story-caption-box h5 {
        font-size: 0.85rem;
    }
    .story-caption-box p {
        font-size: 0.78rem;
    }
    .player-controls {
        padding: 10px 15px;
        gap: 10px;
    }
    .time-display {
        font-size: 0.75rem;
        min-width: 60px;
    }
}

/* ==========================================================================
   ESTILOS ADICIONALES PARA LA RESTRUCTURACIÓN COMERCIAL
   ========================================================================== */

/* Colores de Fondo Suaves de la Marca */
.bg-brand-orange-light {
    background-color: rgba(255, 90, 31, 0.08) !important;
}
.bg-brand-blue-light {
    background-color: rgba(10, 37, 64, 0.05) !important;
}
.bg-success-light {
    background-color: rgba(40, 167, 69, 0.1) !important;
}
.bg-success-light-btn {
    background-color: rgba(40, 167, 69, 0.1) !important;
    color: #28a745 !important;
}

/* Difuminado Decorativo de Fondo */
.filter-blur {
    filter: blur(60px);
    pointer-events: none;
}

/* Barra de Confianza (Trust Bar) */
.trust-bar {
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}
.trust-bar h6 {
    font-size: 0.95rem;
}
.trust-bar span {
    font-size: 0.8rem;
    color: #a0aec0;
}

/* Mockup de Teléfono Celular (Smartphone CSS) */
.phone-mockup {
    box-shadow: 0 30px 70px rgba(10, 37, 64, 0.25);
    background-color: #1a202c;
    border-radius: 40px !important;
    border: 12px solid #2d3748 !important;
    transition: transform 0.5s ease;
}
.phone-mockup:hover {
    transform: translateY(-5px);
}

/* Animaciones y Transiciones */
.animate-fade-in {
    animation: fadeIn 0.4s ease-out forwards;
}

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

.cursor-pointer {
    cursor: pointer;
}

/* Switch de Privacidad */
.form-check-input:checked {
    background-color: var(--brand-orange) !important;
    border-color: var(--brand-orange) !important;
}
.form-check-input {
    cursor: pointer;
    box-shadow: none !important;
}

/* Estilo del Simulador de Privacidad */
#label-modo-casa.active-mode {
    color: var(--brand-blue) !important;
    text-shadow: 0 0 1px rgba(10, 37, 64, 0.5);
}
#label-modo-alerta.active-mode {
    color: #E53E3E !important;
    text-shadow: 0 0 1px rgba(229, 62, 62, 0.5);
}

/* Formulario de Búsqueda Rápida */
#form-busqueda-id .form-control:focus {
    box-shadow: none;
}
#form-busqueda-id .input-group {
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
#form-busqueda-id .input-group:focus-within {
    border-color: var(--brand-orange) !important;
    box-shadow: 0 0 0 0.25rem rgba(255, 90, 31, 0.2) !important;
}

/* Alertas de Éxito / Error adaptadas */
.alert-success-light {
    background-color: rgba(40, 167, 69, 0.08);
    color: #155724;
    border: 1px solid rgba(40, 167, 69, 0.2);
}
.alert-danger-light {
    background-color: rgba(220, 53, 69, 0.08);
    color: #721c24;
    border: 1px solid rgba(220, 53, 69, 0.2);
}


