/* =========================================================
   DICOELEC - ESTILOS GENERALES
   Sitio web estático
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f5f8fb;
    color: #465665;
    overflow-x: hidden;
}

img {
    max-width: 100%;
}

a {
    transition: all 0.25s ease;
}

.container {
    width: 100%;
    max-width: 1150px;
    margin: 0 auto;
    padding-left: 15px;
    padding-right: 15px;
}


/* =========================================================
   HEADER
   ========================================================= */

.header {
    width: 100%;
    background: #071b33;
    position: relative;
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.header-inner {
    max-width: 1150px;
    min-height: 78px;
    margin: 0 auto;
    padding: 0 15px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}


/* LOGO */

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-box {
    width: 42px;
    height: 42px;
    border: 2px solid #00a8ff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00a8ff;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 1px;
}

.logo-text {
    color: #fff;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 2px;
}


/* NAVIGATION */

.navigation {
    display: flex;
    align-items: center;
    gap: 25px;
}

.navigation a {
    color: #d9e5ef;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.4px;
}

.navigation a:hover {
    color: #00a8ff;
}

.contact-button {
    background: #0879c9;
    color: #fff !important;
    padding: 10px 17px;
    border-radius: 4px;
}

.contact-button:hover {
    background: #00a8ff;
}


/* MOBILE MENU BUTTON */

.menu-button {
    display: none;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 27px;
    cursor: pointer;
    padding: 5px;
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
    position: relative;
    min-height: 650px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    z-index: 0;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(4,18,35,0.95) 0%,
            rgba(4,18,35,0.78) 40%,
            rgba(4,18,35,0.30) 75%,
            rgba(4,18,35,0.08) 100%
        );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 90px 22px 190px;
}

.hero-text {
    max-width: 600px;
}

.hero-label {
    color: #8fdcff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 18px;
}

.hero h1 {
    margin: 0 0 18px;
    color: #fff;
    font-size: clamp(38px, 7vw, 64px);
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -1px;
}

.hero h1 span {
    color: #00a8ff;
}

.hero-line {
    width: 45px;
    height: 3px;
    background: #00a8ff;
    margin-bottom: 20px;
}

.hero p {
    margin: 0;
    max-width: 520px;
    color: #e4edf5;
    font-size: clamp(15px, 2.5vw, 18px);
    line-height: 1.65;
}


/* HERO BUTTONS */

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.button {
    display: inline-block;
    padding: 12px 22px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
}

.button-red {
    background: #0879c9;
    color: #fff;
}

.button-red:hover {
    background: #00a8ff;
}

.button-white {
    background: #fff;
    color: #071b33;
}

.button-white:hover {
    background: #e8f4fb;
}


/* HERO STATS */

.hero-stats {
    position: absolute;
    z-index: 3;
    left: 0;
    right: 0;
    bottom: 0;

    background: rgba(4,18,35,0.92);
    border-top: 1px solid rgba(255,255,255,0.14);
}

.hero-stats-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 17px 10px;

    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
}

.hero-stat {
    padding: 3px 10px;
    border-right: 1px solid rgba(255,255,255,0.14);
}

.hero-stat:last-child {
    border-right: 0;
}

.hero-stat strong {
    display: block;
    color: #00a8ff;
    font-size: 25px;
    font-weight: 800;
}

.hero-stat:last-child strong {
    color: #fff;
}

.hero-stat span {
    display: block;
    color: #b9c9d8;
    font-size: 9px;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: .5px;
}


/* =========================================================
   GENERAL SECTIONS
   ========================================================= */

.section {
    width: 100%;
    padding: 70px 15px;
}

.section-light {
    background: #f5f8fb;
}

.section-white {
    background: #fff;
}

.section-dark {
    background: #071b33;
    color: #fff;
}

.section-label {
    color: #0879c9;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 10px;
}

.section-dark .section-label {
    color: #00a8ff;
}

.section h2 {
    color: #071b33;
    font-size: 36px;
    line-height: 1.2;
    margin: 0 0 15px;
}

.section-dark h2 {
    color: #fff;
}

.section-text {
    color: #566777;
    font-size: 16px;
    line-height: 1.75;
}

.section-dark .section-text {
    color: #cbd7e3;
}


/* =========================================================
   TWO COLUMNS
   ========================================================= */

.two-columns {
    max-width: 1150px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 55px;
    align-items: center;
}


/* =========================================================
   CARDS
   ========================================================= */

.card {
    background: #fff;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 8px 30px rgba(7,27,51,0.08);
}

.card h3 {
    color: #071b33;
    margin: 0 0 10px;
}

.card p {
    color: #687887;
    line-height: 1.7;
}


/* =========================================================
   SERVICES
   ========================================================= */

.services-header {
    max-width: 750px;
    margin: 0 auto 40px;
    text-align: center;
}

.services-header h2 {
    color: #071b33;
    font-size: 36px;
    margin: 0 0 15px;
}

.services-header p {
    color: #687887;
    font-size: 16px;
    line-height: 1.7;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.service-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(7,27,51,0.08);
}

.service-card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
}

.service-content {
    padding: 25px;
}

.service-number {
    color: #0879c9;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
}

.service-card h3 {
    color: #071b33;
    font-size: 27px;
    margin: 8px 0 12px;
}

.service-card p {
    color: #566777;
    font-size: 15px;
    line-height: 1.8;
}


/* =========================================================
   QUALITY
   ========================================================= */

.quality-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 25px;
}

.quality-item {
    background: #fff;
    border-left: 3px solid #0879c9;
    padding: 17px 20px;
}

.quality-item strong {
    color: #071b33;
    display: block;
    margin-bottom: 5px;
}

