/* ===== Import fonts ===== */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;700&display=swap');

/* ===== CSS Variables ===== */
:root {
  --bg: #ffffff;
  --dark: #08313A;
  --accent: #D4AF37;
  --muted: #6b7376;
  --container: 1200px;
}

/* ===== Base ===== */
* {
  box-sizing: border-box;
}
body {
  font-family: Roboto, system-ui, Arial, sans-serif;
  margin: 0;
  color: #122;
  line-height: 1.6;
  background: var(--bg);
  scroll-behavior: smooth;
}
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Header ===== */
.site-header {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  background: rgba(255,255,255,0.9);
  backdrop-filter: saturate(120%) blur(4px);
  border-bottom: 1px solid #e9ecef;
  z-index: 1000;
  transition: background 0.3s ease;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo-text .brand {
  font-weight: 700;
  color: var(--dark);
  letter-spacing: 0.08em;
  font-size: 18px;
  line-height: 1;         /* <-- AÑADIDO: Reduce el espacio interno del texto */
  margin-bottom: 4px;    /* <-- AÑADIDO: Mueve el texto de abajo hacia arriba */
}
.logo-text .tag {
  font-size: 12px;
  color: var(--muted);
  line-height: 1;         /* <-- AÑADIDO: Reduce el espacio interno del texto */
  margin-top: 4;          /* <-- AÑADIDO: Asegura que no haya margen superior */
}
.main-nav {
  display: flex;
  gap: 14px;
  align-items: center;
}
.main-nav .nav-link {
  color: var(--dark);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 6px;
  font-weight: 500;
  transition: background 0.3s ease, color 0.3s ease;
}
.main-nav .nav-link.cta {
  background: var(--dark);
  color: #fff;
  padding: 8px 14px;
}
.main-nav .nav-link:hover {
  background: var(--accent);
  color: var(--dark);
}

/* ===== Mobile menu ===== */
.menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    width: 36px;
    height: 24px;
    position: relative;
    z-index: 1100;
    font-size: 24px;
    line-height: 1;
    text-align: center;
    color: var(--dark);
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    transition: transform 0.3s ease;
    display: block;
}

.menu-toggle.active {
    transform: rotate(90deg);
}

.main-nav {
    display: flex;
    gap: 14px;
    align-items: center;
}
.main-nav .nav-link {
    color: var(--dark);
    text-decoration: none;
    padding: 8px 10px;
    border-radius: 6px;
    font-weight: 500;
    transition: background 0.3s ease, color 0.3s ease;
}

/* Ocultamos el menú y mostramos el toggle en pantallas pequeñas */
@media (max-width: 900px) {
    .main-nav {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 60px;
        right: 20px;
        background: #fff;
        border: 1px solid #e9ecef;
        border-radius: 8px;
        padding: 10px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-10px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }
    .main-nav.active {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }
    .menu-toggle {
        display: block; /* Aseguramos que se muestre en móvil */
    }
}

/* Ocultamos el botón de hamburguesa en pantallas grandes */
@media (min-width: 901px) {
    .menu-toggle {
        display: none;
    }
}

/* ===== Hero ===== */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  color: #fff;
  position: relative;
  background-image: url('img/landingImg.png');
  background-size: cover;
  background-position: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,rgba(8,49,58,0.6),rgba(8,49,58,0.6));
}
.hero-inner {
  position: relative;
  z-index: 2;
  padding: 60px 20px;
  animation: fadeInUp 1s ease forwards;
}
.hero h1 {
  font-size: 40px;
  max-width: 900px;
  margin: 0 0 12px;
  font-weight: 400;
}
.lead {
  font-size: 18px;
  margin-bottom: 18px;
  color: rgba(255,255,255,0.95);
}

/* ===== Buttons ===== */
.button {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--dark);
  text-decoration: none;
  font-weight: 700;
  margin-right: 10px;
  transition: transform 0.2s ease, background 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}
.button.secondary {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.12);
  color: #fff;
}
.button:hover {
  transform: translateY(-2px);
  background: #c49b2d;
  box-shadow: 0 6px 14px rgba(0,0,0,0.2);
}

/* ===== Friendly messages (2.3) ===== */
.alert-friendly {
  padding: 14px 20px;
  background: rgba(212,175,55,0.15);
  border-left: 5px solid var(--accent);
  color: var(--dark);
  border-radius: 6px;
  font-size: 15px;
  margin: 20px 0;
  animation: fadeInUp 0.5s ease;
}
.alert-friendly strong {
  color: var(--accent);
}

