:root {
  --fondo-oscuro: rgba(17, 17, 2, 1); /* o usa 0.9 si quieres semitransparente */
  --dorado: #ff8000;
  --blanco: #ffffff;
  --gris-suave: #e2e8f0;
  --sombra: rgba(0, 0, 0, 0.3);
  --dorado-hover: #b89c2e;
  --header-fondo: rgba(0, 0, 0, 0.8); /* fondo transparente */
}


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, sans-serif;
  background-color: var(--fondo-oscuro);
  color: var(--blanco);
  line-height: 1.6;
}

header {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: var(--header-fondo);
  box-shadow: 0 4px 10px var(--sombra);
  z-index: 999;
}



.container {
  max-width: 1200px;
  margin: auto;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* styles.css */

.logo img {
  max-width: 65px;
  height: auto;
  display: block;
}


/* Ajustes para mÃ³viles */
@media (max-width: 600px) {
  .logo {
    width: 90px;
  }
}

nav ul {
  list-style: none;
  display: flex !important;
  gap: 30px;
  align-items: center; /* para que queden verticalmente centrados */
  flex-wrap: nowrap;   /* que no se vayan a la siguiente l¨ªnea */
}

nav ul li {
  display: inline-block;
}


nav a {
  color: var(--blanco);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5); /* mejora visibilidad sobre fondos */
  text-decoration: none;
  font-weight: 600;
  padding: 10px 15px;
  transition: 0.3s;
}

nav a.active,
nav a:hover {
  color: var(--dorado);
}


/* HERO */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)),
              url('img/hero-bg.jpg') no-repeat center center / cover;
  padding: 0 20px;
}

.hero-content {
  max-width: 800px;
  animation: fadeInUp 1.2s ease-out;
}

.hero h1 {
  font-size: 3.5rem;
  color: var(--dorado);
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.3rem;
  color: var(--gris-suave);
  margin-bottom: 40px;
}

.cta-button {
  background-color: var(--dorado);
  color: var(--fondo-oscuro);
  padding: 15px 35px;
  border: none;
  border-radius: 40px;
  font-size: 1.1rem;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.3s ease;
}

.cta-button:hover {
  background-color: var(--dorado-hover);
  transform: translateY(-2px);
}

/* SECCIONES */
.seccion {
  padding: 100px 20px;
  background-color: var(--fondo-oscuro);
}

.seccion h2 {
  font-size: 2.5rem;
  color: var(--dorado);
  margin-bottom: 20px;
  text-align: center;
}

.seccion h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--dorado);
  margin: 12px auto 0;
  border-radius: 2px;
}

/* SERVICIOS */
.servicio-horizontal {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  background: #ffffff;
  border-left: 6px solid var(--dorado);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  margin-bottom: 60px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.servicio-horizontal:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}

.servicio-imagen {
  flex: 1;
  min-width: 40%;
  max-width: 40%;
  overflow: hidden;
}

.servicio-imagen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.95) contrast(1.05);
}

.servicio-info {
  flex: 2;
  padding: 40px;
  background-color: #ffffff;
  color: #1a1a1a;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  text-align: left;
}

.servicio-info h3 {
  font-size: 1.9rem;
  color: #1e3a8a;
  font-weight: 700;
  margin-bottom: 14px;
}

.servicio-info p {
  color: #1a1a1a;
  line-height: 1.8;
  font-size: 1.1rem;
  font-weight: 500;
}

/* FOOTER */
footer {
  background: #12161d;
  text-align: center;
  padding: 30px 20px;
  color: var(--gris-suave);
  font-size: 0.95rem;
  border-top: 2px solid var(--dorado);
}

/* AnimaciÃ³n */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  nav ul {
    flex-direction: column;
    gap: 10px;
  }

  .container {
    flex-direction: column;
    gap: 20px;
  }

  .servicio-horizontal {
    flex-direction: column;
    text-align: center;
  }

  .servicio-imagen {
    width: 100%;
    height: 220px;
  }

  .servicio-info {
    padding: 30px 20px;
  }

  .servicio-info h3 {
    font-size: 1.6rem;
  }

  .servicio-info p {
    font-size: 1rem;
  }
}

/* Formulario */
form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 30px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

label {
  color: var(--dorado);
  font-weight: 600;
  margin-bottom: 8px;
}

input, textarea {
  padding: 12px;
  border: 2px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  background-color: #f9f9f9;
  color: #000;
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--dorado);
}

