:root {
    --primary-color: #003366;
    --accent-color: #009933;
    --dark-gray: #555555;
    --light-gray: #f0f0f0;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f5f7;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles Modernizado */
header {
    background: linear-gradient(135deg, rgba(255,255,255,0.98) 0%, rgba(255,255,255,0.95) 100%);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 51, 102, 0.1);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    transition: all 0.3s ease;
}

.logo {
    width: 150px;
    height: auto;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 5px;
}

.nav-item {
    position: relative;
}

.nav-link {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
    padding: 12px 20px;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(45deg, var(--accent-color), #28a745);
    border-radius: 25px;
    transition: width 0.3s ease;
    z-index: -1;
}

.nav-link:hover::before {
    width: 100%;
}

.nav-link:hover {
    color: white;
    transform: translateY(-2px);
}

.cart-icon {
    position: relative;
    cursor: pointer;
    background: linear-gradient(45deg, var(--accent-color), #28a745);
    color: white;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 153, 51, 0.3);
}

.cart-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 153, 51, 0.4);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #ff4757;
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 11px;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(255, 71, 87, 0.3);
}

/* Menu toggle button modernizado */
.menu-toggle {
    display: none;
    background: linear-gradient(45deg, var(--primary-color), #004d7a);
    border: none;
    color: white;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 51, 102, 0.2);
}

.menu-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 51, 102, 0.3);
}

/* Mobile styles modernizado */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-menu {
        display: none;
        flex-direction: column;
        background: linear-gradient(135deg, var(--primary-color) 0%, #004d7a 100%);
        position: absolute;
        top: 70px;
        right: 20px;
        width: 280px;
        border-radius: 20px;
        padding: 20px 0;
        box-shadow: 0 10px 40px rgba(0, 51, 102, 0.3);
        z-index: 1000;
        border: 2px solid rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
        animation: slideDown 0.3s ease;
    }
    
    .nav-menu[data-visible="true"] {
        display: flex;
    }
    
    .nav-item {
        margin: 8px 20px;
        position: relative;
    }
    
    .nav-link {
        color: white;
        font-size: 1.1rem;
        padding: 15px 20px;
        display: block;
        border-radius: 15px;
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
        text-align: center;
        font-weight: 600;
    }
    
    .nav-link::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(45deg, var(--accent-color), #28a745);
        transition: left 0.3s ease;
        z-index: -1;
    }
    
    .nav-link:hover::before,
    .nav-link:focus::before {
        left: 0;
    }
    
    .nav-link:hover,
    .nav-link:focus {
        color: white;
        transform: translateX(10px);
        outline: none;
    }
    
    .cart-icon {
        margin: 15px 20px;
        cursor: pointer;
        background: linear-gradient(45deg, var(--accent-color), #28a745);
        color: white;
        border-radius: 15px;
        padding: 15px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.2rem;
        transition: all 0.3s ease;
        box-shadow: 0 4px 15px rgba(0, 153, 51, 0.3);
    }
    
    .cart-icon:hover {
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(0, 153, 51, 0.4);
    }
    
    .cart-icon span {
        color: white;
    }
    
    .cart-count {
        background-color: #ff4757;
        box-shadow: 0 2px 8px rgba(255, 71, 87, 0.3);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mejoras adicionales para el header */
@media (max-width: 480px) {
    .navbar {
        padding: 12px 0;
    }
    
    .logo {
        width: 120px;
    }
    
    .nav-menu {
        width: 250px;
        right: 10px;
    }
    
    .nav-link {
        font-size: 1rem;
        padding: 12px 15px;
    }
}

/* Contactar Soporte page title improvements */
#contact-support-title {
    text-align: center;
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 40px;
    margin-bottom: 20px;
}

/* Hero Section Optimizada */
.hero {
    background: linear-gradient(135deg, var(--primary-color), #001a33);
    color: white;
    padding: 160px 0 60px; /* Aumentado de 120px a 160px para más separación del menú */
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: gradientShift 15s ease infinite;
    background-size: 400% 400%;
    min-height: 60vh; /* Reducido de 80vh implícito a 60vh */
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect x="0" y="0" width="100" height="100" fill="none" stroke="%23ffffff10" stroke-width="1"/></svg>');
    opacity: 0.1;
    pointer-events: none;
}

.hero h1 {
    font-size: 2.8rem; /* Reducido de 3.5rem */
    margin-bottom: 15px; /* Reducido de 20px */
    font-weight: 700;
    line-height: 1.2; /* Mejorada la altura de línea */
}

.hero p {
    font-size: 1.1rem; /* Ligeramente reducido de 1.2rem */
    max-width: 650px; /* Reducido de 700px */
    margin: 0 auto 25px; /* Reducido de 30px */
    line-height: 1.5;
}

.btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    /* Removida animación flotante automática */
}

.btn:hover {
    background-color: #007722;
    transform: translateY(-1px); /* Movimiento más sutil */
    box-shadow: 0 3px 10px rgba(0, 153, 51, 0.2); /* Sombra más sutil */
}

/* Products Section */
.products {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    font-size: 2.5rem;
    color: var(--primary-color);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--accent-color);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); /* Ajustado minmax */
    gap: 30px;
}

