/*
Theme Name: Hostec - Soluciones Informáticas
Theme URI: https://hostecinformatica.com
Author: Hostec Informática
Author URI: https://hostecinformatica.com
Description: Tema profesional para Hostec Informática - Consultoría y soluciones TIC para hostelería. Software TPV, PDA, KDS y PCU.
Version: 1.0
License: GPL v2 or later
Text Domain: hostec
*/

:root {
    --primary: #0c2d6a;
    --primary-dark: #081d47;
    --primary-light: #1a4a8a;
    --secondary: #1a73e8;
    --accent: #00a8ff;
    --blue-100: #e8f0fe;
    --blue-200: #c5d9f7;
    --blue-300: #93b8ef;
    --text: #2d3748;
    --text-light: #718096;
    --white: #ffffff;
    --bg: #f8fafc;
    --radius: 12px;
    --shadow: 0 4px 20px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
    --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font);
    color: var(--text);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--secondary); text-decoration: none; }
a:hover { color: var(--primary-light); }
ul { list-style: none; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; }
.section-header { text-align: center; max-width: 720px; margin: 0 auto 60px; }
.section-header h2 {
    font-size: 2.5rem; font-weight: 800; color: var(--primary);
    margin-bottom: 16px; line-height: 1.2;
}
.section-header p { font-size: 1.125rem; color: var(--text-light); line-height: 1.7; }

.btn {
    display: inline-flex; align-items: center; justify-content: center;
    font-family: var(--font); font-weight: 600; font-size: 1rem;
    padding: 14px 32px; border-radius: 8px; border: 2px solid transparent;
    cursor: pointer; transition: all 0.3s ease; text-decoration: none;
}
.btn-primary {
    background: var(--secondary); color: var(--white); border-color: var(--secondary);
}
.btn-primary:hover {
    background: var(--primary-light); border-color: var(--primary-light);
    color: var(--white); transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(26, 115, 232, 0.35);
}
.btn-outline {
    background: transparent; color: var(--white); border-color: rgba(255,255,255,0.6);
}
.btn-outline:hover {
    background: var(--white); color: var(--primary); border-color: var(--white);
    transform: translateY(-2px);
}
.btn-lg { padding: 16px 40px; font-size: 1.0625rem; }
.btn-block { width: 100%; }

