/* =========================================================
   ESTILOS GENERALES
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
  
body {
    font-family: "Segoe UI", Arial, sans-serif;
    background: #3C3747;
    color: #ffffff;
    overflow-x: hidden;
}
  
a {
    color: inherit;
    text-decoration: none;
}
  
/* =========================================================
   NAVBAR
========================================================= */
  
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(60, 55, 71, 0.92);
    backdrop-filter: blur(6px);
    padding: 10px 0;
    z-index: 200;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    height: 95px;
}
  
.nav-container {
    width: 94%;
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
  
.nav-logo img {
    height: 85px;
    margin-left: -15px;
}
  
nav ul {
    list-style: none;
    display: flex;
    gap: 45px;
}
  
nav ul li a {
    font-size: 1.3rem;
    font-weight: 600;
    text-shadow: 0 0 6px rgba(0,0,0,0.7);
    transition: 0.2s ease;
}
  
nav ul li a:hover {
    color: #dcdcdc;
    text-shadow: 0 0 10px rgba(255,255,255,1);
}

/* =========================================================
   HERO
========================================================= */

.hero {
    position: relative;
    background: url("../img/Fondo.png") no-repeat top center;
    background-size: cover;
    background-position: top;
    margin-top: 95px;
    padding: 260px 0 260px;
    overflow: hidden;
}

.hero-container {
    max-width: 1400px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    padding: 0 40px;
}

/* Imagen izquierda */
.hero-image {
    width: 41%;
    position: relative;
}

.hero-image img {
    width: 100%;
    border-radius: 6px;
}

.hero-image .curve {
    width: 120px;
    height: 3px;
    background: #BEBFC6;
    border-radius: 50px;
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
}

/* Texto derecha */
.hero-text {
    width: 36%;
    color: #fff;
    margin-left: 80px;     /* 🔥 MOVER TEXTO MÁS A LA DERECHA */
    text-align: center;
}

.tag {
    font-size: 13px;
    padding: 6px 18px;
    border: 1px solid #b9b9b9;
    border-radius: 25px;
    display: inline-block;
    margin-bottom: 25px;
}

.hero-text h1 {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 25px;
}

.subtext {
    font-size: 18px;
    line-height: 1.4;
}

/* =========================================================
   SEPARADOR
========================================================= */
  
.divider {
    height: 20px;
    background: url("../img/separator.png") no-repeat center;
    background-size: cover;
    margin: 10px 0 25px 0;
}

/* =========================================================
   QUIÉNES SOMOS
========================================================= */
  
.about-section {
    padding: 100px 0 200px;
    text-align: center;
    background: linear-gradient(to bottom,
        rgba(255,255,255,0.04),
        rgba(0,0,0,0.18));
    backdrop-filter: blur(6px);
}
  
.about-title {
    font-size: 3.4rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 25px;
}

.about-title::after {
    content: "";
    width: 320px;
    height: 4px;
    background: url("../img/separator.png") no-repeat center;
    background-size: cover;
    display: block;
    margin: 12px auto 0;
}
  
.about-text {
    max-width: 1200px;
    margin: 0 auto;
    font-size: 1.55rem;
    line-height: 1.9;
    opacity: 0.95;
}

/* =========================================================
   PORTAFOLIO
========================================================= */
  
.portfolio-section {
    padding: 100px 0 200px;
    text-align: center;
}
  
.portfolio-title {
    font-size: 3rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 15px;
}
  
.title-underline {
    width: 260px;
    height: 4px;
    background: url("../img/separator.png") no-repeat center;
    margin: 0 auto 45px auto;
}
  
.portfolio-desc {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 40px;
}
  
.portfolio-grid {
    width: 95%;
    max-width: 1500px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 55px 40px;
    justify-items: center;
}
  
.portfolio-grid img {
    width: 374px;
    height: 281px;
    border-radius: 12px;
    object-fit: contain;
    background: #2d2936;
    cursor: pointer;
    transition: 0.25s;
}
  
.portfolio-grid img:hover {
    transform: scale(1.05);
    filter: brightness(1.12);
}
  
@media (max-width: 1024px) {
    .portfolio-grid {
        grid-template-columns: repeat(2,1fr);
    }
}
  
@media (max-width: 600px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
  
    .portfolio-grid img {
        width: 90%;
        height: auto;
    }
}
  
/* =========================================================
     LIGHTBOX
========================================================= */
  
#lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}
  
#lightbox-img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 12px;
    opacity: 0;
    transition: 0.3s;
}
  