.product-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex; /* Usar flexbox para estructura interna */
    flex-direction: column; /* Apilar imagen e info verticalmente */
    height: 100%; /* Asegurar que las tarjetas llenen el espacio de la grid */
}

.product-card:hover {
    transform: translateY(-2px); /* Movimiento más sutil */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); /* Sombra más sutil */
}

/* Contenedor para la imagen con altura fija */
.product-img-container {
    width: 100%;
    height: 200px; /* Altura fija para el contenedor de la imagen */
    background-color: #f9f9f9;
    padding: 15px; /* Padding reducido */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; /* Asegurar que nada se salga */
}

.product-img {
    max-width: 100%;
    max-height: 100%; /* Asegurar que la imagen no exceda el contenedor */
    object-fit: contain; /* Escalar manteniendo proporción, sin cortar */
    display: block; /* Eliminar espacio extra debajo de la imagen */
}

.product-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Permitir que esta sección crezca para llenar espacio */
    justify-content: space-between; /* Empujar precio/botón hacia abajo */
}

.product-title {
    font-size: 1.3rem; /* Tamaño ligeramente ajustado */
    margin-bottom: 10px;
    color: var(--primary-color);
    min-height: 2.6em; /* Espacio para dos líneas de título */
}

.product-description {
    color: var(--dark-gray);
    margin-bottom: 15px;
    font-size: 0.9rem; /* Tamaño ligeramente ajustado */
    flex-grow: 1; /* Permitir que la descripción crezca si hay espacio */
}

.product-price {
    font-size: 1.4rem; /* Tamaño ligeramente ajustado */
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
    display: block;
    margin-top: auto; /* Empujar hacia abajo si la descripción es corta */
}

.product-info .btn {
    margin-top: 10px; /* Espacio sobre el botón */
    align-self: flex-start; /* Alinear botón a la izquierda */
}


/* Features Section */
.features {
    background-color: var(--light-gray);
    padding: 100px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    text-align: center;
    padding: 30px;
}

