
:root {
    --fondo: #121212;
    --fondo2: #1a1a1a;
    --melocoton: #fcd0c4;   /* color del logo */
    --coral: #e8836a;       /* acento para botones */
    --blanco: #ffffff;
    --gris: #c9c9c9;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--fondo);
    color: var(--blanco);
    font-family: 'Open Sans', sans-serif;
}

h1, h2, h3 {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

img {
    max-width: 100%;
}

/* ============================
   menu superior
   ============================ */

.menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 6%;
    background: rgba(18, 18, 18, 0.85);
    backdrop-filter: blur(4px);
    z-index: 100;
}

.marca {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--blanco);
}

.marca img {
    height: 38px;
}

.marca span {
    font-family: 'Oswald', sans-serif;
    font-size: 1.2rem;
    letter-spacing: 1px;
}

.marca b {
    color: var(--coral);
}

.menu nav a {
    color: var(--blanco);
    text-decoration: none;
    font-family: 'Oswald', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-left: 28px;
    transition: color 0.3s;
}

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

.btn-menu {
    display: none;
    background: none;
    border: none;
    color: var(--blanco);
    font-size: 1.4rem;
    cursor: pointer;
}

/* ============================
   hero / inicio
   ============================ */

.hero {
    min-height: 100vh;
    background:
        linear-gradient(rgba(10, 10, 10, 0.75), rgba(10, 10, 10, 0.85)),
        url('img/img1.jpg') center/cover no-repeat;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 20px 60px;
    position: relative;
}

.hero-logo {
    width: 230px;
    margin-bottom: 15px;
    animation: aparecer 1.2s ease both;
}

.hero-sub {
    font-family: 'Oswald', sans-serif;
    letter-spacing: 4px;
    font-size: 0.85rem;
    color: var(--melocoton);
    animation: aparecer 1.2s ease 0.3s both;
}

.hero h1 {
    font-size: clamp(3rem, 9vw, 6rem);
    font-weight: 700;
    margin: 10px 0;
    animation: aparecer 1.2s ease 0.5s both;
}

.hero-texto {
    max-width: 520px;
    color: var(--gris);
    animation: aparecer 1.2s ease 0.7s both;
}

.hero-redes {
    margin-top: 25px;
    animation: aparecer 1.2s ease 0.9s both;
}

.hero-redes a {
    color: var(--blanco);
    font-size: 1.1rem;
    margin: 0 12px;
    transition: color 0.3s;
}

.hero-redes a:hover {
    color: var(--coral);
}

.scroll-abajo {
    position: absolute;
    bottom: 25px;
    color: var(--gris);
    text-decoration: none;
    font-size: 0.75rem;
    letter-spacing: 3px;
    font-family: 'Oswald', sans-serif;
}