#prev-btn, #next-btn, #close-btn {
    position: absolute;
    font-size: 50px;
    cursor: pointer;
    color: #fff;
    user-select: none;
}
  
#prev-btn { left: 40px; top: 50%; transform: translateY(-50%); }
#next-btn { right: 40px; top: 50%; transform: translateY(-50%); }
#close-btn { top: 30px; right: 40px; }

/* =========================================================
   SERVICIOS
========================================================= */

.services-section {
    padding: 100px 0 200px;
    text-align: center;
}
  
.services-title {
    font-size: 3.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    color: #ffffff;
}
  
.services-separator {
    width: 260px;
    height: 4px;
    margin: 10px auto 40px auto;
    background: url("separator.png") no-repeat center;
    background-size: cover;
}
  
.services-grid {
    width: 90%;
    max-width: 1400px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 60px 70px;
}
  
.service-icon {
    font-size: 2.6rem;
    margin-bottom: 14px;
}
  
.service-item h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 10px;
}
  
.service-item p {
    font-size: 1.1rem;
    opacity: 0.9;
}


  /* =============== CONTACTO PREMIUM =============== */

.contact-section {
  width: 100%;
  padding: 100px 0 200px;
  text-align: center;
}

.contact-title {
  font-size: 3rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 10px;
 
}

.contact-separator {
  width: 260px;
  height: 4px;
  margin: 0 auto 60px auto;
  background: url("separator.png") no-repeat center;
  background-size: cover;
}

/* CONTENEDOR: 2 TARJETAS */
.contact-container {
  width: 90%;
  max-width: 1500px;
  margin: 0 auto;

  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

/* ================= TARJETA DE INFO ================= */
.contact-info,
.contact-form {
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(7px);
  border-radius: 22px;
  padding: 55px;
  box-shadow: 0px 20px 50px rgba(0,0,0,0.35);
  text-align: left;
}

/* TITULO */
.contact-info h3 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 25px;
}

/* TEXTO + ICONOS */
.contact-info p {
  font-size: 1.25rem;
  margin: 15px 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.contact-info i {
  font-size: 1.35rem;
  opacity: 0.85;
}

/* Notita inferior */
.contact-note {
  margin-top: 25px;
  opacity: 0.85;
  font-size: 1.15rem;
}

/* ================= FORMULARIO ================= */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 18px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 12px;

  font-size: 1.15rem;
  color: white;
  outline: none;
  transition: 0.25s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: white;
  background: rgba(255,255,255,0.15);
}

.contact-form textarea {
  height: 160px;
  resize: none;
}

