/* Variables CSS para consistencia */
:root {
    --primary-bg: #0a0a0a;
    --secondary-bg: #0a0a0a;
    --accent-bg: #1a1a1a;
    --card-bg: rgba(26, 26, 26, 0.8);
    --primary-text: #ffffff;
    --secondary-text: #e0e0e0;
    --muted-text: #b0b0b0;
    --accent-color: #00d4ff;
    --accent-hover: #00b8e6;
    --gradient-primary: linear-gradient(135deg, #0D63A6 0%, #61C5E5 100%);
    --shadow-soft: 0 4px 20px rgba(0, 212, 255, 0.1);
    --shadow-strong: 0 8px 32px rgba(0, 212, 255, 0.2);
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Estilos generales */
body, html {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Chakra Petch', sans-serif;
    font-style: italic;
    text-align: center;
    background-color: var(--primary-bg);
    color: var(--secondary-text);
    overflow-x: hidden;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Contenedor principal */
.container {
    max-width: 100%;
    padding: 20px;
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 40px;
}

img {
    max-width: 200px;
    height: auto;
    margin-bottom: 20px;
    filter: invert(1) hue-rotate(180deg);
}

p {
    font-size: 1.5em;
    line-height: 1.6;
}

/* Texto dinámico */
.dynamic-text {
    font-weight: bold;
    background-color: #ffffff;
    color: #000000;
    padding: 2px 5px;
    border-radius: 3px;
    display: inline-block;
    min-width: 80px;
    text-align: left;
}

@keyframes blink {
    0% { opacity: 0; }
    50% { opacity: 1; }
    100% { opacity: 0; }
}

.cursor {
    display: inline-block;
    width: 2px;
    height: 1.2em;
    background-color: #000000;
    margin-left: 2px;
    animation: blink 0.7s infinite;
    vertical-align: middle;
}

/* Footer compacto */
.contacts {
    width: 100%;
    padding: 12px 0;
    display: flex;
    justify-content: center;
    gap: 25px;
    background-color: #0a0a0a;
    border-top: 1px solid rgba(0, 212, 255, 0.2);
    font-size: 0.8em;
    color: #b0b0b0;
    margin-top: auto;
    position: relative;
    box-sizing: border-box;
}

.contact-item {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-item:hover {
    transform: translateY(-2px);
}

.contact-item a {
    color: #00d4ff;
    text-decoration: none;
    display: flex;
    align-items: center;
    padding: 5px 8px;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-item a svg {
    stroke: #00d4ff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-right: 5px;
    width: 16px;
    height: 16px;
}

.contact-item a:hover {
    background: rgba(0, 212, 255, 0.1);
    color: #ffffff;
}

.contact-item a:hover svg {
    transform: scale(1.1);
    filter: drop-shadow(0 0 5px #00d4ff);
    stroke: #ffffff;
}

/* Sección de productos */
.products-section {
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: auto 0; /* Centrado vertical entre el texto y el footer */
    flex-grow: 1;
}

.product-cards-container {
    display: flex;
    justify-content: center;
    gap: 80px; /* Duplicado de 25px a 50px */
    max-width: 900px;
    width: 100%;
    align-items: center;
}

.product-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius);
    padding: 20px;
    width: 234px; /* Reducido en 10% de 260px */
    height: 225px; /* Reducido en 10% de 250px */
    box-shadow: var(--shadow-strong);
    transition: var(--transition);
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid rgba(0, 212, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-primary);
}

.product-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 212, 255, 0.3);
}

.product-card h3 {
    color: var(--accent-color);
    font-size: 1.4em;
    margin: 0 0 10px 0;
    font-weight: 600;
}

.product-card p {
    font-size: 0.9em;
    color: var(--muted-text);
    margin: 0 0 15px 0;
    line-height: 1.4;
    text-align: left;
    flex: 1;
}

.product-card .btn {
    display: inline-block;
    background: var(--gradient-primary);
    color: var(--primary-text);
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85em;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    text-align: center;
    margin-top: auto;
}

.product-card .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
    transition: var(--transition);
}

.product-card .btn:hover::before {
    left: 100%;
}

.product-card .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-strong);
}

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

.product-card {
    animation: fadeInUp 0.8s ease-out;
}

.product-card:nth-child(2) {
    animation-delay: 0.2s;
}

/* Responsive para tarjetas */
@media (max-width: 768px) {
    .product-cards-container {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .product-card {
        width: 90%;
        max-width: 320px;
        height: auto;
        min-height: 200px;
    }
}
