/* ============================================
   TECNOILCONSULTING - Estilos compartidos páginas SEO
   Generado a partir de gobierno-de-datos-ecuador.html
   ============================================ */

:root {
    --color-petroleo: #36454F;
    --color-electricidad: #FF8C00;
    --color-tecnologia: #E0E0E0;
    --color-hexagono-borde: #4A5568;
    --color-hexagono-fondo: #FFFFFF;
    --color-gris-oscuro: #2D3748;
    --color-gris-medio: #4A5568;
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --text-primary: #333;
    --text-secondary: #666;
    --card-bg: #ffffff;
    --border-color: #e9ecef;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
}

/* Header y Navegación */
.header {
    background: linear-gradient(135deg, var(--color-petroleo) 0%, var(--color-gris-medio) 100%);
    color: white;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.8rem;
    font-weight: bold;
    color: #fff;
}

.logo-svg {
    width: 40px;
    height: 40px;
}

.hexagon-shape {
    fill: var(--color-hexagono-fondo);
    stroke: var(--color-hexagono-borde);
    stroke-width: 4;
}
.oil-element {
    fill: var(--color-petroleo);
    opacity: 0.85;
}
.electricity-element {
    fill: none;
    stroke: var(--color-electricidad);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
    animation: pulse-electricity 3s infinite ease-in-out;
}
.tech-element { fill: var(--color-tecnologia); }
.tech-line {
    stroke: var(--color-tecnologia);
    stroke-width: 2;
    stroke-linecap: round;
}

@keyframes pulse-electricity {
    0%, 100% { opacity: 0.7; transform: scale(0.98); }
    50% { opacity: 1; transform: scale(1.02); }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
}

.nav-menu a:hover {
    color: var(--color-electricidad);
}

/* Dropdown de Servicios */
.has-dropdown {
    position: relative;
}

.dropdown-caret {
    font-size: 0.65rem;
    margin-left: 0.35rem;
}

.dropdown-menu {
    display: none;
    list-style: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 260px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.18);
    padding: 0.5rem 0;
    margin-top: 0.6rem;
    z-index: 1001;
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -0.6rem;
    left: 0;
    right: 0;
    height: 0.6rem;
}

.dropdown-menu a {
    color: var(--color-petroleo) !important;
    padding: 0.7rem 1.3rem;
    display: block;
    font-weight: 500;
    font-size: 0.95rem;
    white-space: nowrap;
}

.dropdown-menu a:hover {
    background: var(--bg-secondary);
    color: var(--color-electricidad) !important;
}

.dropdown-menu .dropdown-all a {
    border-top: 1px solid var(--border-color);
    margin-top: 0.3rem;
    padding-top: 0.8rem;
    font-weight: 600;
    color: var(--color-electricidad) !important;
}

@media (min-width: 769px) {
    .has-dropdown:hover .dropdown-menu {
        display: block;
    }
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* CTA */
.cta-primary {
    display: inline-block;
    background: var(--color-electricidad);
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(255, 140, 0, 0.3);
    border: none;
    cursor: pointer;
}

.cta-primary:hover {
    background: #e67e00;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 140, 0, 0.4);
}

.cta-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* Secciones */
.section {
    padding: 80px 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

.section-title h2 {
    font-size: 2.5rem;
    color: var(--color-petroleo);
    margin-bottom: 1rem;
}

.section-title p {
    font-size: 1.2rem;
    color: var(--color-gris-medio);
    max-width: 600px;
    margin: 0 auto;
}

/* Estilos adicionales páginas de servicio SEO */
.breadcrumb {
    background: var(--bg-secondary);
    padding: 90px 0 0;
}
.breadcrumb-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}
.breadcrumb-inner a {
    color: var(--color-gris-medio);
    text-decoration: none;
}
.breadcrumb-inner a:hover {
    color: var(--color-electricidad);
}
.breadcrumb-inner span {
    color: var(--color-petroleo);
    font-weight: 600;
}

.service-hero {
    background: linear-gradient(135deg, var(--color-gris-medio) 0%, var(--color-petroleo) 100%);
    color: #fff;
    padding: 60px 0 70px;
    text-align: center;
}
.service-hero .container {
    max-width: 900px;
}
.service-hero h1 {
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 1.2rem;
}
.service-hero p {
    font-size: 1.25rem;
    opacity: 0.92;
    margin-bottom: 2rem;
}

.lead-text {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 850px;
    margin: 0 auto 1.5rem;
}
.prose {
    max-width: 850px;
    margin: 0 auto;
}
.prose h2 {
    font-size: 2rem;
    color: var(--color-petroleo);
    margin: 2.5rem 0 1rem;
}
.prose h3 {
    font-size: 1.35rem;
    color: var(--color-gris-oscuro);
    margin: 1.8rem 0 0.8rem;
}
.prose p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 1.05rem;
}
.prose ul {
    margin: 1rem 0 1.5rem 1.2rem;
}
.prose ul li {
    color: var(--text-secondary);
    padding: 0.35rem 0;
}
.prose strong {
    color: var(--color-gris-oscuro);
}