.servicios-botones {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.servicio-btn {
  background-color: var(--dorado);
  color: var(--fondo-oscuro);
  border: none;
  padding: 15px 30px;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}

.servicio-btn:hover {
  background-color: var(--dorado-hover);
}

/* MODAL */
.modal-servicio {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  backdrop-filter: blur(4px);
}

.modal-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.modal-contenido {
  position: relative;
  z-index: 2;
  width: 90%;
  max-width: 800px;
  background-color: rgba(14, 17, 22, 0.85);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(0,0,0,0.5);
}

.modal-imagen {
  background-size: cover;
  background-position: center;
  height: 250px;
}

.modal-texto {
  padding: 30px;
  color: var(--gris-suave);
  font-size: 1.1rem;
  line-height: 1.7;
}

.modal-texto h3 {
  color: var(--dorado);
  font-size: 1.8rem;
  margin-bottom: 15px;
}

.cerrar-modal {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 2rem;
  color: var(--blanco);
  cursor: pointer;
  z-index: 3;
}

.oculto {
  display: none;
}

#enfoque {
  background: linear-gradient(rgba(14,17,22,0.85), rgba(14,17,22,0.85)),
              url('img/enfoque-bg.jpg') no-repeat center center / cover;
}

#portafolio {
  background: linear-gradient(rgba(14,17,22,0.88), rgba(14,17,22,0.88)),
              url('img/portafolio-bg.jpg') no-repeat center center / cover;
}

#contacto {
  background: linear-gradient(rgba(14,17,22,0.9), rgba(14,17,22,0.9)),
              url('img/contacto-bg.jpg') no-repeat center center / cover;
}

/* Asegura comportamiento visual limpio */
#enfoque,
#portafolio,
#contacto {
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

#servicios {
  background: linear-gradient(rgba(14,17,22,0.85), rgba(14,17,22,0.85)),
              url('img/servicios-bg.jpg') no-repeat center center / cover;
  background-attachment: fixed;
  padding: 100px 20px; /* ya lo tienes, pero asegÃºrate que estÃ© */
  color: var(--gris-suave);
}

/* ===== PORTFOLIO PERFECTO ===== */
.portfolio-header {
  text-align: center;
  margin-bottom: 50px;
}

.portfolio-title {
  font-size: 2.2rem;
  color: var(--dorado);
  margin-bottom: 10px;
  font-weight: 600;
}

.portfolio-subtitle {
  color: var(--gris-suave);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.portfolio-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.project-card {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.project-image-wrapper {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.project-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-image {
  transform: scale(1.03);
}

.project-badge {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(14, 17, 22, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dorado);
  font-size: 1.4rem;
  font-weight: 600;
}

.project-content {
  padding: 25px;
}

.project-tag {
  display: inline-block;
  background: var(--dorado);
  color: var(--fondo-oscuro);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.project-name {
  color: var(--blanco);
  font-size: 1.5rem;
  margin-bottom: 12px;
  font-weight: 600;
  line-height: 1.3;
}

.project-description {
  color: var(--gris-suave);
  line-height: 1.6;
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.project-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 15px;
}

.project-category {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
}

.project-link {
  color: var(--dorado);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.project-link:hover {
  color: var(--dorado-hover);
  transform: translateX(3px);
}

.project-link.outline {
  border: 1px solid var(--dorado);
  padding: 6px 12px;
  border-radius: 20px;
}

/* Responsive */
@media (max-width: 768px) {
  .portfolio-showcase {
    grid-template-columns: 1fr;
  }
  
  .portfolio-title {
    font-size: 1.8rem;
  }
  
  .project-image-wrapper {
    height: 200px;
  }
}
#####
/* Men¨² en dos l¨ªneas para m¨®vil */
@media (max-width: 768px) {
  header .container {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
  }

  nav {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
    width: 100%;
  }

  .menu-linea {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    flex-wrap: wrap;
  }

  .menu-linea a {
    font-size: 0.95rem;
    padding: 6px 10px;
    color: var(--blanco);
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
  }

  .menu-linea a:hover,
  .menu-linea a.active {
    color: var(--dorado);
  }

  nav ul {
    display: none; /* oculta la versi¨®n antigua del men¨² */
  }
}
/* Asegura que las secciones no queden ocultas tras el header fijo */
#inicio,
#enfoque,
#servicios,
#portafolio,
#contacto {
  scroll-margin-top: 65px; /* Ajusta seg¨²n la altura real de tu header */
}