/* ===== Animations ===== */
@keyframes fadeInUp {
  from {opacity:0;transform:translateY(20px);}
  to {opacity:1;transform:translateY(0);}
}

/* ===== Scroll to top ===== */
.scroll-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--dark);
  color: #fff;
  padding: 10px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  display: none;
  z-index: 999;
  transition: background 0.3s ease;
}
.scroll-to-top:hover {
  background: var(--accent);
  color: var(--dark);
}

/* ===== Footer ===== */
.site-footer {
  padding: 12px 0;
  background: #fbfbfb;
  border-top: 1px solid #ececec;
  text-align: center;
  color: var(--muted);
  position: sticky;
  bottom: 0;
}

/* ===== Responsive adjustments ===== */
@media (max-width:900px) {
  .project-grid, .about-grid {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: 28px;
  }
}

/* ===== Service Section ===== */
.services h2 {
    margin-top: 80px; /* ajusta el valor según necesites */
	text-align: center;
}
.service-lead {
    max-width: 700px;
    margin: 0 auto 40px;
    text-align: center;
    color: var(--muted);
    font-size: 18px;
    font-weight: 300;
}
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.service-card {
    background: #fbfbfb;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}
.service-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark);
    margin: 15px 0 10px;
}
.service-card p {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.6;
}
.card-icon {
    display: inline-flex;
    background: var(--dark);
    color: #fff;
    padding: 12px;
    border-radius: 50%;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}
.service-card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
    background: var(--accent);
    color: var(--dark);
}

/* Corrección de scroll para el menú fijo en todas las secciones con ID */
section[id] {
    scroll-margin-top: 80px !important;  
}



/* Estilos para la nueva sección de servicios */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: #fbfbfb;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 30px;
    text-align: left;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.service-card h3 {
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    color: var(--dark);
    margin: 15px 0 10px;
}

.service-card p {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.6;
}

.service-card ul {
    list-style: none;
    padding-left: 0;
}

.service-card li {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23D4AF37'%3E%3Cpath d='M9 16.2l-3.5-3.5a.996.996 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41l4.19 4.19c.39.39 1.02.39 1.41 0L20.41 7.7a.996.996 0 0 0 0-1.41c-.39-.39-1.02-.39-1.41 0L9 16.2z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: 18px 18px;
    background-position: left center;
    padding-left: 25px;
    margin-bottom: 8px;
}

.specialization-item {
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.specialization-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.specialization-item h4 {
    margin-top: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--dark);
}

.card-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 48px;
    height: 48px;
    background: var(--dark);
    color: #fff;
    border-radius: 50%;
    margin: 0 auto 15px;
}

.card-icon i {
    font-size: 24px;
}

/* Estilos para la lista de modalidades de proyectos */
.modalities-list {
    list-style: none;
    padding-left: 0;
    font-size: 15px;
    line-height: 1.6;
    color: var(--muted);
}

.modalities-list li {
    /* Aquí se sobrescriben las reglas generales para asegurar la alineación */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23D4AF37'%3E%3Cpath d='M9 16.2l-3.5-3.5a.996.996 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41l4.19 4.19c.39.39 1.02.39 1.41 0L20.41 7.7a.996.996 0 0 0 0-1.41c-.39-.39-1.02-.39-1.41 0L9 16.2z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: 18px 18px;
    background-position: 0 4px;
    padding-left: 25px;
    margin-bottom: 8px;
}

.modalities-list strong {
    color: var(--dark);
}
/* ===== Accordion for Specializations ===== */
.accordion-item {
    border-bottom: 1px solid #eee;
    margin-bottom: 10px;   /* separación uniforme entre items */
    padding-bottom: 10px;
}

.accordion-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    color: var(--dark);
    text-align: left;
    -webkit-tap-highlight-color: transparent;
}

/* hover del header */
.accordion-header:hover {
    color: var(--accent);
}

/* Control uniforme de h4 y h5 dentro del header 
.accordion-header h4,
.accordion-header h5 {
    margin: 0;           elimina márgenes por defecto 
    padding: 0;          elimina padding por defecto 
    font-size: 18px;     tamaño uniforme 
    font-weight: 600;    peso uniforme 
    color: inherit;
} */

/* Encabezados del acordeón con jerarquía */
.accordion-header h4 {
    font-size: 18px;  /* más grande */
    margin: 0;
    padding: 0;
    font-weight: 600;
}