@keyframes aparecer {
    from { opacity: 0; transform: translateY(25px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============================
   nosotros
   ============================ */

.nosotros {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    padding: 100px 8%;
    /* fondo marron con brillo calido en el centro */
    background: radial-gradient(ellipse at 50% 40%, #be9b90 0%, #cc97877c 55%, #7c635c67 100%);
}

.nosotros h2 {
    font-size: 2.4rem;
    margin-bottom: 20px;
}

.nosotros p {
    color: var(--gris);
    margin-bottom: 15px;
    line-height: 1.7;
}

.nosotros-foto img {
    width: 100%;
    display: block;
    filter: grayscale(30%);
}

/* boton general */
.boton {
    display: inline-block;
    background: var(--coral);
    color: var(--blanco);
    border: none;
    text-decoration: none;
    font-family: 'Oswald', sans-serif;
    letter-spacing: 3px;
    font-size: 0.8rem;
    padding: 14px 30px;
    margin-top: 15px;
    cursor: pointer;
    transition: background 0.3s;
}

.boton:hover {
    background: var(--melocoton);
    color: var(--fondo);
}

/* ============================
   servicios
   ============================ */

.servicios {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    padding: 100px 8%;
    background:
        linear-gradient(rgba(15, 15, 15, 0.92), rgba(15, 15, 15, 0.95)),
        url('img/img3.jpg') center/cover no-repeat fixed;
}

.servicios-intro h2 {
    font-size: 2.4rem;
    margin-bottom: 15px;
}

.servicios-intro p {
    color: var(--gris);
    line-height: 1.7;
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.servicio {
    background: rgba(26, 26, 26, 0.85);
    padding: 30px 22px;
    transition: transform 0.3s, background 0.3s;
}

.servicio:hover {
    transform: translateY(-6px);
    background: rgba(35, 35, 35, 0.95);
}

.servicio i {
    font-size: 1.8rem;
    color: var(--coral);
    margin-bottom: 15px;
}

.servicio h3 {
    font-size: 1rem;
    margin-bottom: 10px;
}

.servicio p {
    color: var(--gris);
    font-size: 0.85rem;
    line-height: 1.6;
}

/* ============================
   estadisticas (graficas)
   ============================ */

.estadisticas {
    padding: 100px 8%;
    text-align: center;
    /* mismo fondo marron calido que la seccion nosotros */
    background: radial-gradient(ellipse at 50% 40%, #be9b90 0%, #cc97877c 55%, #7c635c67 100%);
}

.estadisticas h2 {
    font-size: 2.4rem;
}

.estadisticas-sub {
    color: var(--gris);
    margin: 10px 0 50px;
}

.graficas {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.grafica {
    background: var(--fondo2);
    padding: 35px 30px;
}

.grafica h3 {
    font-size: 1.05rem;
    margin-bottom: 30px;
    color: var(--melocoton);
}

/* barras verticales (usuarios) */
.barras-verticales {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    height: 220px;
    border-bottom: 2px solid #333;
}

.columna {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    width: 15%;
}

.barra {
    width: 100%;
    max-width: 45px;
    background: linear-gradient(to top, var(--coral), var(--melocoton));
    height: 0; /* crece con js */
    transition: height 1.2s ease;
    display: flex;
    justify-content: center;
}

.barra span {
    font-family: 'Oswald', sans-serif;
    font-size: 0.8rem;
    transform: translateY(-22px);
}

.columna small {
    margin-top: 8px;
    color: var(--gris);
}

/* barras horizontales (empresas) */
.fila {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.fila small {
    width: 100px;
    text-align: right;
    color: var(--gris);
    font-size: 0.8rem;
}

.pista {
    flex: 1;
    background: #2a2a2a;
    height: 22px;
}

.relleno {
    height: 100%;
    background: linear-gradient(to right, var(--coral), var(--melocoton));
    width: 0; /* crece con js */
    transition: width 1.2s ease;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.relleno span {
    font-family: 'Oswald', sans-serif;
    font-size: 0.75rem;
    color: var(--fondo);
    padding-right: 8px;
}

/* ============================
   contacto
   ============================ */

.contacto {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    padding: 100px 8%;
    background: var(--fondo2);
}

.contacto h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    line-height: 1.3;
}

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

#formulario input,
#formulario textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid #444;
    color: var(--blanco);
    font-family: 'Open Sans', sans-serif;
    padding: 12px 5px;
    margin-bottom: 20px;
    outline: none;
    resize: none;
}

#formulario input:focus,
#formulario textarea:focus {
    border-bottom-color: var(--melocoton);
}

.contacto-datos {
    margin-top: 35px;
}

.contacto-datos p {
    color: var(--gris);
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.contacto-datos i {
    color: var(--coral);
    width: 22px;
}

.contacto-mapa iframe {
    width: 100%;
    height: 100%;
    min-height: 380px;
    border: 0;
    filter: grayscale(60%);
}

/* ============================
   pie
   ============================ */

footer {
    text-align: center;
    padding: 25px 15px;
    font-family: 'Oswald', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: var(--gris);
}

/* ============================
   animacion al hacer scroll
   ============================ */

.revelar {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.revelar.visible {
    opacity: 1;
    transform: translateY(0);
}

/* respetar si el usuario no quiere animaciones */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
    .revelar {
        opacity: 1;
        transform: none;
    }
}

/* ============================
   responsive
   ============================ */

@media (max-width: 900px) {
    .menu nav {
        position: fixed;
        top: 68px;
        right: -100%;
        background: var(--fondo2);
        width: 220px;
        display: flex;
        flex-direction: column;
        padding: 20px;
        transition: right 0.3s;
    }

    .menu nav.abierto {
        right: 0;
    }

    .menu nav a {
        margin: 12px 0;
    }

    .btn-menu {
        display: block;
    }

    .nosotros,
    .servicios,
    .graficas,
    .contacto {
        grid-template-columns: 1fr;
    }

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

    .servicios {
        background-attachment: scroll;
    }
}

@media (max-width: 550px) {
    .servicios-grid {
        grid-template-columns: 1fr;
    }

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

    .hero-logo {
        width: 170px;
    }
}