.quality-item span {
    color: #687887;
    font-size: 14px;
    line-height: 1.5;
}


/* =========================================================
   CTA
   ========================================================= */

.cta {
    background: #0879c9;
    color: #fff;
    padding: 50px 15px;
}

.cta-inner {
    max-width: 1000px;
    margin: 0 auto;

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
}

.cta h2 {
    color: #fff;
    margin: 0 0 8px;
}

.cta p {
    color: #e4f4ff;
    margin: 0;
    line-height: 1.6;
}


/* =========================================================
   FOOTER
   ========================================================= */

.footer {
    width: 100%;
    background: #071b33;
    color: #fff;
    padding: 50px 15px 20px;
}

.footer-inner {
    max-width: 1150px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: 1.2fr 1fr 1.2fr;
    gap: 40px;
}

.footer-logo {
    color: #fff;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.footer p {
    color: #a0aec0;
    font-size: 14px;
    line-height: 1.7;
}

.footer h4 {
    display: inline-block;
    color: #fff;
    font-size: 16px;
    margin: 0 0 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #0879c9;
}

.footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer li {
    margin-bottom: 10px;
}

.footer a {
    color: #a0aec0;
    text-decoration: none;
}

.footer a:hover {
    color: #00a8ff;
}

.footer-contact strong {
    color: #fff;
}

.footer-bottom {
    max-width: 1150px;
    margin: 40px auto 0;
    padding-top: 20px;

    border-top: 1px solid rgba(255,255,255,0.1);

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;

    color: #a0aec0;
    font-size: 13px;
}

.footer-bottom p {
    margin: 0;
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.footer-legal span {
    color: #555;
}


/* =========================================================
   CONTACTO
   ========================================================= */

.contact-page {
    width: 100%;
    background: #071b33;
    color: #fff;
    padding: 60px 15px;
}

.contact-container {
    max-width: 900px;
    margin: 0 auto;
}

.contact-title {
    text-align: center;
    margin-bottom: 35px;
}

.contact-title h1 {
    color: #fff;
    font-size: 38px;
    margin: 0 0 15px;
}

.contact-title p {
    color: #cbd7e3;
    font-size: 15px;
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 20px;
}

.contact-box {
    background: #0b2748;
    border-radius: 8px;
    padding: 25px;
}

.contact-box h2 {
    color: #fff;
    font-size: 20px;
    margin: 0 0 18px;
}

.contact-item {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.12);
}

.contact-item:last-child {
    border-bottom: 0;
}

.contact-label {
    color: #00a8ff;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 4px;
}

.contact-item a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.contact-item a:hover {
    color: #00a8ff;
}

.contact-address {
    color: #d6e0e9;
    font-size: 13px;
    line-height: 1.6;
}

.contact-button-large {
    display: inline-block;
    background: #0879c9;
    color: #fff;
    text-decoration: none;
    padding: 11px 22px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
}

.contact-button-large:hover {
    background: #00a8ff;
}


/* =========================================================
   ANIMACIONES
   ========================================================= */

.card,
.service-card,
.quality-item {
    opacity: 1;
    transform: translateY(0);
}


/* =========================================================
   RESPONSIVE - TABLET
   ========================================================= */

@media (max-width: 900px) {

    .navigation {
        gap: 15px;
    }

    .two-columns {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   RESPONSIVE - MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .header-inner {
        min-height: 68px;
    }

    .logo-box {
        width: 36px;
        height: 36px;
        font-size: 12px;
    }

    .logo-text {
        font-size: 19px;
    }

    .menu-button {
        display: block;
    }

    .navigation {
        display: none;

        position: absolute;
        top: 68px;
        left: 0;
        right: 0;

        background: #071b33;
        padding: 15px;

        flex-direction: column;
        align-items: stretch;
        gap: 0;

        border-top: 1px solid rgba(255,255,255,0.08);
        box-shadow: 0 10px 25px rgba(0,0,0,0.25);
    }

    .navigation.open {
        display: flex;
    }

    .navigation a {
        display: block;
        padding: 13px 10px;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }

    .navigation .contact-button {
        text-align: center;
        margin-top: 10px;
        border-bottom: 0;
    }


    /* HERO */

    .hero {
        min-height: 620px;
    }

    .hero-content {
        padding: 65px 20px 175px;
    }

    .hero h1 {
        font-size: 42px;
    }

    .hero p {
        font-size: 15px;
    }

    .hero-stats-inner {
        grid-template-columns: repeat(2, 1fr);
        padding: 12px 5px;
    }

    .hero-stat {
        padding: 8px 5px;
        border-bottom: 1px solid rgba(255,255,255,0.12);
    }

    .hero-stat:nth-child(2) {
        border-right: 0;
    }

    .hero-stat:nth-child(3),
    .hero-stat:nth-child(4) {
        border-bottom: 0;
    }

    .hero-stat strong {
        font-size: 20px;
    }


    /* SECTIONS */

    .section {
        padding: 50px 15px;
    }

    .section h2 {
        font-size: 30px;
    }

    .services-header h2 {
        font-size: 30px;
    }

    .quality-list {
        grid-template-columns: 1fr;
    }


    /* FOOTER */

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }


    /* CONTACT */

    .contact-page {
        padding: 45px 12px;
    }

    .contact-title h1 {
        font-size: 30px;
    }

    .contact-box {
        padding: 20px 15px;
    }
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 400px) {

    .logo-text {
        font-size: 17px;
    }

    .hero h1 {
        font-size: 37px;
    }

    .hero-content {
        padding-left: 17px;
        padding-right: 17px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .button {
        text-align: center;
    }

    .hero-stat strong {
        font-size: 18px;
    }
}