@font-face {
  font-family: "BodoniModa";
  src: url("../fonts/BodoniModa.ttf");
}

@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins.ttf");
}

:root {
  --color-primary: #004aad;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  margin: 0;
  border: none;
  width: 100%;
  height: 100%;
  background-color: white;
}

h2 {
  font-family: "Poppins";
}

header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}

/* HEADER (sin Tailwind) */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: white;
  border-bottom: 4px solid #004aad;
  box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
}

.topbar {
  background: #353535;
  color: white;
  font-size: 14px;
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  padding: 6px 40px;
  align-items: center;
}

.topbar-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 40px;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.nav {
  display: flex;
  gap: 28px;
  align-items: center;
  font-weight: 600;
}

.nav-link {
  text-decoration: none;
  color: #111;
}

.nav-link:hover {
  color: #004aad;
}

/* “Activo” como en Astro (azul) */
.nav-link.active {
  color: #004aad;
}

/* Responsive simple */
@media (max-width: 900px) {
  .topbar {
    padding: 6px 16px;
  }

  .header-main {
    padding: 10px 16px;
    gap: 12px;
    flex-wrap: wrap;
  }

  .nav {
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    padding-bottom: 6px;
  }
}

/* Compensa el header fijo */
.main-content {
  margin-top: 145px;
}

/* HERO */
.hero {
  position: relative;
  width: 100%;
  height: 380px;
  overflow: hidden;
}

.hero-slider {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 74, 173, 0.75) 0%,
    rgba(0, 74, 173, 0.55) 50%,
    rgba(0, 74, 173, 0.85) 100%
  );
  z-index: 2;
}

.hero-content {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-top: 20px; /* pequeño ajuste fino */
}


.hero h1 {
  font-size: 4rem;
  color: white;
  font-family: "BodoniModa", sans-serif;
  text-shadow: 0px 1px 6px rgba(0, 0, 0, 0.95);
}

.hero h2 {
  font-size: 1.8rem;
  color: #e5e5e5;
  text-shadow: 0px 1px 6px rgba(0, 0, 0, 0.95);
  font-family: "Poppins", sans-serif;
}

.servicios {
  position: relative;
  padding: 60px 40px;
  overflow: hidden;              /* importante para el diagonal */
  background: #fff;
}

/* Contenido por encima de la franja */
.servicios-inner {
  position: relative;
  z-index: 1;                    /* 👈 contenido arriba */
}

/* Título como el original (más “pegado” a la izquierda) */
.servicios-title {
  font-size: 48px;
  font-weight: 700;
  color: #7a7a7a;
  margin: 0 0 40px 0;
  text-align: center;              
}

/* Filas */
.servicios-row {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 70px;           /* aire para que no choque con la franja */
}

.servicios-row-2 {
  margin-bottom: 140px;          /* 👈 deja espacio para la franja */
}

/* Franja diagonal (igual a Astro) */
.todos-los-servicios {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 800px;                 /* 👈 aquí se controla cuánto sube */
  z-index: 5;                    /* 👈 encima del contenido */
  display: flex;
  align-items: center;
  justify-content: center;

  /* Efecto Astro: semitransparente + blur */
  background: linear-gradient(
    to bottom,
    rgba(0, 74, 173, 0.25) 0%,
    rgba(0, 74, 173, 0.65) 55%,
    rgba(0, 74, 173, 0.95) 100%
  );
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  /* Diagonal como el original */
  clip-path: polygon(0 25%, 100% 30%, 100% 100%, 0 100%);
}

/* Botón centrado */
.btn-todos-servicios {
  background: #fff;
  color: #004aad;
  padding: 14px 28px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 13px;
  box-shadow: 0 6px 18px rgba(0,0,0,.15);
}

.btn-todos-servicios:hover {
  background: #f2f2f2;
}

.servicios h2 {
  font-size: 36px;
  margin-bottom: 50px;
  color: #7a7a7a;
}

.servicio {
  width: 280px;
}

.image-container {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  overflow: hidden;
}

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s ease;
}

.image-container img:hover {
  transform: scale(1.2);
}

.servicio h3 {
  margin-top: 20px;
  color: #004aad;
}