.feature-icon {
    font-size: 50px;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.feature-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.feature-description {
    color: var(--dark-gray);
}

/* Call to Action */
.cta {
    background: linear-gradient(135deg, var(--accent-color), #006622);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    animation: floatUpDown 4s ease-in-out infinite;
}

.cta p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
}

.btn-light {
    background-color: white;
    color: var(--accent-color);
    animation: glowing 2.5s infinite;
    box-shadow: 0 0 5px var(--accent-color);
    transition: box-shadow 0.3s ease-in-out;
}

.btn-light:hover {
    background-color: #f0f0f0;
    color: #006622;
    box-shadow: 0 0 20px var(--accent-color);
    animation: none;
}

@keyframes floatUpDown {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

@keyframes glowing {
    0% {
        box-shadow: 0 0 5px var(--accent-color);
    }
    50% {
        box-shadow: 0 0 20px var(--accent-color);
    }
    100% {
        box-shadow: 0 0 5px var(--accent-color);
    }
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    width: 150px;
    margin-bottom: 15px;
    filter: brightness(0) invert(1);
}

.footer-about p {
    margin-bottom: 20px;
}

.footer-title {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--accent-color);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    text-decoration: none;
    color: #cccccc;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s;
}

.social-icon:hover {
    background-color: var(--accent-color);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #cccccc;
    font-size: 0.9rem;
}

/* Cart Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    padding: 30px;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

.cart-items {
    margin-bottom: 30px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.cart-item-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.cart-item-info {
    flex: 1;
    padding: 0 20px;
}

.cart-item-title {
    font-weight: 600;
    margin-bottom: 5px;
}

.cart-item-price {
    color: var(--primary-color);
    font-weight: 600;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
}

.quantity-btn {
    background-color: #eee;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
}

.quantity-input {
    width: 40px;
    text-align: center;
    border: none;
    font-size: 1rem;
    margin: 0 10px;
}

.remove-item {
    color: #ff3333;
    cursor: pointer;
    font-size: 1.2rem;
}

/* Applications Section Styles */
.applications {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.section-description {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* App Product Images Styles */
.free-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: #28a745;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.app-price {
    text-align: center;
    margin: 15px 0;
}

.price-free {
    font-size: 1.2rem;
    font-weight: bold;
    color: #28a745;
    background-color: #f8fff9;
    padding: 8px 16px;
    border-radius: 20px;
    border: 2px solid #28a745;
}

.app-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
}

.btn-secondary:hover {
    background-color: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(108, 117, 125, 0.4);
}

/* Enhanced product cards for apps - Movimiento más sutil */
.applications .product-card {
    border: 2px solid #e9ecef;
    transition: all 0.2s ease;
    background: white;
}

.applications .product-card:hover {
    border-color: #28a745;
    transform: translateY(-2px); /* Movimiento más sutil */
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.1); /* Sombra más sutil */
}

.product-img-container {
    position: relative;
    overflow: hidden;
    border-radius: 15px 15px 0 0;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.product-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.2s ease; /* Transición más rápida */
}

.product-card:hover .product-img {
    transform: scale(1.02); /* Zoom más sutil */
}

/* App features enhancement */
.app-features {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 15px 0;
    justify-content: center;
}

.feature-tag {
    background-color: #e8f5e8;
    color: #28a745;
    font-size: 0.8rem;
    padding: 4px 10px;
    border-radius: 15px;
    font-weight: 500;
    white-space: nowrap;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .app-actions {
        gap: 8px;
    }
    
    .btn-secondary, .btn-primary {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .product-img {
        height: 160px;
    }
    
    .price-free {
        font-size: 1rem;
        padding: 6px 12px;
    }
    
    .app-features {
        justify-content: flex-start;
    }
}

/* Fallback styles for old emoji icons */
.app-icon {
    font-size: 4rem;
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
}

.app-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 15px 0;
}

.feature-tag {
    background-color: #e8f5e8;
    color: #28a745;
    font-size: 0.85rem;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 500;
}

/* Single Product Layout */
.single-product {
    justify-content: center;
    max-width: 500px;
    margin: 0 auto;
}

.featured-product {
    position: relative;
    border: 2px solid var(--accent-color);
    box-shadow: 0 10px 30px rgba(0, 153, 51, 0.15);
    transform: scale(1.05);
}

.discount-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: #ff4444;
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 10;
}

.price-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 15px 0;
}

.product-price-old {
    font-size: 1.1rem;
    color: #999;
    text-decoration: line-through;
}

.product-price {
    font-size: 2rem;
    font-weight: bold;
    color: var(--accent-color);
}

.product-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 20px 0;
}

.benefit-tag {
    background-color: #e8f5e8;
    color: #28a745;
    font-size: 0.85rem;
    padding: 6px 10px;
    border-radius: 15px;
    font-weight: 500;
}

.btn-primary {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-primary:hover {
    background-color: #007722;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 153, 51, 0.4);
}

/* CTA Section Updates */
.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

.cta-buttons .btn {
    min-width: 180px;
}

/* Support Page Styles */
.hero-secondary {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 100px 0 60px;
    text-align: center;
}

.hero-secondary h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero-secondary p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.support-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.support-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
}

