/* styles.css */
/* Estilos principales para Creative Code HN */

body {
    font-family: 'Inter', sans-serif;
    background-color: #0a0f1f; 
    color: #e0e0e0; 
    scroll-behavior: smooth; 
    line-height: 1.6;
}

/* Header */
header {
    background-color: rgba(10, 15, 31, 0.85) !important; 
    backdrop-filter: blur(10px); 
}

.logo-img {
    max-height: 40px; 
    width: auto;
}

/* Hero Section */
.hero-bg {
    background: linear-gradient(rgba(10, 15, 31, 0.88), rgba(10, 15, 31, 0.98)), url('https://creativecodepos.com/img/slide1.png') no-repeat center center;
    background-size: cover;
    /* min-height: 100vh; Ya no es necesario si el contenido define la altura */
}

.hero-slideshow-text {
    display: none; 
    animation: fadeInHeroText 1s ease-in-out;
}
.hero-slideshow-text.active {
    display: block; 
}
@keyframes fadeInHeroText {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Cards */
.card {
    background-color: #1e293b; 
    border: 1px solid #3b82f6; 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex; 
    flex-direction: column; 
    border-radius: 0.75rem; 
}
.card:hover {
    transform: translateY(-8px); 
    box-shadow: 0 12px 24px rgba(59, 130, 246, 0.35); 
}
.card-content {
    flex-grow: 1; 
}
.card img.portfolio-image {
    height: 220px; 
    object-fit: cover; 
    border-top-left-radius: 0.75rem; 
    border-top-right-radius: 0.75rem;
}
.testimonial-card {
    background-color: #162033; 
    border-left: 4px solid #3b82f6;
}
.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #3b82f6;
}

/* Buttons */
.btn-primary {
    background-color: #3b82f6; 
    color: white;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: inline-block; 
    padding: 0.75rem 1.5rem; 
    border-radius: 0.5rem; 
    font-weight: 600; 
}
.btn-primary:hover {
    background-color: #2563eb; 
    transform: scale(1.05);
}
.btn-secondary {
    background-color: transparent;
    border: 2px solid #3b82f6;
    color: #3b82f6;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
    display: inline-block; 
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
}
.btn-secondary:hover {
    background-color: #3b82f6;
    color: white;
    transform: scale(1.05);
}

/* Section Titles */
.section-title {
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    font-size: 2.2rem; 
    font-weight: 800;
    color: #ffffff; 
}
@media (min-width: 768px) {
    .section-title {
        font-size: 2.8rem;
    }
}
.section-title::after {
    content: '';
    position: absolute;
    left: 50%; 
    transform: translateX(-50%); 
    bottom: 0;
    width: 80px; 
    height: 4px;
    background-color: #3b82f6; 
    border-radius: 2px;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
}
.fade-in-up.start-animation { /* Clase para activar la animación con IntersectionObserver */
    animation: fadeInUp 0.8s ease-out forwards;
}
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Menu */
#mobile-menu {
    background-color: rgba(17, 24, 39, 0.97); 
    backdrop-filter: blur(8px);
}

/* WhatsApp Button */
.whatsapp-button {
    position: fixed;
    bottom: 25px; 
    right: 25px;
    background-color: #25D366;
    color: white;
    padding: 16px; 
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.25);
    z-index: 1000;
    transition: transform 0.3s ease, background-color 0.3s ease;
}
.whatsapp-button:hover {
    transform: scale(1.12); 
    background-color: #128C7E; 
}
.whatsapp-button i {
    font-size: 26px; 
    display: block; 
}

/* Footer */
footer {
    background-color: #060918;
    border-top: 1px solid #1e293b;
}
.footer-logo {
    max-height: 50px; 
    margin-bottom: 0.5rem;
}

/* Estilos para páginas de políticas y términos */
.legal-page-container {
    padding-top: 100px; 
    padding-bottom: 40px;
    min-height: calc(100vh - 150px); 
}
.legal-page-container h1 {
    font-size: 2.5rem;
    color: #3b82f6;
    margin-bottom: 1.5rem;
    text-align: center;
}
.legal-page-container h2 {
    font-size: 1.8rem;
    color: #ffffff;
    margin-top: 2rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #3b82f6;
    padding-bottom: 0.5rem;
}
.legal-page-container p, .legal-page-container ul li {
    color: #cccccc;
    margin-bottom: 1rem;
    line-height: 1.7;
}
.legal-page-container ul {
    list-style: disc;
    margin-left: 20px;
}
.legal-page-container a {
    color: #3b82f6;
    text-decoration: underline;
}
.legal-page-container a:hover {
    color: #2563eb;
}
.disclaimer-box {
    background-color: #1e293b;
    border-left: 5px solid #f59e0b; 
    padding: 1rem;
    margin: 2rem 0;
    border-radius: 0.5rem;
}
.disclaimer-box p {
    color: #f59e0b;
    margin-bottom: 0;
}

/* Visitor Counter (Placeholder Style) */
#visitor-counter-display {
    position: fixed;
    bottom: 10px;
    left: 10px;
    background-color: rgba(17, 24, 39, 0.8);
    color: #a0aec0; 
    padding: 5px 10px;
    font-size: 0.75rem; 
    border-radius: 0.375rem; 
    z-index: 999;
}