.todos {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 200px;
  background: linear-gradient(to bottom, rgba(0, 74, 173, 0.3), #004aad);
  display: flex;
  align-items: center;
  justify-content: center;
  clip-path: polygon(0 10%, 100% 20%, 100% 100%, 0 100%);
}

.todos a {
  background: white;
  padding: 15px 30px;
  text-decoration: none;
  color: #004aad;
  font-weight: bold;
  border-radius: 4px;
}

.proyectos {
  padding: 80px 40px;
  text-align: center;
}

.proyectos h2 {
  font-size: 36px;
  margin-bottom: 50px;
  color: #7a7a7a;
}

.proyectos-row {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.proyecto {
  width: 280px;
}

.proyecto h3 {
  margin-top: 20px;
  color: #004aad;
}
.proyectos-boton {
  margin-top: 60px;
}

.proyectos-boton a {
  background: #004aad;
  color: white;
  padding: 15px 30px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 4px;
}

.proyectos-boton a:hover {
  background: #003a88;
}

/* ===== FOOTER (sin Tailwind, look Astro) ===== */
footer {
  position: relative;
  background: var(--color-primary);
  color: #fff;
  padding-top: 160px; /* similar a pt-32 / pt-64 */
  overflow: hidden;
}

footer .absolute {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
}

/* Contenedor principal */
footer .w-full.px-4.py-12.mx-auto.space-y-8.overflow-hidden {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 16px;
  text-align: center;
}

/* Logo centrado */
footer img.mx-auto {
  display: block;
  margin: 0 auto;
}

/* Nav centrado en fila */
footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px 26px;
  margin: 30px auto 0;
  padding: 0;
}

/* Quitar “cajitas” */
footer nav > div {
  padding: 0 !important;
  margin: 0 !important;
}

/* Links footer */
footer nav a {
  color: white;
  text-decoration: none;
  font-size: 16px;
  line-height: 1.2;
}

footer nav a:hover {
  color: #d1d5db; /* hover:text-gray-300 */
}

/* Texto legal */
footer p {
  margin-top: 28px;
  color: #e5e7eb; /* text-gray-200 */
  font-size: 16px;
}

/* Responsive */
@media (max-width: 600px) {
  footer {
    padding-top: 130px;
  }
  footer nav a {
    font-size: 15px;
  }
}

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
  position: fixed !important;
  right: 24px;
  bottom: 24px;
  z-index: 9999;            /* 👈 por encima de TODO */
  display: block;
}

.whatsapp-float img {
  width: 70px;
  height: 70px;
  transition: transform 0.3s ease;
}

.whatsapp-float:hover img {
  transform: scale(1.1);
}

/* === SERVICIOS === */
.page-hero {
  padding: 60px 40px 10px;
}

.page-title {
  font-size: 52px;
  color: #7a7a7a;
  margin: 0;
}

.page-subtitle {
  margin-top: 10px;
  color: #666;
  font-size: 18px;
}

.servicios-listado {
  padding: 40px 40px 90px;
}

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(240px, 1fr));
  gap: 50px 40px;
  justify-items: center;
}

.servicio-card {
  text-align: center;
  max-width: 360px;
}

.servicio-card h3 {
  margin-top: 18px;
  color: #004aad;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.25;
}

@media (max-width: 1000px) {
  .servicios-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }
}

@media (max-width: 650px) {
  .servicios-grid {
    grid-template-columns: 1fr;
  }
}

.page-pad {
  padding: 40px 40px 80px;
}

.page-title {
  font-size: 52px;
  font-weight: 700;
  color: #7a7a7a;
  margin: 0 0 25px 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(240px, 1fr));
  gap: 22px;
  align-items: start;
}

.service-card {
  background: #fff;
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
  max-width: 320px;          /* 👈 CLAVE */
}


.service-mainimg {
  width: 100%;
  height: 170px;
  border-radius: 14px;
  overflow: hidden;
}

.service-mainimg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-title {
  margin: 12px 0 6px;
  font-size: 17px;
  color: #004aad;
  font-weight: 700;
  line-height: 1.25;
}

.service-desc {
  margin: 0 0 12px 0;
  color: #444;
  font-size: 13px;
  line-height: 1.4;
}

.service-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 10px;
}

.thumb {
  width: 100%;
  height: 52px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  opacity: 0.85;
  border: 2px solid transparent;
}

.thumb:hover {
  opacity: 1;
}

.thumb.active {
  opacity: 1;
  border-color: #004aad;
}

/* Responsive */
@media (max-width: 1400px) {
  .services-grid { grid-template-columns: repeat(3, minmax(240px, 1fr)); }
}
@media (max-width: 1050px) {
  .services-grid { grid-template-columns: repeat(2, minmax(240px, 1fr)); }
}
@media (max-width: 650px) {
  .page-pad { padding: 30px 16px 70px; }
  .services-grid { grid-template-columns: 1fr; }
  .service-mainimg { height: 240px; }
}

.service-mainimg img {
  transition: opacity 0.2s ease;
}

