@import url('https://fonts.googleapis.com/css2?family=Coiny&family=Roboto:wght@400;700&display=swap');

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --amarillo: #F7E30A;
    --negro: #111111;
    --blanco: #FFFFFF;
    --fondo: #EFEFEF;
    --gris-borde: #CCCCCC;
    --gris-texto: #333333;
    --max: 1040px;
    --pad: 48px;
}

html, body {
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Roboto', sans-serif;
    background: var(--fondo);
    color: var(--negro);
    font-size: 14px;
    line-height: 1.6;
}

h1, h2, h3 {
    font-family: 'Coiny', cursive;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* ===== NAV ===== */
nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px var(--pad);
    max-width: var(--max);
    margin: 0 auto;
}

nav .logo {
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.5px;
    text-transform: lowercase;
}

.nav-links {
    display: flex;
    gap: 48px;
    font-size: 14px;
    font-weight: 400;
}

.nav-links a:hover {
    text-decoration: underline;
}

/* ===== INICIO ===== */
.inicio {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 32px;
    padding: 40px var(--pad) 60px;
    max-width: var(--max);
    margin: 0 auto;
}

.inicio-text h1 {
    display: flex;
    flex-direction: column;
    margin-bottom: 14px;
    line-height: 1;
}

.inicio-text h1 small {
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 2px;
}

.inicio-text h1 img {
    width: 280px;
    height: auto;
}

.tag {
    display: inline-block;
    background: var(--amarillo);
    font-size: 12px;
    font-weight: 400;
    height: 23px;
    line-height: 23px;
    padding: 0 10px;
    margin-bottom: 22px;
    white-space: nowrap;
}

.inicio-text > p {
    font-size: 14px;
    color: var(--gris-texto);
    line-height: 1.65;
}

.inicio-img {
    width: 100%;
    height: 360px;
    overflow: hidden;
}

.inicio-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== DIVISOR ===== */
.dividir {
    border: none;
    border-top: 1.5px solid var(--gris-borde);
    max-width: var(--max);
    margin: 0 auto;
}

/* ===== INTRO ===== */
.intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: var(--max);
    margin: 0 auto;
    border-top: 1.5px solid var(--gris-borde);
    border-bottom: 1.5px solid var(--gris-borde);
}

.intro-col {
    padding: 36px var(--pad);
}

.intro-col:first-child {
    border-right: 1.5px solid var(--gris-borde);
}

.intro-label {
    display: inline-block;
    background: var(--amarillo);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.2px;
}

.intro-col p {
    font-size: 13px;
    color: var(--gris-texto);
    line-height: 1.75;
}

/* ===== SERVICIOS ===== */
.servicios {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    padding: 60px var(--pad);
    max-width: var(--max);
    margin: 0 auto;
    border-bottom: 1.5px solid var(--gris-borde);
}

.servicios-img {
    display: flex;
    align-items: center;
    justify-content: center;
}

.servicios-img img {
    width: 100%;
    max-width: 400px;
}

.servicios-content h2 {
    font-size: 20px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 24px;
}

.servicios-content ol {
    list-style: none;
    padding: 0;
    font-size: 14px;
    color: var(--gris-texto);
}

.servicios-content ol li {
    padding: 10px 0;
    border-bottom: 1px solid var(--gris-borde);
}

.servicios-content li:last-child {
    display: inline-block;
    background: var(--amarillo);
    color: var(--negro);
    font-weight: 700;
    padding: 4px 10px;
    margin-top: 8px;
    border-bottom: none;
}

/* ===== CONTACTO ===== */
.contacto {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
    padding: 60px var(--pad);
    max-width: var(--max);
    margin: 0 auto;
    border-bottom: 1.5px solid var(--gris-borde);
}

.contacto-izquierda {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
}

