/* ====== RESET SUAVE ====== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
  background: radial-gradient(circle at top left, #0f172a 0, #020617 40%, #020617 100%);
  color: #e5e7eb;
}

/* ====== VARIABLES ====== */
:root {
  --bg: #020617;
  --bg-soft: #030712;
  --surface: #020617;
  --surface-elevated: #020617;
  --accent: #f97316;      /* naranja */
  --accent-soft: rgba(249, 115, 22, 0.14);
  --accent-2: #38bdf8;    /* celeste */
  --border-subtle: rgba(148, 163, 184, 0.18);
  --text-main: #e5e7eb;
  --text-muted: #9ca3af;
  --radius-xl: 1.75rem;
  --shadow-soft: 0 24px 80px rgba(15, 23, 42, 0.95);
  --shadow-chip: 0 12px 40px rgba(15, 23, 42, 0.7);
}

/* ====== LAYOUT BÁSICO ====== */
.container {
  width: min(1120px, 100% - 3rem);
  margin-inline: auto;
}

.section {
  padding: 5rem 0;
  position: relative;
}

.section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(56, 189, 248, 0.1), transparent 55%);
  opacity: 0.4;
  pointer-events: none;
}

/* ====== HEADER ====== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: linear-gradient(to bottom, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.7));
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
  height: 85px;          /* 🔹 alto fijo del header */
  overflow: visible;     /* deja que el logo se salga un poquito si es más grande */
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0;          /* 🔹 quitamos padding vertical extra */
  height: 100%;          /* que use todo el alto del header */
}

.hero-content {
  max-width: 400px;
  color: var(--color-text);
  position: relative;
  z-index: 2;          /* que quede encima del tanque */
  margin-top: -20px;   /* 🔥 SUBE EL TEXTO */
}

.logo img {
  height: 150px;
  display: inline-block;
}

.main-nav {
  display: flex;
  gap: 1.75rem;
}

.main-nav a {
  font-size: 0.95rem;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-weight: 500;
  position: relative;
  padding-bottom: 0.2rem;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 999px;
  transition: width 0.25s ease-out;
}

.main-nav a:hover {
  color: #f9fafb;
}

.main-nav a:hover::after {
  width: 100%;
}

/* ====== HERO ====== */
.hero {
  padding: 4.5rem 0 3rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.1fr);
  gap: 3rem;
  align-items: center;
  position: relative;     /* para que hero-media se posicione dentro */
}

.hero-content h1 {
  font-size: clamp(2.4rem, 3.1vw + 1.4rem, 3.4rem);
  line-height: 1.05;
  margin-bottom: 1.25rem;
  letter-spacing: 0.02em;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.55);
  background: radial-gradient(circle at left, rgba(249, 115, 22, 0.16), transparent 60%);
  margin-bottom: 1.15rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 14px rgba(249, 115, 22, 0.8);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn {
  border-radius: 999px;
  padding: 0.75rem 1.6rem;
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.1s ease-out, box-shadow 0.15s ease-out, background 0.15s;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #020617;
  box-shadow: 0 18px 55px rgba(249, 115, 22, 0.48);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 24px 80px rgba(249, 115, 22, 0.72);
}

.btn-ghost {
  background: rgba(15, 23, 42, 0.7);
  border-color: rgba(148, 163, 184, 0.4);
  color: var(--text-muted);
}

.btn-ghost:hover {
  background: rgba(15, 23, 42, 0.98);
  color: #e5e7eb;
}