.accordion-header h5 {
    font-size: 16px;  /* ligeramente más pequeño */
    margin: 0;
    padding: 0;
    font-weight: 600;
}


/* icono del header */
.accordion-icon {
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.accordion-header.active .accordion-icon {
    transform: rotate(180deg);
}

/* contenido del acordeón */
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding-left: 0;
	margin-top: 0.75rem; /* espacio adicional entre el título y el texto */
	line-height: 1.6;    /* mejora la legibilidad */
}

/* párrafos dentro del contenido */
.accordion-content p {
    margin: 0 0 10px 0;  /* margen inferior controlado */
    line-height: 1.5;
}

/*  estilos especiales: eslogan de proyectos */
.project-slogan {
    display: block;
    color: var(--accent);
    font-weight: 800;
    font-size: 1.2rem;
    line-height: 1.2;
    margin-bottom: 12px;  /* ajustable según espaciado con .slogan-divider */
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
}

.slogan-divider {
    border: none;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--accent), transparent);
    margin: 8px 0 16px;
}

/* ===== MERAKI Roadmap (namespaced: mr-) - VERSIÓN FINAL INTEGRADA ===== */
:root{
  --mr-accent: var(--accent, #D4AF37);
  --mr-dark: var(--dark, #08313A);
  --mr-muted: var(--muted, #6b7376);
}

/* Base */
.mr-roadmap { padding: 48px 0 72px; }
.mr-roadmap h2 { text-align:center; color:var(--mr-dark); margin-bottom:8px; }
.mr-intro { text-align:center; color:var(--mr-muted); margin-bottom:28px; }

/* Timeline container: línea CONTINUA */
.mr-timeline { 
  max-width:1100px; 
  margin: 0 auto 28px; 
  position: relative;          /* necesario para ::before */
  padding: 12px 0;
}

/* línea vertical continua (detrás de todo) */
.mr-timeline::before{
  content: "";
  position: absolute;
  left: 50%;
  top: 8px;
  bottom: 8px;
  width: 6px;
  transform: translateX(-50%);
  background: var(--mr-accent);
  border-radius: 4px;
  z-index: 1;
  box-shadow: 0 0 0 4px rgba(212,175,55,0.06);
}

/* Ocultar las "mr-line" por fila (evita segmentos) si existen en HTML */
.mr-line { display: none !important; }

/* Row layout (3 columnas: izquierda / centro / derecha) */
.mr-row {
  display: grid;
  grid-template-columns: 1fr 80px 1fr;
  gap: 20px;
  align-items: center;             /* CENTRADO vertical de centro+icon respecto a las tarjetas */
  margin: 18px 0;
  position: relative;
  opacity: 0;
  transform: translateY(18px);
  transition: transform .58s cubic-bezier(.2,.9,.2,1), opacity .58s ease;
  /* ensure rows are stacking context for pseudo element */
}

/* Nudo (dot) por fila — visible sobre la línea continua */
.mr-row::before{
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--mr-accent);
  z-index: 3; /* encima de la línea, por debajo del icono y de la tarjeta */
  box-shadow: 0 0 0 6px rgba(212,175,55,0.06);
  pointer-events: none;
}

/* Center column: icon (por encima de la línea continua) */
.mr-center { position: relative; display:flex; align-items:center; justify-content:center; z-index:4; }
.mr-icon {
  width:48px; height:48px; border-radius:50%;
  background:var(--mr-dark); color:#fff; display:flex; align-items:center; justify-content:center;
  box-shadow:0 6px 18px rgba(4,20,26,0.12);
  margin: 0;
  transform: scale(.85);
  transition: transform .28s cubic-bezier(.2,.9,.2,1), box-shadow .28s, background .2s;
  z-index:5; /* por encima del nudo y de la línea */
}

/* Icon : allow custom icon font or emoji centered */
.mr-icon svg, .mr-icon img { max-width:60%; max-height:60%; display:block; }

/* cuando la fila se revela, el icono "pop" */
.mr-row.mr-visible .mr-icon { transform: scale(1); }

/* Card (izquierda / derecha) */
.mr-col { min-height:1px; }
.mr-card {
  background:#fff; border-radius:12px; padding:18px; 
  box-shadow:0 10px 30px rgba(9,30,40,0.06);
  border:1px solid rgba(4,20,26,0.04);
  max-width:520px;
  position: relative;
  z-index: 6; /* encima de la línea y nudo */
  transition: transform .26s cubic-bezier(.2,.9,.2,1), box-shadow .26s ease;
  transform: translateY(0); /* no interferir con reveal que actúa sobre .mr-row */
  cursor: default;
}

/* Hover (efecto visible) */
.mr-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 28px 54px rgba(4,20,26,0.14);
}

/* Heading / texto */
.mr-card h3 { margin:0 0 8px; color:var(--mr-dark); font-size:18px; }
.mr-card p { margin:0; color:var(--mr-muted); line-height:1.55; }

/* small subtle accent line on card left to visually connect with timeline (optional) */
.mr-card::after {
  content: "";
  position: absolute;
  left: -6px;
  top: 20px;
  bottom: 20px;
  width: 4px;
  background: transparent; /* keep transparent by default to avoid clashes */
  border-radius: 2px;
  display: none;
}

/* Tabs */
.mr-tabs { display:flex; flex-wrap:wrap; gap:10px; justify-content:center; margin:20px 0; z-index:3; }
.mr-tab {
  background:#fff; border:1px solid #e9ecef; padding:8px 14px; border-radius:999px; cursor:pointer;
  color:var(--mr-dark); font-weight:600;
}
.mr-tab--active, .mr-tab[aria-selected="true"] { background:var(--mr-dark); color:#fff; border-color:var(--mr-dark); }

/* Panels */
.mr-panels { max-width:1100px; margin: 10px auto 0; }
.mr-panel {
  background:#fff; border-radius:10px; border:1px solid #eef2f3; padding:18px; 
  box-shadow:0 8px 20px rgba(4,20,26,0.04);
  opacity: 0; transform: translateY(10px);
  transition: transform .45s cubic-bezier(.2,.9,.2,1), opacity .45s;
}
.mr-panel.mr-visible { opacity:1; transform:none; }
.mr-panel[hidden] { display:none !important; }

/* Reveal: cuando la fila se vuelve visible */
.mr-row.mr-visible { opacity:1; transform:none; }

/* Ajustes visuales para accesibilidad y focus */
.mr-card:focus { outline: 3px solid rgba(8,49,58,0.12); transform: translateY(-8px); }

/* Responsive: apilar bien en móvil */
@media (max-width: 900px) {
  .mr-row { grid-template-columns: 1fr 60px; grid-auto-rows:auto; align-items: start; }
  .mr-row:nth-child(even) .mr-col--right { grid-column: 1 / -1; order: 3; }
  .mr-row:nth-child(even) .mr-center { grid-column: 2 / 3; order: 2; }
  .mr-row:nth-child(even) .mr-col--left { grid-column: 1 / -1; order:1; }
  .mr-row:nth-child(odd) .mr-col--left { grid-column: 1 / -1; order:1; }
  .mr-row:nth-child(odd) .mr-center { grid-column: 2 / 3; order:2; }
  .mr-row:nth-child(odd) .mr-col--right { grid-column: 1 / -1; order:3; }

  .mr-center { padding: 6px 0; align-items:center; }
  .mr-card { max-width:100%; }
  .mr-timeline { padding: 6px 12px; }

  /* Ajustes: mover el nudo un poco para no tapar texto si el icono es grande */
  .mr-row::before { width:12px; height:12px; box-shadow: 0 0 0 4px rgba(212,175,55,0.05); }
}

/* Small screens: stack fully, show smaller dots at left */
@media (max-width: 520px) {
  .mr-row { grid-template-columns: 1fr; gap:12px; }
  .mr-center { display:block; text-align:left; margin-left:6px; }
  .mr-timeline::before { display:none; } /* esconder la línea en mobile si no encaja */
  .mr-icon { position: relative; left:0; margin-bottom:6px; }

  /* keep a small left dot in mobile using row pseudo */
  .mr-row::before {
    left: 22px;
    transform: translate(-50%,-50%);
    width:10px;
    height:10px;
  }

  .mr-card { padding-left: 26px; } /* breathing room from the dot */
}

/* Optional: ensure images or svgs in icon scale and remain centered */
.mr-icon img, .mr-icon svg { display:block; width:60%; height:auto; }

/* Ensure pointer events and stacking for interactive areas */
.mr-card, .mr-icon { pointer-events: auto; }


/* ===== Sobre Nosotros Section (iconos a la derecha + tarjetas flotantes) ===== */
:root{
  --bg:#ffffff;
  --dark:#08313A;
  --accent:#D4AF37;
  --muted:#6b7376;
  --card-bg:#fbfbfb;
  --card-border:#e9ecef;
}

.about {
  text-align:center;
  padding-bottom:40px;
}
.about h2 {
  margin-top:80px;
  margin-bottom:28px;
  color:var(--dark);
  font-weight:700;
}

/* Layout: texto izquierda, iconos derecha */
.about-grid {
  display:flex;
  gap:28px;
  align-items:flex-start;
  justify-content:space-between;
  max-width:1100px;
  margin:0 auto;
  padding:0 18px;
  position: relative;
}

/* ABOUT CONTENT */
.about-content {
  position:relative;
  flex:1 1 65%;
  text-align:justify;
  max-width: 925px; /* ajustado para que la frase límite termine aquí */
}
.about-content p { 
  margin-bottom:18px; 
  color:var(--muted); 
  line-height:1.6; 
}
.value-propositions { 
  list-style:none; 
  padding:0; 
  margin:0 0 20px; 
}
.value-propositions li {
  background:var(--bg);
  border-left:3px solid var(--accent);
  padding:10px 15px;
  margin-bottom:10px;
  border-radius:4px;
  color:var(--dark);
}

/* ICON COLUMN (derecha, borde de la sección) */
.icon-column {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
  justify-content: flex-start;
  position: absolute;
  right: 0;               /* alineado al borde derecho */
  top: 0;
  height: 100%;
  top: 60%;
  transform: translateY(-50%);
  padding-top: 20; /* ya no hace falta */
  perspective: 600px;      /* efecto 3D */
  z-index: 20;
}

/* ICON BUTTON */
.icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
  color: var(--dark);     /* negro por defecto */
  font-size: 2rem;        /* 50% más grande que 1.3rem */
}
.icon-btn:hover, .icon-btn:focus {
  transform: rotateY(15deg) rotateX(5deg) translateZ(2px);
  color: var(--accent);   /* dorado al hover */
  box-shadow: 0 12px 24px rgba(212,175,55,0.35);
}

.icon {
  width: 72px;  /* 50% más grande que 48px */
  height: 72px;
}

.icon-label {
  font-size: 1rem;
  margin-top: 0.4rem;
  color: inherit;
}

/* Floating cards container */
.floating-cards {
  position:absolute;
  inset:0;
  pointer-events:none;
}


/* Tarjeta emergente */
.floating-card {
  position:absolute;
  min-width:300px;
  max-width:420px;
  background:var(--card-bg);
  border:1px solid var(--card-border);
  border-radius:12px;
  padding:16px 18px;
  box-shadow:0 14px 36px rgba(8,49,58,0.08);
  transition:opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  opacity:0;
  transform:translateY(-6px) scale(0.995);
  visibility:hidden;
  pointer-events:auto;
  z-index:12;
  color:var(--dark);
  border-left: 5px solid var(--accent); /* borde izquierdo dorado */
}
.floating-card h4 { 
  margin:0 0 8px; 
  font-size:17px; 
  font-weight:700; 
}
.floating-card ul { 
  padding-left:14px; 
  margin:6px 0 0; 
}
.floating-card li { 
  margin-bottom:8px; 
  color:var(--muted); 
  font-size:14px; 
}

/* mostrar */
.floating-card.show {
  opacity:1;
  transform:translateY(0) scale(1);
  visibility:visible;
}

/* Responsivo */
@media (max-width:767px) {
  .about-grid { flex-direction:column; align-items:flex-start; }
  .icon-column { flex-direction:row; gap:12px; width:100%; justify-content:flex-start; margin-top:14px; position:static; transform:none; padding:0; perspective:none; }
  .icon-btn { width:56px; height:56px; font-size:1.3rem; }
  .icon { width:48px; height:48px; }
  .floating-card { position:fixed; left:50%; top:16%; transform:translate(-50%,0) scale(0.995); min-width:280px; max-width:92%; }
}

/* --- Sección Proyectos --- */
.section-proyectos {
  padding: 50px 20px;
  background-color: #f9f9f9;
  font-family: 'Roboto', sans-serif;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 40px;
  color: #08313A;
}

/* --- Filtros --- */
.filtros {
  text-align: center;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 10px 20px;
  margin: 0 5px;
  background: #08313A;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
}

.filter-btn.active,
.filter-btn:hover {
  background: #D4AF37;
  color: #08313A;
}

/* --- Grid de tarjetas --- */
.proyectos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
}