.service-mainimg img.is-fading {
  opacity: 0.2;
}

.projects-grid{
  display: grid;
  gap: 28px;
  justify-items: center;
  align-items: start;

  /* Default (mobile): 1 col */
  grid-template-columns: 1fr;
}

.project-card {
  background: white;
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
  width: 100%;
  max-width: none;
  text-align: center;
}

.project-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 14px;
}

.project-card h2 {
  margin-top: 12px;
  font-size: 18px;
  font-weight: 800;
  color: #004aad;
}

/* md: 2 cols (>= 768px) */
@media (min-width: 768px){
  .projects-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* xl: 3 cols (>= 1280px) */
@media (min-width: 1280px){
  .projects-grid{
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* 2xl: 4 cols (>= 1536px) */
@media (min-width: 1536px){
  .projects-grid{
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.page-pad{
  padding: 40px 40px 80px;
}

/* lg: padding horizontal grande */
@media (min-width: 1024px){
  .page-pad{
    padding-left: 208px;
    padding-right: 208px;
  }
}

/* ===== PAGE BASE ===== */
.mt-header{
  margin-top: 145px;
}

.page-pad{
  padding: 40px 40px 80px;
}

@media (min-width: 1024px){
  .page-pad{
    padding-left: 208px;
    padding-right: 208px;
  }
}

.page-title{
  font-size: 48px;
  font-weight: 800;
  color: #7a7a7a;
  margin-bottom: 40px;
}

/* ===== EMPRESA ===== */
/* ===== Empresa (igual al original: 2 columnas) ===== */

/* ===== Tipografía base (como Astro) ===== */
body{
  font-family: "Poppins", Arial, sans-serif;
  color:#111;
}

@font-face {
  font-family: "BodoniModa";
  src: url("../font/BodoniModa.ttf");
}

@font-face {
  font-family: "Poppins";
  src: url("../font/Poppins.ttf");
}

/* =========================
   EMPRESA 2x2 (como la imagen)
   ========================= */

.empresa-wrap{
  max-width: 1200px;
  margin: 0 auto;
  padding: 36px 40px 60px;
}

.empresa-grid-2x2{
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
}

@media (min-width: 992px){
  .empresa-grid-2x2{
    grid-template-columns: 1fr 1fr; /* 2 columnas */
    align-items: start;
  }
}

/* “caja” blanca suave, similar a astro */
.empresa-card{
  background: #fff;
  border-radius: 18px;
  padding: 28px 30px;
  box-shadow: 0 14px 30px rgba(0,0,0,.12);
}

/* Títulos grandes azules */
.empresa-title{
  margin: 0 0 14px 0;
  font-family: "Poppins", Arial, sans-serif;
  font-weight: 900;
  color: #004aad;
  font-size: 46px;
  line-height: 1.05;
}

/* Texto ordenado (más aireado) */
.empresa-card p{
  margin: 0 0 14px 0;
  font-family: "Poppins", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.9;
  color: #111;
}

/* Bloque del logo */
.empresa-logo-card{
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px; /* para que se vea “cuadrante” */
}

.empresa-logo{
  width: 320px;
  max-width: 100%;
  height: auto;
  display: block;
}

/* === CONTACTO (igual a la vista Astro) === */
.page-content {
  margin-top: 145px;           /* equivale a mt-[145px] */
  padding: 40px;               /* px-10 (40px) */
  padding-top: 40px;           /* pt-10 aprox */
}

@media (min-width: 1024px) {
  .page-content {
    padding-left: 208px;       /* lg:px-52 (52 * 4px = 208px) */
    padding-right: 208px;
  }
}

.contact-title {
  font-size: 3rem;             /* text-5xl */
  font-weight: 700;
  color: #7a7a7a;
  margin: 0;
}

.contact-subtitle {
  font-size: 1rem;           /* text-2xl */
  color: #7a7a7a;
  margin-top: 20px;
  margin-bottom: 0;
}

.contact-form {
  margin-top: 28px;
  max-width: 400px;            /* deja “aire” a la derecha como en la captura */
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #111;
  margin-bottom: 6px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #d7dbe3;
  border-radius: 3px;
  padding: 10px 12px;
  font-size: 12px;
  outline: none;
  background: #fff;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #9aa3af;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #b8c2d1;
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-btn {
  width: 100%;
  border: none;
  border-radius: 3px;
  background: #353535;
  color: #fff;
  padding: 10px 12px;
  font-size: 12px;
  cursor: pointer;
}

.contact-btn:hover {
  filter: brightness(1.05);
}