/* HEADER */
.site-header {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
    background: var(--white); box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.header-top { background: var(--primary); padding: 6px 0; }
.header-top .container { display: flex; justify-content: flex-end; gap: 24px; }
.header-top a { color: rgba(255,255,255,0.85); font-size: 0.825rem; font-weight: 500; }
.header-top a:hover { color: var(--white); }
.header-main .container {
    display: flex; align-items: center; justify-content: space-between;
    gap: 32px; height: 72px;
}
.header-logo img { height: 50px; width: auto; }
.header-nav .nav-menu { display: flex; gap: 32px; }
.header-nav .nav-menu > li > a {
    color: var(--text); font-weight: 500; font-size: 0.925rem;
    padding: 8px 0; position: relative;
}
.header-nav .nav-menu > li > a::after {
    content: ''; position: absolute; bottom: 0; left: 0;
    width: 0; height: 2px; background: var(--secondary); transition: width 0.3s ease;
}
.header-nav .nav-menu > li > a:hover::after,
.header-nav .nav-menu > li.current-menu-item > a::after { width: 100%; }
.header-nav .nav-menu > li > a:hover { color: var(--secondary); }
.menu-toggle {
    display: none; flex-direction: column; gap: 5px;
    padding: 8px; background: none; border: none; cursor: pointer;
}
.menu-toggle span { display: block; width: 24px; height: 2.5px; background: var(--primary); border-radius: 2px; transition: all 0.3s ease; }
.btn-nav { padding: 10px 24px; font-size: 0.875rem; flex-shrink: 0; }

/* HERO */
.hero {
    position: relative; min-height: 100vh; display: flex;
    align-items: center; padding: 120px 0 80px; overflow: hidden;
    background: var(--primary);
}
.hero-bg {
    position: absolute; inset: 0;
    background: radial-gradient(ellipse 80% 60% at 20% 80%, var(--primary-light) 0%, transparent 60%),
                radial-gradient(ellipse 60% 50% at 80% 20%, var(--secondary) 0%, transparent 50%);
    opacity: 0.6;
}
.hero .container { position: relative; z-index: 2; }
.hero-content { text-align: center; max-width: 800px; margin: 0 auto 60px; }
.hero-badge {
    display: inline-block; background: rgba(255,255,255,0.12); color: var(--white);
    padding: 8px 20px; border-radius: 50px; font-size: 0.875rem; font-weight: 600;
    margin-bottom: 24px; border: 1px solid rgba(255,255,255,0.15);
}
.hero h1 {
    font-size: 3.5rem; font-weight: 900; color: var(--white);
    line-height: 1.1; margin-bottom: 20px; letter-spacing: -0.02em;
}
.hero-subtitle {
    font-size: 1.25rem; color: rgba(255,255,255,0.8); line-height: 1.7;
    margin-bottom: 36px; max-width: 680px; margin-left: auto; margin-right: auto;
}
.hero-subtitle strong { color: var(--white); }
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-stats {
    display: flex; justify-content: center; gap: 60px;
    padding-top: 40px; border-top: 1px solid rgba(255,255,255,0.12);
}
.stat-item { text-align: center; }
.stat-number { display: block; font-size: 2.5rem; font-weight: 800; color: var(--white); line-height: 1; margin-bottom: 6px; }
.stat-number::after { content: '+'; }
.stat-label { font-size: 0.925rem; color: rgba(255,255,255,0.65); font-weight: 500; }

/* ECOSYSTEM */
.ecosystem-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px;
}
.eco-card {
    background: var(--white); border: 1px solid #e8edf2; border-radius: var(--radius);
    padding: 36px 28px; text-align: center; transition: all 0.3s ease;
}
.eco-card:hover {
    transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent;
}
.eco-icon {
    width: 72px; height: 72px; margin: 0 auto 20px; color: var(--secondary);
    padding: 14px; background: var(--blue-100); border-radius: 16px; transition: all 0.3s ease;
}
.eco-card:hover .eco-icon { background: var(--secondary); color: var(--white); }
.eco-icon svg { width: 100%; height: 100%; }
.eco-card h3 { font-size: 1.25rem; font-weight: 700; color: var(--primary); margin-bottom: 12px; }
.eco-card p { font-size: 0.925rem; color: var(--text-light); line-height: 1.7; margin-bottom: 16px; }
.eco-link { color: var(--secondary); font-weight: 600; font-size: 0.9rem; }

/* FEATURES */
.features { background: var(--bg); }
.features-showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.features-text h2 { font-size: 2.25rem; font-weight: 800; color: var(--primary); margin-bottom: 16px; line-height: 1.2; }
.features-text > p { font-size: 1.0625rem; color: var(--text-light); margin-bottom: 28px; line-height: 1.7; }
.features-list { margin-bottom: 32px; }
.features-list li {
    display: flex; align-items: center; gap: 12px; font-size: 1rem;
    color: var(--text); margin-bottom: 12px; font-weight: 500;
}
.check-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 22px; height: 22px; background: var(--secondary); color: var(--white);
    border-radius: 50%; font-size: 0.75rem; font-weight: 700; flex-shrink: 0;
}
.mockup-device {
    max-width: 500px; margin: 0 auto; background: var(--primary);
    border-radius: 20px; padding: 16px; box-shadow: var(--shadow-lg);
}
.mockup-screen { background: var(--white); border-radius: 12px; padding: 24px; min-height: 320px; }
.mockup-header { width: 60%; height: 8px; background: var(--blue-200); border-radius: 4px; margin-bottom: 24px; }
.mockup-chart {
    height: 80px;
    background: linear-gradient(90deg, var(--blue-100) 0%, var(--blue-200) 40%, var(--blue-300) 70%, var(--secondary) 100%);
    border-radius: 8px; margin-bottom: 24px;
}
.mockup-data { display: flex; flex-direction: column; gap: 12px; }
.mockup-row { height: 12px; background: var(--blue-100); border-radius: 6px; }
.mockup-row:nth-child(2) { width: 80%; }
.mockup-row:nth-child(3) { width: 60%; }