/* --- Tarjeta de proyecto --- */
.proyecto-card {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.proyecto-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.proyecto-card:hover {
  transform: translateY(-5px);
}

.proyecto-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.proyecto-content {
  padding: 20px;
}

.proyecto-content h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0;
  color: #08313A;
}

.proyecto-subtitle {
  font-size: 1rem;
  margin: 10px 0;
  color: #555;
}

.btn-info {
  background-color: #08313A;
  color: #fff;
  border: none;
  padding: 10px 15px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s ease;
}

.btn-info:hover {
  background-color: #D4AF37;
  color: #08313A;
}

/* --- Modal --- */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 20px;
  overflow: auto;
}

.modal.show {
  display: flex;
}

.modal-content {
  background: #fff;
  padding: 24px;
  border-radius: 10px;
  max-width: 600px;
  width: 90%;
  max-height: 90vh; /* Limita la altura al 90% de la pantalla */
  overflow-y: auto;  /* Activa scroll interno si el contenido es largo */
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  position: relative;
}

.modal-content h2 {
  margin-top: 0;
  font-size: 1.6rem;
  color: #08313A;
}

.modal-content p {
  margin: 10px 0;
  font-size: 1rem;
  color: #333;
}

.modal-content p strong {
  color: #08313A;
}

/* Botón de cerrar siempre visible */
.modal .close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 10;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .modal-content {
    padding: 20px;
  }

  .proyecto-img {
    height: 260px;
  }

  .proyecto-content h3 {
    font-size: 1.1rem;
  }

  .modal-content h2 {
    font-size: 1.4rem;
  }
}