.pain-grid, .benefit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.pain-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.6rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.07);
    border-top: 3px solid #dc3545;
}
.pain-card i {
    font-size: 1.8rem;
    color: #dc3545;
    margin-bottom: 0.7rem;
}
.pain-card h3 {
    font-size: 1.1rem;
    color: var(--color-petroleo);
    margin-bottom: 0.5rem;
}
.pain-card p {
    color: var(--text-secondary);
    font-size: 0.98rem;
}

.benefit-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.6rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.07);
    border-left: 4px solid var(--color-electricidad);
}
.benefit-card i {
    font-size: 1.8rem;
    color: var(--color-electricidad);
    margin-bottom: 0.7rem;
}
.benefit-card h3 {
    font-size: 1.1rem;
    color: var(--color-petroleo);
    margin-bottom: 0.5rem;
}
.benefit-card p {
    color: var(--text-secondary);
    font-size: 0.98rem;
}

.method-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
    counter-reset: step;
}
.method-step {
    position: relative;
    background: #fff;
    border-radius: 12px;
    padding: 2rem 1.5rem 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.07);
}
.method-step::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    top: -18px;
    left: 1.5rem;
    width: 40px;
    height: 40px;
    background: var(--color-electricidad);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}
.method-step h3 {
    color: var(--color-petroleo);
    margin: 0.6rem 0 0.5rem;
    font-size: 1.15rem;
}
.method-step p {
    color: var(--text-secondary);
    font-size: 0.98rem;
}

.faq-item {
    max-width: 850px;
    margin: 0 auto 1rem;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.06);
    overflow: hidden;
}
.faq-q {
    padding: 1.2rem 1.5rem;
    font-weight: 600;
    color: var(--color-petroleo);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.05rem;
}
.faq-q::after {
    content: "+";
    font-size: 1.5rem;
    color: var(--color-electricidad);
}
.faq-item.open .faq-q::after {
    content: "−";
}
.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 1.5rem;
    color: var(--text-secondary);
}
.faq-item.open .faq-a {
    max-height: 500px;
    padding: 0 1.5rem 1.3rem;
}

.cta-band {
    background: linear-gradient(135deg, var(--color-gris-medio) 0%, var(--color-petroleo) 100%);
    color: #fff;
    text-align: center;
    padding: 60px 0;
}
.cta-band h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #fff;
}
.cta-band p {
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 1.8rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}
.related-card {
    display: block;
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.07);
    text-decoration: none;
    border-left: 4px solid var(--color-electricidad);
    transition: transform 0.3s;
}
.related-card:hover {
    transform: translateY(-5px);
}
.related-card h3 {
    color: var(--color-petroleo);
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
}
.related-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.service-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--color-electricidad);
    font-weight: 600;
    text-decoration: none;
}
.service-link:hover {
    color: var(--color-petroleo);
}

/* Footer */
.footer {
    background: var(--color-petroleo);
    color: white;
    text-align: center;
    padding: 2rem 0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
        flex-shrink: 0;
    }

    .nav-container {
        padding: 0 1rem;
    }

    .logo {
        font-size: 1.15rem;
        gap: 0.4rem;
        min-width: 0;
    }

    .logo-svg {
        width: 32px;
        height: 32px;
        flex-shrink: 0;
    }

    .dropdown-caret {
        float: right;
        margin-top: 0.3rem;
    }

    .dropdown-menu {
        display: none;
        position: static;
        box-shadow: none;
        background: rgba(0,0,0,0.15);
        border-radius: 6px;
        margin: 0.5rem 0 0;
        padding: 0.3rem 0;
    }

    .dropdown-menu a {
        color: #fff !important;
    }

    .dropdown-menu a:hover {
        background: rgba(255,255,255,0.08);
    }

    .has-dropdown.dropdown-open .dropdown-menu {
        display: block;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--color-petroleo);
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }

    .nav-menu.active {
        display: flex;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .service-hero h1 {
        font-size: 2rem;
    }
}

.hidden { display: none; }
.show { display: block; }

/* Estilos para imágenes de introducción */
.intro-image-container {
    margin: 2.5rem 0;
    text-align: center;
    width: 100%;
}

.intro-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
}

.intro-image:hover {
    transform: scale(1.01);
}