/* SUPPORT */
.support { background: var(--bg); }
.support-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px;
}
.support-card {
    background: var(--white); border-radius: var(--radius); padding: 32px 24px;
    text-align: center; border: 1px solid #e8edf2; transition: all 0.3s ease;
}
.support-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.support-icon {
    width: 60px; height: 60px; margin: 0 auto 16px; color: var(--secondary);
    padding: 12px; background: var(--blue-100); border-radius: 14px;
}
.support-icon svg { width: 100%; height: 100%; }
.support-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--primary); margin-bottom: 10px; }
.support-card p { font-size: 0.9rem; color: var(--text-light); line-height: 1.6; }

/* TRUST */
.trust-banner { background: var(--primary); padding: 80px 0; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; text-align: center; }
.trust-number { display: block; font-size: 3rem; font-weight: 900; color: var(--white); line-height: 1; margin-bottom: 8px; }
.trust-number::after { content: '+'; }
.trust-label { font-size: 1rem; color: rgba(255,255,255,0.7); font-weight: 500; }

/* ABOUT */
.about-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-text h2 { font-size: 2.25rem; font-weight: 800; color: var(--primary); margin-bottom: 20px; }
.about-text p { font-size: 1.0625rem; color: var(--text-light); line-height: 1.7; margin-bottom: 16px; }
.about-certs { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.cert-badge {
    padding: 8px 18px; background: var(--blue-100); color: var(--secondary);
    border-radius: 50px; font-size: 0.85rem; font-weight: 600; border: 1px solid var(--blue-200);
}
.about-image-placeholder svg { width: 100%; height: auto; border-radius: 20px; }

/* CONTACT */
.contact { background: var(--bg); }
.contact-wrapper { display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px; align-items: start; }
.contact-form { background: var(--white); padding: 40px; border-radius: 20px; box-shadow: var(--shadow); }
.form-row { margin-bottom: 16px; }
.form-row input, .form-row textarea {
    width: 100%; padding: 14px 16px; border: 1.5px solid #dde1e6; border-radius: 8px;
    font-family: var(--font); font-size: 0.95rem; color: var(--text); transition: all 0.3s ease;
    background: var(--white);
}
.form-row input:focus, .form-row textarea:focus {
    outline: none; border-color: var(--secondary); box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.12);
}
.form-row.form-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-checkbox label { display: flex; align-items: center; font-size: 0.875rem; color: var(--text-light); cursor: pointer; }
.form-checkbox input { width: auto; margin-right: 8px; }
.contact-info { display: flex; flex-direction: column; gap: 20px; }
.contact-card {
    background: var(--white); padding: 24px; border-radius: var(--radius);
    box-shadow: 0 1px 3px rgba(0,0,0,0.08); border: 1px solid #e8edf2;
}
.contact-card h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-light); margin-bottom: 8px; font-weight: 600; }
.contact-card a, .contact-card p { font-size: 1rem; color: var(--text); font-weight: 500; }
.contact-card a:hover { color: var(--secondary); }