.hero-meta {
  display: flex;
  gap: 1.5rem;
  margin-top: 1.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.hero-meta span strong {
  color: #e5e7eb;
}

/* Imagen hero */
.hero-media {
  position: relative;
  transform: translateX(-100px);
}

/* Controla el tamaño de la imagen del tanque + gabinete */
.hero-card img {
  width: 160%;
  height: auto;
  max-height: 650px;      /* ajuste fino: puede probar 520px, 560px, etc. */
  object-fit: contain;    /* que no se deforme */
  display: block;
}

.hero {
  overflow: hidden;       /* por si algo se quiere salir del área del hero */
}

.hero-card 
{border-radius: 2rem;
  background: radial-}
.capacidades-section {
    width: 100%;
    padding: 4rem 0;
}

.capacidades-section h2 {
    color: white;
    font-size: 2.8rem;
    margin-bottom: 3rem;
}

.capacidad {
    width: 100%;
    display: flex;
    align-items: center;
    margin-bottom: 4rem;
}

/* === CAPACIDADES === */

.capacidades {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.capacidades .section-title {
    text-transform: uppercase;
}

.cap-grid {
    display: flex;
    flex-direction: column;
    gap: 3.5rem;
}

/* Cada capacidad: fila con texto + imagen */
.cap-item {
    display: flex;
    align-items: center;
    gap: 3rem;
}

/* La segunda va invertida (imagen a la derecha) */
.cap-item--reverse {
    flex-direction: row-reverse;
}

/* Texto */
.cap-text h3 {
    color: var(--color-text, #ffffff);
    font-size: 1.6rem;
    margin-bottom: 0.75rem;
}

.cap-text p {
    color: var(--color-muted, #c5d0e0);
    line-height: 1.5;
}

/* Imagen */
.cap-media img {
    max-width: 420px;
    width: 100%;
    height: auto;
    border-radius: 18px;
    display: block;
}

/* Responsive */
@media (max-width: 900px) {
    .cap-item,
    .cap-item--reverse {
        flex-direction: column;
        text-align: center;
    }

    .cap-text {
        order: 2;
    }

    .cap-media {
        order: 1;
    }

    .cap-media img {
        max-width: 80%;
        margin: 0 auto;
    }
}
/* ==== IMÁGENES DE HISTORIA (Historia 1, 2 y 3) ==== */
.historia-img {
    width: 200px;   /* AJUSTA ESTE VALOR COMO QUIERAS */
    height: auto;
    border-radius: 15px;
    display: block;
    margin-bottom: 20px;
}
/* ===== Tipografía global más grande y responsive ===== */
html {
  font-size: clamp(15px, 1.05vw + 10px, 18px);
}

body {
  line-height: 1.6;
}

/* Títulos principales */
.hero-content h1 {
  font-size: clamp(2.6rem, 1.4vw + 2rem, 3.6rem);
}

/* Subtítulos de secciones (Historia, Capacidades, Proyectos, Contacto) */
.section-title {
  font-size: clamp(2rem, 0.8vw + 1.6rem, 2.6rem);
}

/* Textos normales dentro de secciones (párrafos largos) */
.section p {
  font-size: 1.05rem;
}
/* ===== Contenedor principal de cada sección ===== */
.section .container,
.hero .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}
/* ===== Hero en pantallas anchas ===== */
@media (min-width: 1440px) {
  .hero {
    padding-top: 4.5rem;
    padding-bottom: 5rem;
  }

  .hero-inner {
    gap: 3rem;
  }

  .hero-media img {
    max-width: 520px;   /* baja el tamaño máximo del tanque */
  }
}
/* =========================
   PROYECTOS – GRID DE TARJETAS
   ========================= */

.section-projects,
#proyectos {
  padding-block: 4rem 6rem;
}

.projects-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: 1.5rem;
}

.projects-header h2 {
  font-size: clamp(2.2rem, 3vw, 2.8rem);
  margin-bottom: 0.75rem;
}

.projects-header p {
  max-width: 640px;
  color: var(--color-text-soft, #c7d0e0);
}

/* Grid responsive */
.projects-grid {
  margin-top: 3rem;
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

/* Tarjeta individual */
.project-card {
  background: rgba(4, 16, 40, 0.96);
  border-radius: 1.2rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
  transition: transform 0.25s ease, box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.6);
  border-color: rgba(255, 255, 255, 0.14);
}

/* Imagen del proyecto */
.project-image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Texto dentro de la tarjeta */
.project-card h3 {
  font-size: 1.1rem;
  margin: 1.1rem 1.25rem 0.25rem;
}

.project-card p {
  font-size: 0.95rem;
  margin: 0 1.25rem 1.3rem;
  color: var(--color-text-soft, #c7d0e0);
}
.cap-section {
    max-width: 900px; /* controla lo ancho del texto */
    margin: 0 auto;  /* centra horizontalmente */
    padding: 80px 40px; /* espacio arriba/abajo y a los lados */
    line-height: 1.6; 
}

.cap-section h2 {
    margin-bottom: 20px;
}

.cap-section p {
    font-size: 1.2rem;
}
/* Sección general de capacidades */
.capabilities-section {
    background-color: #020819;      /* o su color actual */
    padding: 80px 7vw;              /* aire lateral y vertical */
}

/* Cada capacidad */
.capability {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;                      /* espacio entre texto e imagen */
    margin-bottom: 80px;
}

/* Intercalar: las pares se invierten */
.capability:nth-child(even) {
    flex-direction: row-reverse;
}

/* Columna de texto */
.capability-text {
    max-width: 540px;               /* controla lo ancho del párrafo */
}

.capability-text h3 {
    font-size: 2rem;
    margin-bottom: 16px;
}

.capability-text p {
    font-size: 1.15rem;
    line-height: 1.7;
}

/* Columna de imagen */
.capability-image img {
    width: 100%;
    max-width: 420px;               /* tamaño máximo de la máquina */
    display: block;
    border-radius: 16px;            /* esquinas suaves tipo Apple */
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.6));
}

/* Versión móvil */
@media (max-width: 900px) {
    .capability {
        flex-direction: column;
        text-align: center;
        gap: 32px;
    }

    .capability:nth-child(even) {
        flex-direction: column;     /* en móvil ya no alternamos */
    }

    .capability-image img {
        max-width: 260px;
    }
}
/* ===== HISTORIA COBYBSA ===== */

.history-section {
    position: relative;
    min-height: 80vh;
    padding: 100px 8vw;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #020819; /* por si tarda en cargar la imagen */
}

/* Imagen de fondo difuminada */
.history-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("img/historia-cobybsa.jpg"); /* <-- CAMBIE ESTE PATH */
    background-size: cover;
    background-position: center;
    filter: blur(4px);
    transform: scale(1.06);          /* compensa el blur en bordes */
    opacity: 0.55;                   /* qué tanto se ve la imagen */
    z-index: 0;
}