/* BOTÓN */
.contact-form button {
  margin-top: 10px;
  padding: 18px;
  width: 100%;

  background: linear-gradient(to right, #ffffff, #dcdcdc);
  color: #1b1b1b;
  border: none;
  border-radius: 12px;

  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 1px;

  cursor: pointer;
  transition: 0.25s ease;
}

.contact-form button:hover {
  transform: scale(1.03);
  box-shadow: 0px 10px 25px rgba(255,255,255,0.3);
}

/* =============== RESPONSIVE =============== */

/* TABLET */
@media (max-width: 950px) {
  .contact-container {
    grid-template-columns: 1fr;
    padding: 0 20px;
  }

  .contact-info,
  .contact-form {
    padding: 35px;
  }

  .contact-info h3 {
    text-align: center;
  }

  .contact-info p {
    justify-content: center;
  }
}

/* MÓVIL */
@media (max-width: 600px) {
  .contact-title {
    font-size: 2.2rem;
  }

  .contact-info h3 {
    font-size: 1.6rem;
  }

  .contact-form button {
    font-size: 1.1rem;
    padding: 15px;
  }
}
/* ====================== NAVBAR RESPONSIVE ====================== */

.hamburger {
  display: none;
  font-size: 32px;
  cursor: pointer;
  color: white;
}

@media (max-width: 900px) {
  nav ul {
    position: absolute;
    top: 100px;
    right: 0;
    width: 100%;
    background: rgba(60, 55, 71, 0.95);
    flex-direction: column;
    text-align: center;
    padding: 20px 0;
    gap: 25px;
    display: none; /* oculto por defecto */
  }

  nav ul.show {
    display: flex; /* se muestra al abrir */
  }

  .hamburger {
    display: block;
  }
  
  .nav-container {
    justify-content: space-between;
  }
}

/* ===================== FOOTER PREMIUM DELGADO ===================== */

.footer {
  width: 100%;
  padding: 20px 0;   /* ← MÁS DELGADO */
  background: url("../img/footer.png") center/cover no-repeat;
  text-align: center;

  display: flex;
  justify-content: center;
  align-items: center;

  border-top: 1px solid rgba(255,255,255,0.25);
  box-shadow: 0 -3px 15px rgba(0,0,0,0.25);
}

.footer-content p {
  color: #3C3747;     /* color que pediste */
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 1px;
  margin: 0;
  opacity: 0.95;
}

/* RESPONSIVE */
@media (max-width: 600px) {
  .footer {
    padding: 15px 0;  /* aún más delgado en móvil */
  }

  .footer-content p {
    font-size: 0.9rem;
  }
}
/* =========================
   QUIÉNES SOMOS — MÓVIL
========================= */
@media (max-width: 600px) {

  .about-section {
    padding: 120px 20px;   /* MUCHÍSIMO más pequeño */
  }

  .about-title {
    font-size: 2.4rem;
    letter-spacing: 1px;
  }

  .about-title::after {
    width: 220px;
  }

  .about-text {
    font-size: 1.2rem;
    line-height: 1.55;
    max-width: 95%;
    margin: 0 auto;
  }
}

/* =========================================================
   AJUSTES RESPONSIVE GLOBALES
========================================================= */

/* Evita desbordes horizontales */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

/* =========================================================
   NAVBAR MOBILE FIX
========================================================= */
@media (max-width: 900px) {

  header {
    height: 80px;
  }

  .nav-logo img {
    height: 60px;
    margin-left: 0;
  }

  nav ul {
    top: 80px;
  }

  nav ul li a {
    font-size: 1.2rem;
  }
}

/* =========================================================
   HERO RESPONSIVE (FIX PRINCIPAL)
========================================================= */

@media (max-width: 1024px) {
  .hero {
    padding: 180px 0;
  }

  .hero-container {
    gap: 30px;
  }

  .hero-text {
    width: 45%;
    margin-left: 0;
  }
}

@media (max-width: 768px) {

  .hero {
    padding: 140px 0 120px;
  }

  .hero-container {
    flex-direction: column;
    text-align: center;
  }

  .hero-image,
  .hero-text {
    width: 100%;
  }

  .hero-text {
    margin-left: 0;
    padding: 0 15px;
  }

  .hero-text h1 {
    font-size: 2.3rem;
  }

  .subtext {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {

  .hero-text h1 {
    font-size: 1.9rem;
  }

  .tag {
    font-size: 12px;
    padding: 5px 14px;
  }
}

/* =========================================================
   PORTAFOLIO AJUSTE FINO
========================================================= */

@media (max-width: 768px) {
  .portfolio-title {
    font-size: 2.2rem;
  }

  .portfolio-desc {
    font-size: 1.1rem;
    padding: 0 15px;
  }
}

/* =========================================================
   SERVICIOS RESPONSIVE (FIX GRID)
========================================================= */

@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
}

@media (max-width: 600px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .services-title {
    font-size: 2.3rem;
  }

  .service-item h3 {
    font-size: 1.25rem;
  }

  .service-item p {
    font-size: 1.05rem;
  }
}

/* =========================================================
   CONTACTO MOBILE MEJORA UX
========================================================= */

@media (max-width: 600px) {

  .contact-section {
    padding: 120px 0;
  }

  .contact-info,
  .contact-form {
    padding: 30px 22px;
  }

  .contact-info p {
    font-size: 1.1rem;
  }

  .contact-form input,
  .contact-form textarea {
    font-size: 1.05rem;
    padding: 15px;
  }
}

/* =========================================================
   FOOTER FIX
========================================================= */

@media (max-width: 600px) {
  .footer-content p {
    line-height: 1.4;
    text-align: center;
  }
}
