/* ============================================
   H&D Systems - Hoja de Estilos Principal
   Implementación Odoo & Controlisis ERP
   ============================================ */

:root {
    --primary-color: #0d2b54;
    --secondary-color: #e8491d;
    --accent-color: #00a8cc;
    --light-bg: #f4f7fa;
    --dark-bg: #1a1a2e;
    --text-dark: #2c3e50;
    --text-light: #6b7b8d;
    --white: #ffffff;
    --gradient-primary: linear-gradient(135deg, #0d2b54 0%, #1a4a8a 100%);
    --gradient-accent: linear-gradient(135deg, #e8491d 0%, #ff7a45 100%);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.16);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: #eb653f;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   HEADER & NAVEGACION
   ============================================ */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
}

.logo {
    font-size: 26px;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--secondary-color);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    position: relative;
    padding: 8px 0;
}

.nav-link:hover,
.nav-link.active {
    color: var(--secondary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.btn-primary {
    display: inline-block;
    padding: 12px 28px;
    background: var(--gradient-accent);
    color: var(--white);
    font-size: 15px;
    font-weight: 700;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(232, 73, 29, 0.4);
}

.btn-secondary {
    display: inline-block;
    padding: 12px 28px;
    background: transparent;
    color: var(--primary-color);
    font-size: 15px;
    font-weight: 700;
    border-radius: 50px;
    border: 2px solid var(--primary-color);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    padding: 160px 0 100px;
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(232, 73, 29, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 168, 204, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-text h1 {
    font-size: 48px;
    font-weight: 800;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-text h1 span {
    color: var(--secondary-color);
}

.hero-text p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 35px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-image {
    text-align: center;
}

.hero-image .hero-visual {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 40px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-visual .erp-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    margin-bottom: 20px;
}

.hero-visual .erp-badge .badge-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.hero-visual .erp-badge span {
    color: var(--white);
    font-weight: 700;
    font-size: 16px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.stat-item {
    text-align: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-sm);
}

.stat-number {
    font-size: 28px;
    font-weight: 800;
    color: var(--secondary-color);
}

.stat-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 4px;
}

/* ============================================
   SECCIONES GENERALES
   ============================================ */

.section {
    padding: 90px 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-badge {
    display: inline-block;
    padding: 6px 18px;
    background: rgba(232, 73, 29, 0.1);
    color: var(--secondary-color);
    font-size: 14px;
    font-weight: 700;
    border-radius: 50px;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title {
    font-size: 38px;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1.25;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 17px;
    color: var(--text-light);
    line-height: 1.8;
}

/* ============================================
   SERVICIOS / SOLUCIONES
   ============================================ */

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 40px;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s ease;
    border: 1px solid #eef2f7;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--gradient-accent);
    transition: height 0.4s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-card:hover::before {
    height: 100%;
}

.service-icon {
    width: 65px;
    height: 65px;
    background: rgba(232, 73, 29, 0.08);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 24px;
}

.service-card h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 14px;
}

.service-card p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 20px;
}

.service-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.service-features li {
    font-size: 14px;
    color: var(--text-dark);
    padding-left: 24px;
    position: relative;
}

.service-features li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: 700;
}

/* ============================================
   ODOO SECTION
   ============================================ */

.controlisis-erp-section {
    background: var(--light-bg);
}

.controlisis-erp-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.controlisis-erp-text h2 {
    font-size: 36px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.25;
}

.controlisis-erp-text p {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 30px;
}

.module-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.module-item {
    padding: 4px 20px;
    background: var(--white);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.module-item:hover {
    background: var(--primary-color);
    color: var(--white);
}

.module-icon {
    width: 28px;
    height: 28px;
    background: rgba(232, 73, 29, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.controlisis-erp-visual {
    position: relative;
}

.controlisis-erp-card-main {
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    padding: 50px;
    color: var(--white);
    text-align: center;
}

.controlisis-erp-card-main h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
}

.controlisis-erp-card-main p {
    font-size: 15px;
    opacity: 0.8;
    line-height: 1.7;
    margin-bottom: 30px;
}

.controlisis-erp-modules-visual {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.mini-module {
    padding: 16px 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    font-size: 12px;
    text-align: center;
    color: var(--white);
    transition: all 0.3s ease;
}

.mini-module:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ============================================
   CONTROLISIS SECTION
   ============================================ */

.odoo-section {
    position: relative;
    overflow: hidden;
}

.odoo-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.odoo-visual {
    order: -1;
}

.odoo-card-main {
    background: linear-gradient(135deg, #2d6a4f 0%, #40916c 100%);
    border-radius: var(--radius-lg);
    padding: 50px;
    color: var(--white);
    text-align: center;
}

.odoo-card-main h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
}

.odoo-card-main p {
    font-size: 15px;
    opacity: 0.85;
    line-height: 1.7;
    margin-bottom: 30px;
}

.odoo-modules-visual {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.cis-module {
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    font-size: 14px;
    text-align: center;
    color: var(--white);
    transition: all 0.3s ease;
}

.cis-module:hover {
    background: rgba(255, 255, 255, 0.2);
}

.odoo-text h2 {
    font-size: 36px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.25;
}

.odoo-text p {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 30px;
}

.benefits-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.benefit-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: rgba(232, 73, 29, 0.08);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.benefit-text h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 4px;
}

.benefit-text p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 0;
    line-height: 1.6;
}

/* ============================================
   PROCESO / METODOLOGIA
   ============================================ */

.process-section {
    background: var(--primary-color);
    color: var(--white);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.process-step {
    text-align: center;
    position: relative;
    padding: 30px 20px;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--gradient-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 800;
    margin: 0 auto 20px;
}

.process-step h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
}

.process-step p {
    font-size: 14px;
    opacity: 0.75;
    line-height: 1.7;
}

/* ============================================
   TESTIMONIOS / NUMEROS
   ============================================ */

.numbers-section {
    background: var(--light-bg);
}

.numbers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.number-card {
    text-align: center;
    padding: 40px 20px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.number-value {
    font-size: 42px;
    font-weight: 800;
    color: var(--secondary-color);
    margin-bottom: 8px;
}

.number-label {
    font-size: 15px;
    color: var(--text-light);
    font-weight: 600;
}

/* ============================================
   CTA SECTION
   ============================================ */

.cta-section {
    padding: 90px 0;
    background: var(--gradient-primary);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(232, 73, 29, 0.2) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    font-size: 38px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 35px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   CONTACTO
   ============================================ */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.contact-info p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 30px;
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background: rgba(232, 73, 29, 0.08);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.contact-detail h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 2px;
}

.contact-detail p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 0;
}

.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #eef2f7;
    border-radius: var(--radius-sm);
    font-size: 15px;
    color: var(--text-dark);
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 4px rgba(232, 73, 29, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: var(--dark-bg);
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand .logo {
    color: var(--white);
    font-size: 28px;
    margin-bottom: 16px;
    display: inline-block;
}

.footer-brand p {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--secondary-color);
}

.footer-col h4 {
    color: var(--white);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    font-size: 14px;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 30px;
    text-align: center;
    font-size: 14px;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
    .hero-text h1,
    .section-title,
    .controlisis-erp-text h2,
    .controlisis-text h2 {
        font-size: 34px;
    }

    .process-grid,
    .numbers-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        padding: 80px 30px 30px;
        gap: 20px;
        box-shadow: var(--shadow-lg);
        transition: right 0.4s ease;
    }

    .nav-menu.active {
        right: 0;
    }

    .hero-content,
    .controlisis-erp-content,
    .controlisis-content,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero {
        padding: 130px 0 70px;
    }

    .hero-text h1 {
        font-size: 32px;
    }

    .services-grid,
    .process-grid,
    .numbers-grid {
        grid-template-columns: 1fr;
    }

    .module-grid {
        grid-template-columns: 1fr;
    }

    .controlisis-erp-modules-visual {
        grid-template-columns: repeat(2, 1fr);
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 28px;
    }

    .cta-content h2 {
        font-size: 28px;
    }

    .controlisis-visual {
        order: 0;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 26px;
    }

    .section-title {
        font-size: 24px;
    }

    .cta-content h2 {
        font-size: 24px;
    }

    .number-value {
        font-size: 32px;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }
}