.support-icon {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 20px;
}

.support-card h2 {
    color: var(--primary-color);
    margin-bottom: 10px;
    text-align: center;
}

.support-description {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
    font-style: italic;
}

.support-content h3 {
    color: var(--primary-color);
    margin: 25px 0 15px 0;
    font-size: 1.1rem;
}

.support-content ul {
    list-style: none;
    padding: 0;
    margin-bottom: 25px;
}

.support-content ul li {
    padding: 5px 0;
    color: #444;
}

.faq-item {
    background-color: #f8f9fa;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
}

.faq-item strong {
    color: var(--primary-color);
    display: block;
    margin-bottom: 8px;
}

.faq-item p {
    color: #666;
    margin: 0;
    line-height: 1.5;
}

.support-actions {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.contact-support {
    padding: 80px 0;
    background-color: white;
    text-align: center;
}

.contact-support h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.contact-support p {
    color: #666;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-options {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.contact-option {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 30px;
    background-color: #f8f9fa;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    min-width: 250px;
}

.contact-option:hover {
    background-color: var(--accent-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 153, 51, 0.3);
}

.contact-icon {
    font-size: 2rem;
}

.contact-info h3 {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
}

.contact-info p {
    margin: 0;
    opacity: 0.8;
}

.nav-link.active {
    color: var(--accent-color) !important;
    font-weight: bold;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-secondary h1 {
        font-size: 2.2rem;
    }
    
    .support-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .support-card {
        padding: 20px;
    }
    
    .contact-options {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-option {
        width: 100%;
        max-width: 350px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
        padding: 0 10px;
    }

    .hero p {
        font-size: 1rem;
        padding: 0 10px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 1rem;
    }

    .product-grid, .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .product-img {
        height: auto;
        max-width: 100%;
    }

    .navbar {
        /* flex-direction: column; eliminado */
        /* align-items: flex-start; eliminado para heredar align-items: center */
        padding: 10px 20px; /* Mantenemos el padding */
    }

    .nav-menu {
        flex-direction: column;
        width: 100%;
        margin-top: 10px;
        padding-left: 0;
    }

    .nav-item {
        margin-left: 0;
        margin-bottom: 10px;
    }

    .logo {
        width: 100px; /* Tamaño ajustado para móvil */
        /* margin-bottom: 15px; eliminado */
    }
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

/* Responsive Hero */
@media (max-width: 768px) {
    .hero {
        padding: 140px 0 50px; /* Aumentado de 100px a 140px para más separación del menú en móvil */
        min-height: 50vh; /* Reducido para móviles */
    }
    
    .hero h1 {
        font-size: 2.2rem; /* Reducido para móvil */
        margin-bottom: 12px;
    }
    
    .hero p {
        font-size: 1rem;
        margin: 0 auto 20px;
        padding: 0 15px;
    }
    
    .btn {
        padding: 12px 25px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 120px 0 40px; /* Aumentado de 80px a 120px para más separación del menú */
        min-height: 45vh;
    }
    
    .hero h1 {
        font-size: 1.8rem;
        line-height: 1.1;
    }
}

/* Efecto de cuadrícula digital mejorado */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(90deg, rgba(0, 150, 255, 0.1) 1px, transparent 1px) 0 0 / 40px 40px,
        linear-gradient(rgba(0, 150, 255, 0.1) 1px, transparent 1px) 0 0 / 40px 40px;
    animation: gridMove 20s linear infinite;
    opacity: 0.5;
}

/* Efecto de partículas mejorado */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at center, rgba(0, 150, 255, 0.2) 1px, transparent 1px),
        radial-gradient(circle at center, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 30px 30px, 20px 20px;
    animation: particleFloat 15s infinite linear;
    opacity: 0.6;
}

@keyframes gridMove {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(40px);
    }
}

@keyframes particleFloat {
    0% {
        transform: translateX(0) translateY(0);
    }
    100% {
        transform: translateX(-20px) translateY(-20px);
    }
}

