/* --- GENERAL & VARIABLES --- */
:root {
    --primary-green: #2ECC71;
    --primary-blue: #3498DB;
    --dark-blue: #2c3e50;
    --light-grey: #f0f2f5;
    --white: #ffffff;
    --text-color: #34495e;
    --text-light: #7f8c8d;
    --gradient: linear-gradient(135deg, var(--primary-green), var(--primary-blue));
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --border-radius: 16px;
}

body {
    font-family: 'Poppins', sans-serif; margin: 0; padding: 0;
    color: var(--text-color); background-color: var(--light-grey);
    scroll-behavior: smooth; transition: background-color 0.3s ease, color 0.3s ease;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
section { padding: 60px 0; }
h2.section-title { text-align: center; font-size: 2.5rem; margin-bottom: 50px; color: var(--dark-blue); position: relative; }
h2.section-title::after { content: ''; display: block; width: 60px; height: 4px; background: var(--gradient); margin: 10px auto 0; border-radius: 2px; }

/* --- HEADER & NAVEGACIÓN --- */
header { background-color: var(--white); box-shadow: 0 2px 10px rgba(0,0,0,0.05); position: sticky; top: 0; z-index: 1000; transition: background-color 0.3s ease; }
nav.container { display: flex; justify-content: space-between; align-items: center; height: 80px; }
.logo { font-size: 1.8rem; font-weight: 900; text-decoration: none; background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.nav-controls { display: flex; align-items: center; gap: 20px; }
#nav-links { margin: 0; padding: 0; list-style: none; display: flex; align-items: center; gap: 15px; }
#nav-links a { text-decoration: none; color: var(--text-color); font-weight: 600; padding: 5px 10px; transition: color 0.3s ease; }
#nav-links a:hover { color: var(--primary-blue); }
.nav-static-controls { list-style-type: none; display: flex; align-items: center; gap: 15px; margin-left: 15px; }
#lang-switcher select { border: 1px solid #ddd; padding: 8px 12px; border-radius: 8px; background-color: var(--white); font-family: 'Poppins', sans-serif; font-weight: 500; transition: all 0.3s ease; }
.theme-btn { background-color: transparent; border: none; width: 40px; height: 40px; border-radius: 50%; display: flex; justify-content: center; align-items: center; cursor: pointer; color: var(--text-color); transition: all 0.3s ease; }
.theme-btn:hover { background-color: var(--light-grey); }

/* --- SECCIONES DE PRODUCTOS (sin cambios) --- */
.product-grid, .product-grid-simple { display: grid; gap: 30px; }
.product-grid { grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); }
.product-grid-simple { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.product-card, .product-card-simple { background-color: var(--white); border-radius: var(--border-radius); box-shadow: var(--card-shadow); overflow: hidden; display: flex; flex-direction: column; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.product-card:hover, .product-card-simple:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.15); }
.card-image { height: 220px; background-size: cover; background-position: center; }
.card-content { padding: 25px; display: flex; flex-direction: column; flex-grow: 1; }
.card-content h3 { margin: 0 0 10px 0; font-size: 1.3rem; color: var(--dark-blue); }
.card-content p { margin: 0 0 20px 0; line-height: 1.6; color: var(--text-light); flex-grow: 1; }
.card-subtitle { font-weight: 600; color: var(--dark-blue); margin-top: 10px; margin-bottom: 8px; }
.tech-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.tech-tag { background-color: #e9ecef; color: var(--text-light); padding: 5px 12px; border-radius: 6px; font-size: 0.8rem; font-weight: 500; }
.pricing-tier { display: block; background: var(--gradient); padding: 15px; border-radius: 12px; text-align: center; color: var(--white); text-decoration: none; transition: transform 0.3s ease, box-shadow 0.3s ease; margin-top: auto; border: none; cursor: pointer; }
.pricing-tier:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(46, 204, 113, 0.4); }
.tier-price { font-size: 2.2rem; font-weight: 900; line-height: 1.1; display: block; color: var(--white); }
.tier-name { font-size: 1.1rem; font-weight: 600; opacity: 0.95; line-height: 1.2; display: block; margin-top: 5px; }
.tier-desc { font-size: 0.8rem; font-weight: 400; opacity: 0.8; line-height: 1; display: block; margin-top: 5px; text-transform: uppercase; letter-spacing: 0.5px; }


/* --- DARK MODE & RESPONSIVE --- */
/* Estilos Dark Mode */
body.dark-mode { --light-grey: #1a1a1a; --white: #252a2e; --dark-blue: #ffffff; --text-color: #e0e0e0; --text-light: #a0a0a0; --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); }
body.dark-mode header { background-color: #1e1e1e; }
body.dark-mode .theme-btn { color: var(--text-color); }
body.dark-mode .theme-btn:hover { background-color: #333; }
body.dark-mode #lang-switcher select { background-color: #333; color: var(--text-color); border-color: #444; }
body.dark-mode .tech-tag { background-color: #333; color: var(--text-light); }

/* Menú Hamburguesa (oculto en desktop) */
.hamburger { display: none; background: none; border: none; color: var(--text-color); font-size: 2.2rem; cursor: pointer; z-index: 1001; padding: 0; line-height: 1; }
body.dark-mode .hamburger { color: var(--text-color); }

/* Tablet y Menores (hasta 992px) */
@media (max-width: 992px) {
    #nav-links { flex-direction: column; justify-content: flex-start; align-items: center; gap: 25px; position: fixed; top: 0; right: -100%; width: 60%; max-width: 300px; height: 100vh; background-color: var(--white); box-shadow: -5px 0 15px rgba(0,0,0,0.1); transition: right 0.4s ease-in-out; padding-top: 100px; }
    #nav-links.nav-active { right: 0; }
    #nav-links a { font-size: 1.3rem; }
    .nav-static-controls { flex-direction: column; gap: 25px; margin-left: 0; margin-top: 30px; padding-top: 30px; border-top: 1px solid var(--text-light); }
    .hamburger { display: flex; align-items: center; }
    .nav-controls { gap: 15px; } /* Reduce gap between hamburger and logo */
    ul#nav-links > li:not(.nav-static-controls) { width: 100%; text-align: center; }
}

/* Móvil (hasta 768px) */
@media (max-width: 768px) {
    .container { padding: 0 15px; }
    #hero h1 { font-size: 2.2rem; }
    h2.section-title { font-size: 1.8rem; }
    .product-grid, .product-grid-simple { grid-template-columns: 1fr; }
}

/* --- (TODOS TUS ESTILOS ANTERIORES VAN AQUÍ)... --- */

/* --- AJUSTE FINAL: FOOTER MEJORADO --- */
footer {
    background-color: var(--dark-blue);
    color: var(--light-grey);
    padding-top: 60px;
    margin-top: 60px;
}

body.dark-mode footer {
    background-color: #111;
}

.footer-content {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
    padding-bottom: 50px;
}

.footer-contact, .footer-social {
    text-align: center;
}

.footer-contact h4, .footer-social h4 {
    font-size: 1.2rem;
    margin-top: 0;
    margin-bottom: 20px;
    color: #ffffff; /* Título siempre blanco para contraste */
    font-weight: 600;
}

body.dark-mode .footer-contact h4, 
body.dark-mode .footer-social h4 {
    color: #ffffff;
}

.footer-contact a {
    color: var(--text-light);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: var(--primary-blue);
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    color: var(--text-light);
    font-size: 1.8rem; /* Tamaño del icono */
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.social-links a:hover {
    transform: translateY(-4px);
    color: var(--primary-green);
}

.footer-bottom {
    border-top: 1px solid #444;
    text-align: center;
    padding: 20px 0;
    font-size: 0.9rem;
    color: var(--text-light);
}