/* Capa oscura encima de la imagen */
.history-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top, rgba(255,255,255,0.06), transparent 55%),
        rgba(0,0,0,0.55);
    z-index: 1;
}

/* Contenedor de contenido */
.history-content {
    position: relative;
    z-index: 2;
    max-width: 960px;
    width: 100%;
    display: flex;
    justify-content: center;
}

/* Tarjeta de texto tipo "glass/card" */
.history-card {
    max-width: 780px;
    padding: 40px 48px;
    border-radius: 24px;
    background: rgba(5, 12, 30, 0.90);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 30px 60px rgba(0,0,0,0.65);
    color: #ffffff;
    text-align: left;
}

.history-card h2 {
    font-size: 2.4rem;
    margin-bottom: 20px;
}

.history-card p {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 16px;
}

.history-card p:last-child {
    margin-bottom: 0;
}

/* Responsivo */
@media (max-width: 900px) {
    .history-section {
        padding: 80px 6vw;
        min-height: 70vh;
    }

    .history-card {
        padding: 28px 22px;
        border-radius: 18px;
        text-align: left;
    }

    .history-card h2 {
        font-size: 1.9rem;
        margin-bottom: 16px;
    }

    .history-card p {
        font-size: 0.98rem;
        line-height: 1.7;
    }
}
/* ===== Timeline dentro de la historia ===== */

.history-timeline {
    margin-top: 32px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

/* Cada columna */
.history-step {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    padding: 20px 20px 24px;
    color: #ffffff;
    font-size: 0.95rem;
    min-height: 500px;   /* Elegante y flexible */
}

/* Fondo con imagen + blur + oscurecido */
.history-step::before {
    content: "";
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(2px);
    transform: scale(1.05);
    opacity: 0.75;
    z-index: 0;
}

.history-step::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.45), rgba(0,0,0,0.85));
    z-index: 1;
}

/* Contenido encima de la imagen */
.history-step-content {
    position: relative;
    z-index: 2;
}

.history-step h3 {
    font-size: 1rem;
    margin-bottom: 6px;
}

.history-step p {
    margin: 0;
    line-height: 1.5;
}

/* Asignar cada imagen a su columna */
.history-step-1::before {
    background-image: url("img/Historia-1.jpg");
}

.history-step-2::before {
    background-image: url("img/Historia-2.jpg");
}

.history-step-3::before {
    background-image: url("img/Historia-3.jpg");
}

/* Responsivo: en móvil se apilan las columnas */
@media (max-width: 900px) {
    .history-timeline {
        grid-template-columns: 1fr;
    }

    .history-step {
        min-height: 130px;
    }
}
/* ===== NOVEDADES ===== */

.news-section {
    padding: 80px 8vw;
    background: radial-gradient(circle at top, rgba(255,255,255,0.03), transparent 60%);
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
}

.news-header h2 {
    font-size: 2rem;
    margin-bottom: 8px;
}

.news-header p {
    font-size: 1rem;
    color: #c5c7d5;
}

/* Botones de navegación */
.news-controls {
    display: flex;
    gap: 10px;
}

.news-btn {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(8, 15, 40, 0.9);
    color: #ffffff;
    font-size: 1.4rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.15s ease, border-color 0.2s ease;
}

.news-btn:hover {
    background: rgba(33, 150, 243, 0.18);
    border-color: rgba(255,255,255,0.35);
    transform: translateY(-1px);
}