/* Mejora de la transición de fade-in */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
.web3-features {
    padding: 20px;
    margin: 20px 0;
    background: rgba(0,0,0,0.05);
    border-radius: 10px;
}

.wallet-connected {
    color: var(--accent-color);
    font-weight: bold;
}
/* ==========================================================================
   Contact Form Styles
   ========================================================================== */
.contact-form {
    max-width: 600px; /* O el ancho que prefieras */
    margin: 20px auto; /* Centrar el formulario y añadir margen */
    padding: 20px;
    background-color: #f9f9f9; /* Un color de fondo suave */
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px; /* Aumentado un poco para más espacio */
    font-weight: bold;
    color: var(--text-color); /* Usar variable si está definida, sino un color como #333 */
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"], /* Añadido por si tienes campos de teléfono */
.form-group textarea,
.form-group select { /* Añadido por si usas selects */
    width: 100%;
    padding: 12px; /* Un poco más de padding */
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 1rem;
    transition: border-color 0.3s ease; /* Transición suave para el foco */
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="tel"]:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary-color); /* Resaltar con color primario al enfocar */
    outline: none; /* Quitar el outline por defecto si se usa border-color */
}

.form-group textarea {
    resize: vertical;
    min-height: 120px; /* Altura mínima para el textarea */
}

.form-group .character-count {
    font-size: 0.85rem; /* Ligeramente más grande */
    color: #555; /* Un poco más oscuro */
    text-align: right;
    display: block;
    margin-top: 4px; /* Más espacio */
}

.form-status { /* Estilos para los mensajes de estado del formulario */
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 4px;
    font-size: 0.95rem;
}

/* Clases de alerta (pueden ser globales si se usan en otros sitios) */
.alert { /* Clase base para alertas */
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
}
.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}
.alert-info {
    color: #0c5460;
    background-color: #d1ecf1;
    border-color: #bee5eb;
}
.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

/* Estilo para el botón dentro del formulario, si es diferente al global .btn */
.contact-form .btn {
    display: block; /* Hacer que el botón ocupe todo el ancho si se desea */
    width: 100%; /* O 'auto' si prefieres que se ajuste al texto */
    padding: 12px 20px;
    font-size: 1.1rem;
}

/* App Download Animation */
.product-card .btn {
    position: relative;
    overflow: hidden;
}

.product-card .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.product-card .btn:hover::before {
    left: 100%;
}

/* Botón WhatsApp flotante con animación especial */
#contact-whatsapp-fixed-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 2000; /* Reducido de 3000 a 2000 pero sigue por encima del chat */
    background: linear-gradient(45deg, #25d366, #128c7e);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 12px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
    animation: whatsappFloat 3s ease-in-out infinite;
    transition: all 0.3s ease;
}

#contact-whatsapp-fixed-btn:hover {
    background: linear-gradient(45deg, #128c7e, #25d366);
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.4);
    animation: none;
}

#contact-whatsapp-fixed-btn:active {
    transform: scale(0.95);
}

@keyframes whatsappFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

/* Contact Page Styles */
.contact-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.contact-info-card, .contact-form-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 51, 102, 0.1);
}

/* 🤖 ZORRITO AI ASSISTANT STYLES - Sistema de IA Avanzado */