/* FAQ */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 8px; }
.faq-item { border: 1px solid #e8edf2; border-radius: var(--radius); overflow: hidden; transition: all 0.3s ease; }
.faq-question {
    width: 100%; text-align: left; padding: 20px 24px; background: none; border: none;
    font-family: var(--font); font-size: 1.05rem; font-weight: 600; color: var(--primary);
    cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-question::after { content: '+'; font-size: 1.5rem; font-weight: 300; color: var(--secondary); transition: all 0.3s ease; flex-shrink: 0; }
.faq-item.active .faq-question::after { content: '−'; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease; }
.faq-item.active .faq-answer { max-height: 300px; padding: 0 24px 20px; }
.faq-answer p { font-size: 0.95rem; color: var(--text-light); line-height: 1.7; }

/* FOOTER */
.site-footer { background: var(--primary-dark); color: rgba(255,255,255,0.8); padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 48px; padding-bottom: 40px; }
.footer-brand img { margin-bottom: 16px; }
.footer-brand p { font-size: 0.9rem; line-height: 1.7; color: rgba(255,255,255,0.6); }
.footer-social { display: flex; gap: 12px; margin-top: 20px; }
.footer-social a {
    display: flex; align-items: center; justify-content: center; width: 40px; height: 40px;
    background: rgba(255,255,255,0.08); border-radius: 50%; color: rgba(255,255,255,0.7); transition: all 0.3s ease;
}
.footer-social a:hover { background: var(--secondary); color: var(--white); }
.footer-social svg { width: 18px; height: 18px; fill: currentColor; }
.footer-col h4 { color: var(--white); font-size: 1rem; font-weight: 700; margin-bottom: 20px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: rgba(255,255,255,0.6); font-size: 0.9rem; transition: all 0.3s ease; }
.footer-col ul li a:hover { color: var(--accent); }
.footer-contact-info li { display: flex; align-items: flex-start; gap: 8px; color: rgba(255,255,255,0.6); font-size: 0.9rem; }
.footer-icon { flex-shrink: 0; }
.footer-bottom { padding: 24px 0; border-top: 1px solid rgba(255,255,255,0.08); display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem; color: rgba(255,255,255,0.5); }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { color: rgba(255,255,255,0.5); font-size: 0.85rem; }
.footer-legal a:hover { color: var(--accent); }

/* RESPONSIVE */
@media (max-width: 1024px) {
    .hero h1 { font-size: 2.75rem; }
    .features-showcase { gap: 40px; }
    .about-wrapper { gap: 40px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 768px) {
    .section { padding: 60px 0; }
    .section-header h2 { font-size: 2rem; }
    .section-header { margin-bottom: 40px; }
    .header-top { display: none; }
    .btn-nav { display: none; }
    .menu-toggle { display: flex; }
    .header-nav .nav-menu {
        display: none; position: absolute; top: 72px; left: 0; width: 100%;
        background: var(--white); flex-direction: column; padding: 20px 24px; gap: 16px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    }
    .header-nav .nav-menu.active { display: flex; }
    .hero { min-height: auto; padding: 100px 0 60px; }
    .hero h1 { font-size: 2.25rem; }
    .hero-subtitle { font-size: 1.0625rem; }
    .hero-stats { flex-direction: column; gap: 24px; align-items: center; }
    .hero-cta { flex-direction: column; align-items: stretch; }
    .hero-cta .btn { text-align: center; }
    .features-showcase { grid-template-columns: 1fr; }
    .features-text h2 { font-size: 1.75rem; }
    .mockup-device { max-width: 100%; }
    .about-wrapper { grid-template-columns: 1fr; }
    .about-image { order: -1; }
    .contact-wrapper { grid-template-columns: 1fr; }
    .contact-form { padding: 24px; }
    .form-row.form-duo { grid-template-columns: 1fr; }
    .trust-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
    .footer-legal { justify-content: center; flex-wrap: wrap; }
}
@media (max-width: 480px) {
    .hero h1 { font-size: 1.75rem; }
    .section-header h2 { font-size: 1.5rem; }
    .ecosystem-grid { grid-template-columns: 1fr; }
    .support-grid { grid-template-columns: 1fr; }
    .trust-grid { grid-template-columns: 1fr; }
}

/* ANIMATIONS */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.hero-content { animation: fadeInUp 0.8s ease forwards; }
.hero-stats { animation: fadeInUp 0.8s ease 0.3s both; }