.news-btn:active {
    transform: translateY(0);
}

/* Carrusel */
.news-carousel {
    position: relative;
    margin-top: 28px;
    overflow: hidden;
}

.news-track {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    padding-bottom: 10px;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
}

/* Ocultar barra en algunos navegadores (opcional) */
.news-track::-webkit-scrollbar {
    height: 6px;
}
.news-track::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.14);
    border-radius: 999px;
}

.news-card {
    position: relative;
    min-width: 280px;
    max-width: 320px;
    padding: 18px 18px 20px;
    border-radius: 18px;
    scroll-snap-align: start;
    background: radial-gradient(circle at top, rgba(255,255,255,0.05), transparent 55%),
                rgba(5, 12, 30, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.news-tag {
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #8ab4ff;
}

.news-card h3 {
    font-size: 1.05rem;
    margin: 0;
}

.news-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.news-date {
    font-size: 0.8rem;
    margin-top: 6px;
    color: #a7aac5;
}

/* Responsivo */
@media (max-width: 900px) {
    .news-section {
        padding: 60px 6vw;
    }

    .news-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .news-card {
        min-width: 240px;
        max-width: 260px;
    }
}
/* ===== NOVEDADES ===== */

.news-section {
    padding: 80px 8vw;
    background: radial-gradient(circle at top, rgba(255,255,255,0.03), transparent 60%);
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
}

.news-header h2 {
    font-size: 2rem;
    margin-bottom: 8px;
}

.news-header p {
    font-size: 1rem;
    color: #c5c7d5;
}

.news-track {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding-bottom: 12px;
}

.news-track::-webkit-scrollbar {
    height: 6px;
}
.news-track::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.15);
    border-radius: 999px;
}

/* Tarjetas */
.news-card {
    min-width: 300px;
    max-width: 320px;
    background: radial-gradient(circle at top, rgba(255,255,255,0.05), transparent 55%),
                rgba(5, 12, 30, 0.96);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 20px;
    padding: 16px 16px 20px;
    box-shadow: 0 18px 35px rgba(0,0,0,0.55);
    display: flex;
    flex-direction: column;
    gap: 10px;
    scroll-snap-align: start;
    color: #fff;

    /* HoverPro base */
    transform: translateY(0);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease,
        background 0.25s ease;
}

.news-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 26px 55px rgba(0,0,0,0.75);
    border-color: rgba(138, 180, 255, 0.75);
    background: radial-gradient(circle at top, rgba(138,180,255,0.16), transparent 60%),
                rgba(5, 12, 30, 0.98);
}

/* Imagen con zoom suave e iluminación */
.news-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 14px;
    overflow: hidden;
    background: #050816;
    position: relative;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.02);
    filter: brightness(0.96);
    transition:
        transform 0.35s ease,
        filter 0.35s ease;
}

/* Brillo lateral sutil */
.news-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        120deg,
        rgba(138,180,255,0.0) 0%,
        rgba(138,180,255,0.22) 40%,
        rgba(138,180,255,0.0) 80%
    );
    mix-blend-mode: screen;
    opacity: 0;
    transform: translateX(-25%);
    transition:
        opacity 0.35s ease,
        transform 0.35s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.06);
    filter: brightness(1.05);
}

.news-card:hover .news-image::after {
    opacity: 1;
    transform: translateX(0);
}

.news-tag {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #8ab4ff;
    margin-top: 4px;
    transition: color 0.25s ease, opacity 0.25s ease;
}

.news-card h3 {
    font-size: 1.05rem;
    margin: 0;
    transition: color 0.25s ease;
}

.news-card p {
    font-size: 0.95rem;
    line-height: 1.55;
    margin: 0;
    transition: color 0.25s ease;
}

.news-date {
    font-size: 0.82rem;
    color: #a7aac5;
    margin-top: 6px;
    transition: color 0.25s ease, opacity 0.25s ease;
}

/* En hover: título un poco más “luminoso” */
.news-card:hover h3 {
    color: #dfe7ff;
}

.news-card:hover .news-tag {
    color: #c4d7ff;
    opacity: 0.95;
}

.news-card:hover .news-date {
    color: #c0c4dd;
    opacity: 1;
}

/* Tipografía interna */
.news-tag {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #8ab4ff;
    margin-top: 4px;
}

.news-card h3 {
    font-size: 1.05rem;
    margin: 0;
}

.news-card p {
    font-size: 0.95rem;
    line-height: 1.55;
    margin: 0;
}

.news-date {
    font-size: 0.82rem;
    color: #a7aac5;
    margin-top: 6px;
}