/* ChatBot Principal */
.ai-chatbot {
    position: fixed;
    bottom: 90px; /* Aumentado de 20px a 90px para no solaparse con WhatsApp */
    right: 20px;
    z-index: 1000;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.chat-toggle {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    padding: 12px 18px;
    border-radius: 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
    transition: all 0.3s ease;
    border: none;
    font-size: 14px;
    font-weight: 600;
}

.chat-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

.ai-icon {
    font-size: 18px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.chat-window {
    position: absolute;
    bottom: 60px;
    right: 0;
    width: 350px;
    height: 450px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: slideUp 0.3s ease-out;
    z-index: 1001; /* Asegurar que esté por encima */
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-header {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h4 {
    margin: 0;
    font-size: 16px;
}

.chat-close {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.chat-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ai-message {
    background: #f0f9ff;
    border: 1px solid #e0f2fe;
    border-radius: 15px 15px 15px 5px;
    padding: 12px 15px;
    font-size: 14px;
    line-height: 1.4;
    position: relative;
    animation: fadeInLeft 0.3s ease-out;
}

.user-message {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border-radius: 15px 15px 5px 15px;
    padding: 12px 15px;
    font-size: 14px;
    line-height: 1.4;
    align-self: flex-end;
    max-width: 80%;
    animation: fadeInRight 0.3s ease-out;
}

.ai-typing {
    background: #f0f9ff;
    border: 1px solid #e0f2fe;
    border-radius: 15px 15px 15px 5px;
    padding: 12px 15px;
    font-size: 14px;
    font-style: italic;
    opacity: 0.8;
    animation: typing 1s infinite;
}

@keyframes typing {
    0%, 50% { opacity: 0.8; }
    25% { opacity: 1; }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.chat-input-container {
    padding: 15px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 10px;
    background: #f9f9f9;
}

#chat-input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s ease;
}

#chat-input:focus {
    border-color: #007bff;
}

#chat-send {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

#chat-send:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3);
}

/* Botones de Acción del Chat */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.action-btn {
    padding: 8px 15px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
}

.download-btn {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
}

.download-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(40, 167, 69, 0.3);
}

.collaborate-btn {
    background: linear-gradient(135deg, #ffc107, #fd7e14);
    color: white;
}

.collaborate-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(255, 193, 7, 0.3);
}

.contact-btn {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
}

.contact-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(220, 53, 69, 0.3);
}

/* Sugerencias IA en Formularios */
.ai-suggestion {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 1px solid #007bff;
    border-radius: 10px;
    padding: 10px 15px;
    margin-top: 8px;
    font-size: 13px;
    color: #495057;
    line-height: 1.4;
    position: relative;
    animation: fadeIn 0.3s ease-out;
}

.ai-suggestion::before {
    content: "";
    position: absolute;
    top: -5px;
    left: 20px;
    width: 10px;
    height: 10px;
    background: #007bff;
    transform: rotate(45deg);
    border-radius: 2px;
}

.ai-suggestion strong {
    color: #007bff;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Notificaciones IA */
.ai-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 999;
    max-width: 300px;
    animation: slideInRight 0.5s ease-out;
}

.notification-content {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    line-height: 1.4;
}

.notification-content button {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    margin-left: auto;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.notification-content button:hover {
    opacity: 1;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Mejoras para App Cards con IA */
.app-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.app-card[data-app] {
    transition: all 0.3s ease;
    position: relative;
    overflow: visible;
}

.app-card[data-app]::after {
    content: "🤖 IA Activada";
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    padding: 4px 8px;
    border-radius: 15px;
    font-size: 10px;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.app-card[data-app]:hover::after {
    opacity: 1;
}

/* Responsive para el ChatBot */
@media (max-width: 768px) {
    .ai-chatbot {
        bottom: 100px; /* Más espacio en móvil */
        right: 10px;
    }
    
    .chat-window {
        width: 280px;
        height: 400px;
        bottom: 70px;
        right: -10px;
    }
    
    .ai-notification {
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    /* Ajustar WhatsApp en móvil también */
    #contact-whatsapp-fixed-btn {
        bottom: 15px;
        right: 15px;
        padding: 10px 16px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .ai-chatbot {
        bottom: 90px; /* Mantener separación en pantallas pequeñas */
        right: 10px;
    }
    
    .chat-window {
        width: 260px;
        height: 350px;
    }
    
    .chat-toggle {
        padding: 10px 15px;
        font-size: 13px;
    }
}

/* Efectos de Carga IA */
.ai-loading {
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid #007bff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Indicador de IA Activa */
.ai-active-indicator {
    position: fixed;
    top: 20px;
    left: 20px;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    z-index: 1000;
    animation: pulse 2s infinite;
}

/* Mejoras en el Hero con IA */
.hero .ai-suggestion {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    max-width: 400px;
    text-align: center;
}