

/* CONFIGURACIÓN GENERAL */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f7f3ee;
    color: #26374b;
}


/* CABECERA */

.cabecera {
    background-color: #ffffff;
    padding: 20px 6%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 25px;
    color: #18283b;
    margin: 0;
}

.menu {
    display: flex;
    gap: 25px;
}

.menu a {
    text-decoration: none;
    color: #26374b;
    font-size: 15px;
}


/* PORTADA PRINCIPAL */

.hero {
    background-color: #18283b;
    color: white;
    padding: 110px 8%;
    min-height: 500px;
    display: flex;
    align-items: center;
}

.hero-contenido {
    max-width: 750px;
}

.etiqueta {
    color: #d7a17c;
    font-size: 14px;
    letter-spacing: 2px;
    font-weight: bold;
}

.hero h1 {
    font-size: 40px;
    line-height: 1.2;
    margin-bottom: 25px;
}

.descripcion {
    font-size: 18px;
    line-height: 1.7;
    max-width: 650px;
}


/* BOTON DE CONTACTO */

.boton-contacto {
    display: inline-block;
    background-color: #d7a17c;
    color: #18283b;
    padding: 16px 28px;
    margin-top: 20px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
}


/* PIE DE PÁGINA */

footer {
    background-color: #111e2e;
    color: white;
    text-align: center;
    padding: 25px;
}
.contenedor {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* SECCIÓN DE SERVICIOS */

.servicios {
    padding: 80px 8%;
    background-color: #f7f3ee;
}


/* CABECERA DE SERVICIOS */

.servicios-cabecera {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 50px;
}

.etiqueta-servicios {
    color: #955333;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 2px;
}

.servicios-cabecera h2 {
    color: #18283b;
    font-size: 34px;
}

.servicios-cabecera p {
    line-height: 1.6;
}


/* DISTRIBUCIÓN DE TARJETAS */

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


/* TARJETAS INDIVIDUALES */

.tarjeta-servicio {
    background-color: white;
    padding: 35px;
    border-radius: 8px;
    border: 1px solid #e5e5e0;
    transition: transform 0.3s ease;
}

.tarjeta-servicio h3 {
    color: #18283b;
    font-size: 22px;
}

.tarjeta-servicio p {
    color: #526174;
    line-height: 1.7;
}


/* EFECTO AL PASAR EL RATON */

.tarjeta-servicio:hover {
    transform: translateY(-5px);
}

/* ADAPTACIÓN PARA MÓVILES */

@media (max-width: 600px) {

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

    .servicios {
        padding: 50px 20px;
    }

    .servicios-cabecera h2 {
        font-size: 27px;
    }

}


/* SECCIÓN: POR QUÉ ELEGIR RESTART */

.porque-restart {
    background-color: #22364e;
    color: white;
    padding: 80px 8%;
}


/* CABECERA DE LA SECCIÓN */

.porque-cabecera {
    max-width: 750px;
    margin: 0 auto 50px;
    text-align: center;
}

.porque-cabecera h2 {
    color: white;
    font-size: 36px;
    line-height: 1.3;
}

.porque-cabecera p {
    line-height: 1.7;
}


/* DISTRIBUCIÓN DE VENTAJAS */

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


/* TARJETAS DE VENTAJAS */

.ventaja {
    padding: 30px;
    border: 1px solid #4b6078;
    border-radius: 6px;
    background-color: #1b2e44;
}

.ventaja h3 {
    color: #d7a17c;
    font-size: 21px;
}

.ventaja p {
    color: #ffffff;
    line-height: 1.7;
}


/* ADAPTACIÓN PARA MÓVILES */

@media (max-width: 600px) {

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

    .porque-restart {
        padding: 50px 20px;
    }

    .porque-cabecera h2 {
        font-size: 27px;
    }

}


/* SECCIÓN DE CONTACTO */

.contacto {
    background-color: #ffffff;
    padding: 80px 8%;
}


/* CABECERA DEL CONTACTO */

.contacto-cabecera {
    max-width: 750px;
    margin: 0 auto 40px;
    text-align: center;
}

.contacto-cabecera h2 {
    color: #18283b;
    font-size: 34px;
}


/* FORMULARIO */

.formulario-contacto {
    max-width: 650px;
    margin: 0 auto;
    display: grid;
    gap: 22px;
}


/* CAMPOS */

.campo {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.campo label {
    color: #18283b;
    font-weight: bold;
}

.campo input,
.campo textarea {
    padding: 14px;
    border: 1px solid #d5d9da;
    border-radius: 5px;
    font-family: Arial, sans-serif;
    font-size: 16px;
}

.campo textarea {
    resize: vertical;
}


/* EFECTO AL SELECCIÓNAR UN CAMPO */

.campo input:focus,
.campo textarea:focus {
    outline: 2px solid #d7a17c;
    border-color: #d7a17c;
}


/* BOTON DE ENVIO */

.boton-enviar {
    background-color: #d7a17c;
    color: white;
    padding: 16px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

.boton-enviar:hover {
    background-color: #22364e;
}


/* MOVILES */

@media (max-width: 600px) {

    .contacto {
        padding: 50px 20px;
    }

    .contacto-cabecera h2 {
        font-size: 27px;
    }

}

/* LLAMADA A LA ACCION */

.cta {
    background-color: #18283b;
    color: white;
    padding: 80px 8%;
    text-align: center;
}

.cta-contenido {
    max-width: 750px;
    margin: 0 auto;
}

.cta h2 {
    font-size: 36px;
    line-height: 1.3;
}

.cta p {
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 30px;
}

.boton-cta {
    display: inline-block;
    background-color: #d7a17c;
    color: #18283b;
    padding: 16px 30px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
}

.boton-cta:hover {
    background-color: #e9bd9b;
}


/* ADAPTACION MOVIL */

@media (max-width: 600px) {

    .cta {
        padding: 50px 20px;
    }

    .cta h2 {
        font-size: 27px;
    }

}

/* LOGOTIPO OFICIAL */
.marca { display: inline-flex; flex-shrink: 0; }
.logo { display: block; width: 220px; height: auto; }

/* FOTOGRAFÍA DE PORTADA Y CAPA DE CONTRASTE */
.hero {
    background-image: linear-gradient(90deg, rgba(23,45,56,.97), rgba(23,45,56,.78) 55%, rgba(23,45,56,.38)), url("imagenes/despacho.jpg");
    background-size: cover;
    background-position: center;
}
.hero h1 { font-size: clamp(32px, 4.5vw, 54px); line-height: 1.15; }

/* ICONOS DE SERVICIOS */
.icono-servicio { display: block; width: 44px; height: 44px; margin-bottom: 20px; }

/* ACCESIBILIDAD Y FORMULARIO DE DEMOSTRACIÓN */
a:focus-visible, button:focus-visible { outline: 3px solid #955333; outline-offset: 5px; }
.boton-enviar { color: #111e2e; }
.boton-enviar:hover { color: white; }
.nota-demo { max-width: 650px; margin: 0 auto 28px; line-height: 1.6; color: #526174; }
section { scroll-margin-top: 20px; }

/* CABECERA Y PORTADA EN PANTALLAS PEQUEÑAS */
@media (max-width: 800px) {
    .cabecera { flex-direction: column; gap: 24px; padding: 22px 20px; }
    .menu { flex-wrap: wrap; justify-content: center; gap: 16px 22px; }
    .hero { padding: 75px 6%; min-height: 480px; }
}
@media (max-width: 600px) {
    .hero { padding: 60px 20px; }
    .descripcion { font-size: 17px; }
    .etiqueta { line-height: 1.7; font-size: 12px; }
    .tarjeta-servicio, .ventaja { padding: 25px; }
    .campo input, .campo textarea { width: 100%; min-width: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .tarjeta-servicio { transition: none; }
    .tarjeta-servicio:hover { transform: none; }
}

/* PROPUESTA VISUAL ALTERNATIVA: AZUL NOCHE, MARFIL Y COBRE */
.cabecera { padding: 22px 6%; border-bottom: 1px solid #e6ded4; }
.logo { width: 255px; height: auto; }
.menu a { font-weight: 600; }
.menu a:hover { color: #955333; }
.hero {
    background: #f7f3ee;
    color: #18283b;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 6%;
    padding: 72px 6% 88px;
    min-height: 620px;
}
.hero-contenido { max-width: 660px; }
.hero .etiqueta { color: #955333; line-height: 1.7; }
.hero h1 { font-family: Georgia, serif; font-weight: 400; font-size: clamp(36px,4vw,60px); margin-top: 20px; }
.descripcion { color: #526174; }
.boton-contacto { background: #18283b; color: #fff; border-radius: 8px; }
.boton-contacto:hover { background: #2d4663; }
.hero-imagen { min-width: 0; }
.hero-imagen img { display: block; width: 100%; height: 430px; object-fit: cover; border-radius: 100px 12px 12px 12px; }
.hero-imagen p { font-size: 14px; line-height: 1.5; color: #526174; margin: 18px 0 0; padding-left: 18px; border-left: 3px solid #955333; }
.servicios { background: #fff; }
.tarjeta-servicio { background: #f7f3ee; border-color: #e6ded4; border-radius: 12px; }
.etiqueta-servicios { color: #955333; }
.porque-restart .etiqueta-servicios { color: #e9bd9b; }
.boton-enviar, .boton-cta { background: #d7a17c; color: #18283b; border-radius: 8px; }
@media (max-width: 800px) {
    .hero { grid-template-columns: 1fr; padding: 48px 6% 64px; gap: 36px; }
    .hero-imagen img { height: 320px; border-top-left-radius: 64px; }
}
@media (max-width: 600px) {
    .hero { padding: 40px 20px 56px; }
    .hero-imagen img { height: 260px; }
    .logo { width: 230px; }
}

/* DIRECCIÓN Y CONTACTO */
.datos-contacto {
    max-width: 850px;
    margin: 0 auto 44px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    padding: 28px;
    background: #f7f3ee;
    border: 1px solid #e6ded4;
    border-radius: 12px;
}
.datos-contacto h3 { margin: 0 0 12px; color: #18283b; }
.datos-contacto address, .datos-contacto p { margin: 0; font-style: normal; line-height: 1.9; }
.datos-contacto a { color: #18283b; text-underline-offset: 4px; overflow-wrap: anywhere; }
.datos-contacto a:hover { color: #955333; }
@media (max-width: 600px) {
    .datos-contacto { grid-template-columns: 1fr; padding: 22px; }
}

/* LOGOTIPOS ORIGINALES DE RESTART */
.cabecera { background-color: #050a30; border-bottom: 0; }
.cabecera .logo { display: block; width: 255px; max-width: 100%; height: auto; }
.cabecera .menu a { color: #ffffff; }
.cabecera .menu a:hover { color: #e9bd9b; }
footer { background-color: #050a30; }
.marca-pie { display: inline-block; margin-bottom: 8px; }
.logo-pie { display: block; width: 72px; height: auto; }
@media (max-width: 600px) {
    .cabecera .logo { width: 230px; }
}

/* FOTOGRAFÍAS ILUSTRATIVAS */
.hero-imagen img { object-position: center; }
.nota-imagen { display: block; margin-top: 10px; color: #526174; font-size: 12px; line-height: 1.5; }
.imagen-compromiso { max-width: 950px; margin: 0 auto 44px; }
.imagen-compromiso img { display: block; width: 100%; height: auto; border-radius: 12px; }
.imagen-compromiso figcaption { margin-top: 12px; color: #e4e8ed; font-size: 12px; line-height: 1.6; }

/* MINIATURAS DE APOYO: EL TEXTO CONSERVA EL PROTAGONISMO */
.tarjeta-servicio { display: flow-root; }
.foto-servicio {
    float: right;
    display: block;
    width: 112px;
    height: 80px;
    object-fit: cover;
    margin: 0 0 14px 20px;
    border-radius: 8px;
    filter: saturate(.55) contrast(.94);
}
.tarjeta-servicio h3 { max-width: 100%; line-height: 1.35; }
.tarjeta-servicio p { clear: both; }
.nota-servicios { color: #526174; font-size: 12px; line-height: 1.6; margin-top: 22px; }
/* La portada conserva el encuadre completo y el letrero visible. */
.hero-imagen img { height: auto; aspect-ratio: 3 / 2; object-fit: contain; }
@media (max-width: 400px) {
    .foto-servicio { width: 88px; height: 64px; margin-left: 14px; }
}

/* PROYECTOS Y PRENSA */
.muestras { padding: 72px 6%; background: #f7f3ee; color: #18283b; font-family: Arial, sans-serif; }
.muestras * { box-sizing: border-box; }
.muestras-interior { max-width: 1150px; margin: auto; }
.muestras h2 { font-size: clamp(28px,3vw,40px); line-height: 1.2; max-width: 760px; margin: 14px 0 20px; }
.muestras-etiqueta { color: #955333; font-size: 12px; font-weight: bold; letter-spacing: 1.5px; line-height: 1.6; }
.muestras-intro { max-width: 700px; line-height: 1.8; color: #526174; margin-bottom: 34px; }
.muestras-proyectos { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px; }
.muestras-noticias { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; }
.muestras-prensa { background: white; }
.muestras-tarjeta { background: white; border: 1px solid #e6ded4; border-radius: 12px; padding: 28px; display: flex; flex-direction: column; align-items: flex-start; }
.muestras-prensa .muestras-tarjeta { background: #f7f3ee; }
.muestras-tarjeta h3 { font-size: 21px; line-height: 1.5; margin: 12px 0 24px; }
.muestras-tarjeta a { color: #18283b; font-weight: bold; line-height: 1.7; text-underline-offset: 5px; margin-top: auto; }
.muestras-tarjeta a:hover { color: #955333; }
.muestras a:focus-visible { outline: 3px solid #955333; outline-offset: 5px; }
.muestras-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media(max-width:800px) { .muestras-proyectos { grid-template-columns: 1fr; } }
@media(max-width:600px) { .muestras { padding: 48px 20px; } .muestras-noticias { grid-template-columns: 1fr; } }

/* IMÁGENES REALES DE PROYECTOS Y PUBLICACIONES */
.muestras-foto { display: block; width: 100%; height: 150px; object-fit: contain; background: #f0ede7; border-radius: 7px; margin-bottom: 18px; }
.muestras-noticias .muestras-foto { height: 150px; object-fit: contain; }
.menu { flex-wrap: wrap; justify-content: center; }
.redes-oficiales { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; margin: 18px 0 25px; }
.redes-oficiales a { display: inline-flex; align-items: center; gap: 9px; color: white; font-size: 15px; text-decoration: none; padding: 10px 4px; }
.redes-oficiales a:hover { color: #e9bd9b; }
.redes-oficiales a:focus-visible { outline: 2px solid #e9bd9b; outline-offset: 4px; }
@media (max-width: 1050px) { .cabecera { flex-direction: column; gap: 24px; } }

/* CABECERA VISIBLE DURANTE EL DESPLAZAMIENTO */
:root { --altura-cabecera: 130px; }
.cabecera {
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 3px 12px rgba(5, 10, 48, .15);
}
section[id] { scroll-margin-top: calc(var(--altura-cabecera) + 16px); }
/* Cabecera más compacta en móvil para dejar espacio al contenido. */
@media (max-width: 1050px) {
    :root { --altura-cabecera: 175px; }
    .cabecera { gap: 12px; padding: 12px 20px; }
    .cabecera .logo { width: 180px; }
    .cabecera .menu { gap: 10px 16px; }
    .cabecera .menu a { font-size: 14px; }
}

/* COLOR DE LA CABECERA SEGÚN LA SECCIÓN VISIBLE */
.cabecera {
    transition: background-color .3s ease, box-shadow .3s ease;
}
.cabecera .marca {
    background-color: #050a30;
    border-radius: 6px;
}
.cabecera .menu a {
    transition: color .3s ease;
}
.cabecera[data-tema="claro"] {
    background-color: #f7f3ee;
    box-shadow: 0 2px 10px rgba(24, 40, 59, .1);
}
.cabecera[data-tema="claro"] .menu a { color: #18283b; }
.cabecera[data-tema="claro"] .menu a:hover { color: #955333; }
.cabecera[data-tema="oscuro"] {
    background-color: #050a30;
    box-shadow: 0 2px 10px rgba(5, 10, 48, .18);
}
.cabecera[data-tema="oscuro"] .menu a { color: #ffffff; }
.cabecera[data-tema="oscuro"] .menu a:hover { color: #e9bd9b; }
@media (prefers-reduced-motion: reduce) {
    .cabecera, .cabecera .menu a { transition: none; }
}

/* LOGOTIPO ORIGINAL SIN RECUADRO EN LA CABECERA CLARA */
.cabecera .marca { background: transparent; border-radius: 0; }
.cabecera .logo-claro { display: block; }
.cabecera .logo-oscuro { display: none; }
.cabecera[data-tema="oscuro"] .logo-claro { display: none; }
.cabecera[data-tema="oscuro"] .logo-oscuro { display: block; }

/* ENLACE A LA POLÍTICA OFICIAL */
.enlace-privacidad { margin: 16px 0 0; text-align: center; font-size: .9375rem; }
.enlace-privacidad a { color: #fff; text-underline-offset: 4px; }
