@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

/* ==========================================================================
   1. RESET Y VARIABLES GLOBALES
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-dark: #000000;
    --text-main: #ffffff;
    --text-muted: #a1a1aa;
    --border-color: #3f3f46;
    --bg-card: #18181b;
    --btn-white-bg: #ffffff;
    --btn-white-text: #000000;
    --btn-dark-bg: #27272a;
    --font-family: 'Inter', 'Roboto', sans-serif;
    --font-size-base: 13px;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   2. HEADER / NAVEGACIÓN (MOBILE-FIRST)
   ========================================================================== */
.main-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--bg-dark); /* Fondo negro 100% sólido y opaco */
    border-bottom: 1px solid var(--border-color);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-left,
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.25rem;
}

/* Lupa */
.btn-search {
    display: inline-flex;
    align-items: center;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.1rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.btn-search:hover {
    color: var(--text-main);
}


.brand-name,
.nav-menu,
.header-actions .btn-primary,
.header-actions .btn-secondary {
    display: none;
}

.btn-sidebar {
    display: inline-block;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.1rem;
    cursor: pointer;
}

/* Estilos de botones gral */
.btn-primary {
    background-color: var(--btn-white-bg);
    color: var(--btn-white-text);
    padding: 0.6rem 1.2rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    transition: opacity 0.2s ease;
    display: inline-block;
}

.btn-primary:hover {
    opacity: 0.9;
}

.btn-secondary {
    background-color: var(--btn-dark-bg);
    color: var(--text-main);
    padding: 0.6rem 1.2rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background-color 0.2s ease;
    display: inline-block;
}

.btn-secondary:hover {
    background-color: #3f3f46;
}


.btn-secondary .icon-up {
    display: none;
}

.btn-secondary .icon-down {
    display: inline-block;
}

.btn-secondary:hover .icon-down {
    display: none;
}

.btn-secondary:hover .icon-up {
    display: inline-block;
}
/* ==========================================================================
   3. HERO &amp; SOLUCIONES (MOBILE-FIRST)
   ========================================================================== */
.hero-section {
    padding: 3rem 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-container {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.tagline {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
}

.hero-content h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.12;
}

.hero-content p {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.hero-media img {
    border-radius: 12px;
    width: 100%;
}

.solutions-section {
    padding: 4rem 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
}

.section-header p {
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
}

.cards-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card-image img {
    width: 100%;
    object-fit: cover;
}

.card-body {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;

}

.card-body h3 {
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.card-subtitle {
    color: var(--text-muted);
    font-style: italic;
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
}

.card-body ul {
    list-style-type: disc;
    padding-left: 1.25rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.btn-card {
    margin-top: auto;
    background-color: var(--btn-white-bg);
    color: var(--btn-white-text);
    text-align: center;
    padding: 0.75rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
}

/* ==========================================================================
   4. FOOTER
   ========================================================================== */
.main-footer {
    border-top: 1px solid var(--border-color);
    padding: 2rem 1.5rem;
    margin-top: 3rem;
}

.footer-nav,
.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.social-links, 
.copyright-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.25rem;
}

.social-links a:hover,
.copyright-info a:hover {
    color: var(--text-main);
}

.copyright-info a {
    text-decoration: underline;
}

.btn-lang {
    background-color: var(--btn-dark-bg);
    color: var(--text-main);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.85rem;
    cursor: pointer;
}

.btn-lang span {
    color: var(--text-muted);
}

/* ==========================================================================
   5. MEDIA QUERIES (DISEÑO RESPONSIVO)
   ========================================================================== */

/* --- Tablet (768px+) --- */
@media (min-width: 768px) {
    .hero-container { 
        flex-direction: row; 
        align-items: center; 
    }
    .hero-content { 
        flex: 1; 
    }
    .hero-media { 
        flex: 1; 
    }
    .hero-content h1 { 
        font-size: 3rem;
    }
    .hero-buttons { 
        flex-direction: row; 
    }
    .footer-nav,
    .footer-container {
        flex-direction: row; 
        justify-content: space-between; 
    }
    .cards-grid { 
        flex-direction: row; 
        flex-wrap: wrap; 
        gap: 1.5rem; 
    }
    .card { 
        flex: 1 1 calc(50% - 1.5rem); 
    }
}

/* --- Desktop (1024px+) --- */
@media (min-width: 1024px) {
    /* --  HEADER  ESCRITORIO -- */
    .header-left {
        gap: 2rem;
    }

    .brand-name,
    .btn-search,
    .nav-menu,
    .header-actions .btn-primary,
    .header-actions .btn-secondary {
        display: inline-flex;
        align-items: center;
    }
    
    .nav-menu {
        display: flex;
        gap: 1.5rem;
    }

    .btn-sidebar {
        display: none;
    }
    .cards-grid { 
        flex-wrap: nowrap; 
    }
    .card { 
        flex: 1; 
    }
}