/* ======================================= */
/* ===== Contact Section (ACTUALIZADO) ===== */
/* ======================================= */
#contact {
    text-align: center;
}
.section-lead-contact {
    max-width: 700px;
    margin: 0 auto 40px;
    color: var(--muted);
    font-size: 18px;
    font-weight: 300;
}
.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr; /* Formulario un poco más ancho que la info */
    gap: 40px;
    text-align: left;
}
@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr; /* Columna única en móvil */
    }
}

/* --- Formulario --- */
.contact-form {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.contact-form h3 {
    margin-top: 0;
    color: var(--dark);
    font-weight: 700;
    font-size: 24px;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 10px;
    margin-bottom: 20px;
}
.contact-form label {
    display: block;
    margin-bottom: 5px;
    margin-top: 15px;
    font-weight: 500;
    color: var(--dark);
}
.contact-form .required {
    color: var(--accent);
    font-weight: 700;
}
.contact-form input:not([type="checkbox"]),
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}
.form-actions {
    margin-top: 25px;
}
/* Estilo para la nota de privacidad */
.privacy-note {
    display: flex;
    align-items: center;
    margin-top: 15px;
    font-size: 14px;
}
.privacy-note input[type="checkbox"] {
    margin-right: 10px;
    min-width: 16px; 
    min-height: 16px;
    cursor: pointer;
}
.privacy-note a {
    color: var(--dark);
    text-decoration: underline;
}

