﻿/* ----------------------------------------
   RESET BÁSICO
---------------------------------------- */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
    color: #111827;
    background-color: #f3f4f6;
}

ul {
    list-style: none;
}

/* ----------------------------------------
   VARIABLES
---------------------------------------- */

:root {
    --color-primary: #0059b3;
    --color-primary-dark: #00428a;
    --color-text: #111827;
    --color-muted: #6b7280;
    --color-border: #e5e7eb;
    --color-shell-bg: #ffffff;

    --max-width: 1200px;
    --header-height-desktop: 86px;

    --shadow-soft: 0 12px 30px rgba(15, 23, 42, 0.12);
}

/* ----------------------------------------
   ESTRUCTURA GLOBAL
---------------------------------------- */

.page-shell {
    max-width: 100%;
    margin: 0;
    background-color: var(--color-shell-bg);
}

/* Contenedor */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 32px;
}

/* Secciones genéricas */
.section-head {
    margin-bottom: 36px;
}

.section-head h2 {
    font-size: 1.9rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 8px;
}

.section-head p {
    max-width: 520px;
    color: var(--color-muted);
    font-size: 0.98rem;
}

.section-head--center {
    text-align: center;
}

.section-head--center p {
    margin: 0 auto;
}

/* ----------------------------------------
   HEADER
---------------------------------------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: #ffffff;
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06);
}

.header-bar {
    background-color: #ffffff;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height-desktop);
}

/* Logo */
.brand img {
    height: 80px;
    width: auto;
    display: block;
    object-fit: contain;
}

/* Navegación escritorio */
.main-nav {
    display: flex;
    align-items: center;
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 40px;
}

.main-nav a {
    font-size: 0.98rem;
    font-weight: 500;
    color: var(--color-text);
    text-decoration: none;
    position: relative;
    padding-bottom: 4px;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 0;
    background-color: var(--color-primary);
    transition: width 0.2s ease;
}

.main-nav a:hover {
    color: var(--color-primary);
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

/* Botón hamburguesa (móvil) */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 999px;
    cursor: pointer;
    margin-left: 16px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background-color: #111827;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ----------------------------------------
   BOTONES
---------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.96rem;
    border: none;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease,
                color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
    background-color: var(--color-primary);
    color: #ffffff;
    box-shadow: 0 12px 30px rgba(0, 89, 179, 0.35);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 16px 36px rgba(0, 66, 138, 0.4);
}

.btn-secondary {
    background-color: #ffffff;
    color: var(--color-primary);
    border: 1px solid rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

/* ----------------------------------------
   HERO
---------------------------------------- */

.hero {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: #000;
}

.hero--home {
    min-height: clamp(480px, 82vh, 620px);
    background-image: url("../img/slider1.jpeg");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        120deg,
        rgba(15, 23, 42, 0.85),
        rgba(15, 23, 42, 0.45),
        rgba(15, 23, 42, 0.75)
    );
    pointer-events: none;
}

.hero__inner {
    position: relative;
    z-index: 1;
    max-width: 640px;
    padding-block: 90px;
    color: #ffffff;
}

.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 5px 14px;
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.14);
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.hero__title {
    font-size: clamp(2.4rem, 3.4vw, 3rem);
    font-weight: 800;
    letter-spacing: 0.02em;
    margin-bottom: 16px;
}

.hero__subtitle {
    font-size: 1.02rem;
    margin-bottom: 28px;
    color: #e5e7eb;
}

.hero__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* ----------------------------------------
   TARJETAS HOME
---------------------------------------- */

.home-cards {
    padding: 80px 0 70px;
    background-color: #f3f4f6;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.home-card {
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.12);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.home-card__image {
    height: 190px;
    overflow: hidden;
}

.home-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.home-card__body {
    padding: 20px 20px 18px;
}

.home-card__body h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #111827;
}

.home-card__body p {
    font-size: 0.96rem;
    color: var(--color-muted);
    margin-bottom: 12px;
}

.home-card__link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-primary);
}

/* Hover */
.home-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.18);
}

.home-card:hover .home-card__image img {
    transform: scale(1.06);
}

/* ----------------------------------------
   ¿POR QUÉ ELEGIRNOS?
---------------------------------------- */

.why {
    padding: 70px 0 80px;
    background-color: #ffffff;
}

.why__list {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.why-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 18px 18px;
    border-radius: 16px;
    background-color: #f9fafb;
}

.why-item__icon {
    flex: 0 0 82px;
    width: 82px;
    height: 82px;
    border-radius: 50%;
    background-color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.45);
    overflow: hidden;
}

.why-icon {
    width: 70%;
    height: 70%;
    object-fit: contain;
    filter: brightness(0) invert(1);
    display: block;
}

/* Ajuste fino para el icono de herramientas */
.why-icon--tools {
    transform: translateY(-3px);
}

.why-item__text h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: #111827;
}

.why-item__text p {
    font-size: 0.96rem;
    color: var(--color-muted);
}

/* ----------------------------------------
   SOBRE NOSOTROS
---------------------------------------- */