.contacto-izquierda h2 {
    font-size: 30px;
    font-weight: 900;
    line-height: 1.65;
    color: var(--blanco);
    background: var(--negro);
    padding: 2px 8px;
    display: inline;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

a.btn-enviar {
    display: inline-block;
    background: var(--amarillo);
    color: var(--negro);
    font-weight: 700;
    font-size: 13px;
    padding: 10px 22px;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: opacity 0.2s;
}

a.btn-enviar:hover {
    opacity: 0.8;
}

.contacto form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 100%;
}

.form label {
    font-size: 13px;
    font-weight: 400;
    color: var(--negro);
}

.form label::after {
    content: " *";
    color: #cc0000;
    font-weight: 700;
}

.form input,
.form textarea {
    width: 100%;
    border: 1.5px solid #bbbbbb;
    padding: 9px 12px;
    font-family: inherit;
    font-size: 13px;
    outline: none;
    background: var(--blanco);
    border-radius: 0;
    transition: border-color 0.2s;
}

.form input:focus,
.form textarea:focus {
    border-color: var(--negro);
}

.form textarea {
    height: 110px;
    resize: vertical;
}

.btns {
    display: flex;
    gap: 12px;
    margin-top: 4px;
    flex-wrap: wrap;
}

button.btn-enviar {
    background: var(--negro);
    color: var(--blanco);
    font-weight: 700;
    font-size: 13px;
    padding: 10px 28px;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: opacity 0.2s;
}

button.btn-enviar:hover {
    opacity: 0.75;
}

.btn-borrar {
    background: var(--negro);
    color: var(--blanco);
    border: none;
    padding: 10px 28px;
    font-size: 13px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn-borrar:hover {
    opacity: 0.75;
}

/* ===== FOOTER REDES ===== */
.footer-redes {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 44px var(--pad);
    max-width: var(--max);
    margin: 0 auto;
}

.redes-info small {
    display: block;
    font-size: 12px;
    color: #777;
    margin-bottom: 2px;
}

.redes-info span {
    font-size: 13px;
    font-weight: 700;
    color: var(--negro);
}

.iconos-redes {
    display: flex;
    gap: 28px;
    align-items: center;
}

.iconos-redes a {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
}

.iconos-redes a:hover {
    opacity: 0.6;
}

.iconos-redes img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

/* ===== FOOTER ===== */
footer {
    background: var(--amarillo);
    width: 100%;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px var(--pad);
    max-width: var(--max);
    margin: 0 auto;
}

.footer-bottom .logo {
    color: var(--negro);
    font-size: 20px;
    font-weight: 900;
    text-transform: lowercase;
}

.footer-bottom a {
    font-size: 13px;
    color: var(--negro);
}

/* ===============================
   RESPONSIVE MOBILE (max 768px)
   =============================== */
@media (max-width: 768px) {

    :root {
        --pad: 20px;
    }

    /* NAV */
    nav {
        flex-wrap: wrap;
        gap: 10px;
    }

    .nav-links {
        gap: 16px;
        font-size: 13px;
    }

    /* INICIO */
    .inicio {
        grid-template-columns: 1fr;
        padding: 28px var(--pad) 36px;
        gap: 24px;
    }

    .inicio-text h1 img {
        width: 180px;
    }

    .inicio-img {
        height: 220px;
    }

    /* INTRO */
    .intro {
        grid-template-columns: 1fr;
    }

    .intro-col:first-child {
        border-right: none;
        border-bottom: 1.5px solid var(--gris-borde);
    }

    /* SERVICIOS */
    .servicios {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 40px var(--pad);
    }

    /* CONTACTO */
    .contacto {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 40px var(--pad);
    }

    .contacto-izquierda h2 {
        font-size: 22px;
    }

    /* FOOTER REDES */
    .footer-redes {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .iconos-redes {
        gap: 16px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .iconos-redes img {
        width: 36px;
        height: 36px;
    }

    /* FOOTER BOTTOM */
    .footer-bottom {
        flex-direction: column;
        gap: 6px;
        text-align: center;
    }
}