/* --- Información de contacto --- */
.contact-info {
    padding: 30px 0;
}
.contact-info h3 {
    color: var(--dark);
    font-weight: 700;
    font-size: 24px;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 10px;
    margin-bottom: 30px;
}
.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}
.info-item i {
    color: var(--accent);
    font-size: 24px;
    min-width: 30px;
    text-align: center;
    margin-right: 15px;
}
.info-item p {
    margin: 0;
    font-size: 16px;
    color: var(--muted);
}
.info-item a {
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}
.info-item a:hover {
    color: var(--accent);
}

/* --- Mapa --- */
.map-container {
    margin-top: 40px;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.map-container h4 {
    background: var(--dark);
    color: #fff;
    padding: 10px 15px;
    margin: 0;
    font-size: 16px;
}
#map {
    width: 100%;
    height: 300px;
}
#map iframe {
    display: block; 
    width: 100%;
    height: 100%;
}

/* --- Mensajes del Formulario (alert-friendly ya existe) --- */
.alert-friendly.success {
    background: rgba(40, 167, 69, 0.15); /* Verde suave */
    border-left-color: #28a745; /* Verde fuerte */
    color: #28a745;
}
.alert-friendly.error {
    background: rgba(220, 53, 69, 0.15); /* Rojo suave */
    border-left-color: #dc3545; /* Rojo fuerte */
    color: #dc3545;
}