.about {
    padding: 80px 0 90px;
    background-color: #f3f4f6;
}

.about-wrapper {
    display: flex;
    align-items: stretch;
    gap: 40px;
    background-color: #ffffff;
    border-radius: 22px;
    padding: 32px 32px 32px 32px;
    box-shadow: var(--shadow-soft);
}

.about-image {
    flex: 0 0 40%;
    border-radius: 18px;
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-label {
    display: inline-block;
    background-color: rgba(0, 89, 179, 0.08);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.about-title {
    font-size: 1.7rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 16px;
}

.about-info p {
    font-size: 0.97rem;
    color: var(--color-muted);
    line-height: 1.7;
    margin-bottom: 12px;
}

/* ----------------------------------------
   FOOTER PROFESIONAL
---------------------------------------- */

.site-footer {
    background-color: #020617;
    color: #e5e7eb;
}

.footer-top {
    border-top: 1px solid rgba(148, 163, 184, 0.25);
    padding: 40px 0 26px;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
    gap: 32px;
}

.footer-col h3 {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    margin-bottom: 14px;
    color: #e5e7eb;
}

.footer-col ul li + li {
    margin-top: 6px;
}

.footer-col a {
    color: #cbd5f5;
    font-size: 0.94rem;
    text-decoration: none;
    transition: color 0.15s ease, opacity 0.15s ease;
}

.footer-col a:hover {
    color: #ffffff;
}

/* Columna marca */
.footer-col--brand p {
    font-size: 0.95rem;
    color: #9ca3af;
    max-width: 340px;
}

.footer-logo img {
    height: 64px;
    width: auto;
    margin-bottom: 10px;
}

/* Contacto */
.footer-contact li {
    font-size: 0.94rem;
    color: #9ca3af;
}

.footer-contact span {
    font-weight: 600;
    color: #e5e7eb;
}

.footer-contact a {
    color: #cbd5f5;
}

.footer-contact a:hover {
    color: #ffffff;
}

/* CIF */
.footer-cif {
    margin-top: 12px;
    font-size: 0.9rem;
    color: #9ca3af;
}

.footer-cif span {
    font-weight: 600;
    color: #e5e7eb;
}

/* Bottom */
.footer-bottom {
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    padding: 12px 0 16px;
    background-color: #020617;
}

.footer-bottom-inner {
    text-align: center;
    font-size: 0.85rem;
    color: #9ca3af;
}

/* ----------------------------------------
   MISC / MIN HEIGHT
---------------------------------------- */

.main-content {
    min-height: 50vh;
}

/* ----------------------------------------
   RESPONSIVE
---------------------------------------- */

@media (max-width: 992px) {
    .container {
        padding: 0 20px;
    }

    .header-inner {
        height: 72px;
    }

    /* Menú móvil */
    .nav-toggle {
        display: flex;
    }

    .main-nav {
        position: absolute;
        top: 72px;
        right: 0;
        left: 0;
        background-color: #ffffff;
        box-shadow: 0 12px 30px rgba(15, 23, 42, 0.14);
        transform-origin: top;
        transform: scaleY(0);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.2s ease, opacity 0.2s ease;
    }

    .main-nav.is-open {
        transform: scaleY(1);
        opacity: 1;
        pointer-events: auto;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: center;
        padding: 16px 0 18px;
        gap: 10px;
    }

    .hero--home {
        min-height: 70vh;
        background-position: center center;
    }

    .hero__inner {
        max-width: none;
        padding-block: 70px;
        text-align: center;
        align-items: center;
    }

    .hero__actions {
        justify-content: center;
    }

    .cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .about-wrapper {
        flex-direction: column;
        padding: 28px;
    }

    .about-image {
        height: 320px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 26px;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 16px;
    }

    .brand img {
        height: 60px;
    }

    .hero__title {
        font-size: 2rem;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .home-card__image {
        height: 200px;
    }

    .about-wrapper {
        padding: 22px 18px;
    }

    .about-title {
        font-size: 1.45rem;
    }

    .why-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .why-item__icon {
        margin-bottom: 4px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-col--brand p {
        max-width: none;
    }
}

/* ----------------------------------------
   PÁGINA SERVICIOS
---------------------------------------- */

/* Hero interior (servicios, contacto, etc.) */
.hero--inner {
    min-height: clamp(260px, 52vh, 360px);
    display: flex;
    align-items: center;
}

.hero--services {
    /* cambia la imagen si tienes un hero específico para servicios */
    background-image: url("../img/slider2.jpeg");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.hero__inner--center {
    max-width: 720px;
    text-align: left;
}

.page-servicios .hero__inner--center {
    padding-block: 70px;
}

.hero__title--inner {
    font-size: clamp(2rem, 3vw, 2.4rem);
}

.hero__subtitle--inner {
    max-width: 40rem;
    font-size: 0.98rem;
}

/* Si no tienes imagen hero-servicios, usa la misma que inicio */
.hero--services.hero--inner {
    background-image: url("../img/slider1.jpeg");
}

/* ----------------------------------------
   LISTADO DE SERVICIOS
---------------------------------------- */

.services {
    padding: 70px 0 90px;
    background-color: #f3f4f6;
}

.services .container {
    max-width: 1100px;
}

.services .service-card + .service-card {
    margin-top: 32px;
}

.service-card {
    background-color: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.14);
}

/* Imagen del servicio */
.service-card__image {
    width: 100%;
    height: 270px;
    overflow: hidden;
}

.service-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Bloque azul con texto */
.service-card__body {
    background: linear-gradient(135deg, #0059b3 0%, #00428a 100%);
    color: #ffffff;
    padding: 22px 28px 24px;
}

.service-card__body h2 {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 10px;
    text-transform: none;
}

.service-card__body p {
    font-size: 0.96rem;
    line-height: 1.7;
    margin-bottom: 10px;
}

.service-card__body p:last-child {
    margin-bottom: 0;
}

/* Hover sutil */
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover .service-card__image img {
    transform: scale(1.04);
    transition: transform 0.35s ease;
}

/* ----------------------------------------
   RESPONSIVE SERVICIOS
---------------------------------------- */

@media (max-width: 992px) {
    .hero__inner--center {
        text-align: center;
        align-items: center;
    }

    .page-servicios .hero__inner--center {
        padding-block: 60px;
    }

    .hero__subtitle--inner {
        margin-left: auto;
        margin-right: auto;
    }

    .service-card__image {
        height: 240px;
    }
}

@media (max-width: 640px) {
    .services {
        padding-top: 60px;
        padding-bottom: 70px;
    }

    .service-card__body {
        padding: 20px 18px 22px;
    }

    .service-card__body h2 {
        font-size: 1.05rem;
    }

    .service-card__image {
        height: 220px;
    }
}


/* ----------------------------------------
   GALERÍA
---------------------------------------- */

.hero--gallery {
    background-image: url("../img/slider1.jpeg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.gallery {
    padding: 80px 0 90px;
    background-color: #f3f4f6;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}

.gallery-item {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    background-color: #ffffff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.14);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    min-height: 260px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.gallery-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 46px rgba(15, 23, 42, 0.22);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-actions {
    margin-top: 48px;
    text-align: center;
}

/* ----------------------------------------
   RESPONSIVE GALERÍA
---------------------------------------- */

@media (max-width: 992px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .gallery {
        padding: 60px 0 70px;
    }

    .gallery-item img {
        min-height: 220px;
    }
}

/* ----------------------------------------
   CONTACTO
---------------------------------------- */

.hero--contact {
    background-image: url("../img/slider1.jpeg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.contact {
    padding: 80px 0 90px;
    background-color: #ffffff;
}

.contact-wrapper {
    max-width: 520px;
    margin: 0 auto;
    background-color: #ffffff;
    padding: 36px 34px 40px;
    border-radius: 26px;
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.16);
}

.contact-title {
    font-size: 1.7rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 26px;
    text-align: center;
}

/* Formulario */

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    position: relative;
}

.form-icon {
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    font-size: 1rem;
    opacity: 0.6;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px 14px 46px;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    font-size: 0.95rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group textarea {
    padding-left: 16px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0, 89, 179, 0.15);
}

.form-group--textarea textarea {
    resize: vertical;
}

/* Checkbox */

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.88rem;
    color: #6b7280;
}

.form-checkbox a {
    color: var(--color-primary);
    text-decoration: none;
}

.form-checkbox a:hover {
    text-decoration: underline;
}

/* Botón */

.btn-full {
    width: 100%;
    margin-top: 10px;
}

/* ----------------------------------------
   RESPONSIVE CONTACTO
---------------------------------------- */

@media (max-width: 640px) {
    .contact {
        padding: 60px 0 70px;
    }

    .contact-wrapper {
        padding: 28px 22px 32px;
    }

    .contact-title {
        font-size: 1.45rem;
    }
}


/* ======================================
   COOKIE BANNER - DATIVA 24
====================================== */

.cookie-banner{
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 40px);
  max-width: 880px;
  background: #ffffff;
  border: 1px solid #e5e5e5;
  box-shadow: 0 20px 50px rgba(0,0,0,0.12);
  border-radius: 14px;
  padding: 16px 18px;
  z-index: 9999;
  display: none;
}

.cookie-banner.show{
  display: block;
}

.cookie-inner{
  display:flex;
  gap:20px;
  align-items:center;
  justify-content:space-between;
}

.cookie-text{
  font-size:14px;
  line-height:1.5;
  color:#222;
}

.cookie-text a{
  font-weight:600;
  text-decoration:underline;
}

.cookie-actions{
  display:flex;
  gap:10px;
}

.cookie-btn{
  border:none;
  padding:10px 16px;
  border-radius:8px;
  cursor:pointer;
  font-weight:600;
  font-size:14px;
}

.cookie-btn--accept{
  background:#111;
  color:#fff;
}

.cookie-btn--reject{
  background:#f2f2f2;
  color:#111;
}

.cookie-btn:hover{
  opacity:0.9;
}

/* responsive */
@media(max-width:600px){
  .cookie-inner{
    flex-direction:column;
    align-items:flex-start;
  }
}



