/* style.css */

/* --- FUENTES Y ESTILOS BASE --- */
body {
    font-family: 'Poppins', sans-serif;
    background-color: #f8f9fa; /* bg-gray-50 */
}

.font-montserrat {
    font-family: 'Montserrat', sans-serif;
}

/* --- COLORES CORPORATIVOS --- */
.text-turedco-orange { color: #ff8000; }
.bg-turedco-orange { background-color: #ff8000; }
.hover\:bg-turedco-orange-dark:hover { background-color: #e67300; }
.cta-gradient { background: linear-gradient(90deg, #16A085, #2C3E50); }

/* --- HERO CON VIDEO DE FONDO --- */
#hero-video-container, .maintenance-hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    background-color: #000;
}

#hero-video-container {
    background-image: url('https://img.youtube.com/vi/Fghi23XShHg/maxresdefault.jpg');
    background-size: cover;
    background-position: center;
}

#hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 177.77vh; /* 100vh * 16/9 */
    min-width: 100vw;
    height: 56.25vw; /* 100vw * 9/16 */
    min-height: 100vh;
    transform: translateX(-50%) translateY(-50%) scale(1.5);
    pointer-events: none;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.maintenance-hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
}

/* --- BANNER DE PÁGINA DE SERVICIO --- */
.hero-banner {
    height: 60vh; /* Ocupa el 60% de la altura de la pantalla */
    max-height: 540px; /* Límite para pantallas muy altas (proporción 1920x1080 -> 1080/1920 = 0.5625 -> ~56vh) */
    min-height: 300px; /* Altura mínima para pantallas pequeñas */
}

@media (max-width: 768px) {
    .hero-banner {
        height: 50vh; /* Un poco menos de altura en móviles */
    }
}


/* --- COMPONENTES Y TARJETAS --- */
.enhanced-card {
    background-color: #ffffff;
    border-radius: 1rem;
    border: 1px solid #f0f2f5;
    box-shadow: 0 4px 15px -5px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease-in-out;
    position: relative;
    overflow: hidden;
}

.enhanced-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: #ff8000;
    transform: scaleX(0);
    transition: transform 0.3s ease-in-out;
    transform-origin: left;
}

.enhanced-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

.enhanced-card:hover::before {
    transform: scaleX(1);
}

.platform-card {
    display: block;
    padding: 1.5rem;
    background-color: white;
    border-radius: 0.75rem;
    border: 2px solid transparent;
    text-align: center;
    font-weight: 600;
    color: #4a5568; /* text-gray-700 */
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    transition: all 0.2s ease-in-out;
}

.platform-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    border-color: #ff8000; /* bg-turedco-orange */
}

/* --- NAVEGACIÓN --- */
#magic-line {
    position: absolute;
    bottom: 0;
    height: 3px;
    background-color: #ff8000; /* Color corporativo */
    border-radius: 9999px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    opacity: 0;
}

#mobile-menu, #cart-panel {
    transition: transform 0.3s ease-in-out;
}

/* --- PÁGINA 404 --- */
.stars {
    background: #0c0d2b url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><circle cx="10" cy="10" r="1" fill="white"/><circle cx="30" cy="70" r="1" fill="white"/><circle cx="80" cy="40" r="1.5" fill="white"/><circle cx="50" cy="20" r="1" fill="white"/><circle cx="90" cy="90" r="0.5" fill="white"/></svg>') repeat;
    animation: sparkle 5s linear infinite;
}

@keyframes sparkle {
    0% { background-position: 0 0; }
    100% { background-position: -100px 100px; }
}

.robot-float {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* --- ESTILOS PARA TEXTO LEGAL (.prose) --- */
.prose {
    color: #374151; /* text-gray-700 */
    line-height: 1.65;
}
.prose h2, .prose h3 {
    font-size: 1.5rem; /* text-2xl */
    font-weight: 700;
    margin-top: 2em;
    margin-bottom: 1em;
    color: #1f2937; /* text-gray-800 */
}
.prose p {
    margin-bottom: 1.25em;
}
.prose strong {
    font-weight: 600;
    color: #111827; /* text-gray-900 */
}
.prose ul {
    list-style-type: disc;
    padding-left: 1.5em;
    margin-bottom: 1.25em;
}
.prose ul li {
    margin-bottom: 0.5em;
}
.prose a {
    color: #ff8000; /* text-turedco-orange */
    text-decoration: underline;
}
.prose a:hover {
    color: #e67300;
}


/* --- UTILIDADES --- */
.aspect-video {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
}

.aspect-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* --- CARRUSEL DE PRODUCTOS --- */
.product-carousel {
    position: relative;
    overflow: hidden;
}

.carousel-image-container {
    overflow: hidden;
}

.carousel-images {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-images img {
    width: 100%;
    flex-shrink: 0;
}

.carousel-prev, .carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    z-index: 10;
    border-radius: 50%;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-prev {
    left: 0.5rem;
}

.carousel-next {
    right: 0.5rem;
}

.carousel-dots {
    position: absolute;
    bottom: 0.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
}

.carousel-dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0, 0, 0, 0.2);
    cursor: pointer;
    padding: 0;
}

.carousel-dot.active {
    background-color: white;
}

/* --- AJUSTE DE POSICIÓN DE RECAPTCHA --- */
.grecaptcha-badge { 
    width: 70px !important;
    overflow: hidden !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 0 5px rgba(0,0,0,0.4) !important;
    left: 15px !important;
    right: auto !important;
}

.grecaptcha-badge:hover {
    width: 256px !important;
}

/* --- SECCIÓN MANTENIMIENTO --- */
.alert-card {
    background-color: white;
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}
.alert-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
}

.service-checklist li {
    display: flex;
    align-items: flex-start;
}
.service-checklist i {
    margin-right: 0.75rem;
    margin-top: 0.25rem;
}

.testimonial-card {
    background-color: white;
    padding: 2rem;
    border-radius: 0.75rem;
    border-left: 5px solid #ff8000;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
}
