/* VARIABLES */
:root {
  --primary: #0f172a;
  --accent: #f59e0b;
  --bg: #f8fafc;
  --text: #334155;
}

/* RESET */
* {
  box-sizing: border-box;
}

/* BODY */
body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: var(--bg);
  color: var(--text);
}

/* NAV */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(15,23,42,.95);
  z-index: 1000;
}

.nav-container {
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:15px 20px;
}

nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 25px;
}

nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}

nav a:hover {
  color: var(--accent);
}

.menu-toggle {
  display:none;
  font-size:1.8rem;
  color:#fff;
  cursor:pointer;
}

@media (max-width: 768px) {
  nav ul {
    position:absolute;
    top:60px;
    left:0;
    width:100%;
    background: rgba(15,23,42,.98);
    flex-direction:column;
    align-items:center;
    max-height:0;
    overflow:hidden;
    transition:max-height .3s ease;
  }

  nav ul.open {
    max-height:400px;
  }

  .menu-toggle {
    display:block;
  }
}

/* LOGO */
.logo {
  color: #fff;
  font-weight: 700;
  font-size: 1.4rem;
}

.logo span {
  color: var(--accent);
}

/* HEADER */
header {
  min-height: 90vh;
  background: linear-gradient(rgba(15,23,42,.75), rgba(15,23,42,.75)),
  url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c');
  background-size: cover;
  background-position: center;
  color: #fff;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:40px 20px;
}

.cta-box {
  background: rgba(15,23,42,.65);
  padding: 40px 30px;
  border-radius: 20px;
  max-width: 900px;
  backdrop-filter: blur(4px);
}

header h1 {
  font-size: 2.8rem;
  margin-bottom: 10px;
}

header p {
  max-width: 700px;
  margin: auto;
}

/* BOTÓN */
.btn {
  display:inline-block;
  margin-top:25px;
  padding:14px 28px;
  background: var(--accent);
  color:#000;
  text-decoration:none;
  font-weight:600;
  border-radius:30px;
  transition: transform .3s, box-shadow .3s;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,.2);
}

/* SECTIONS */
section {
  padding: 80px 20px;
  max-width: 1200px;
  margin: auto;
}

h2 {
  text-align:center;
  font-size:2.2rem;
  margin-bottom:20px;
  color: var(--primary);
}

.about {
  max-width:900px;
  margin:auto;
  text-align:center;
}

/* GRID */
.grid {
  display:grid;
  gap:25px;
}

.services {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

/* CARDS */
.card {
  background:#fff;
  padding:30px 20px;
  border-radius:16px;
  text-align:center;
  box-shadow:0 10px 25px rgba(0,0,0,.08);
  transition: transform .3s;
}

.card:hover {
  transform: translateY(-8px);
}

.card span {
  font-size:2rem;
  display:block;
  margin-bottom:10px;
}

/* PROJECTS */
.projects {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.project-card {
  background:#fff;
  border-radius:16px;
  overflow:hidden;
  box-shadow:0 10px 25px rgba(0,0,0,.08);
  transition: transform .3s;
}

.project-card:hover {
  transform: translateY(-8px);
}

.project-card img {
  width:100%;
  height:200px;
  object-fit:cover;
}

.project-card .content {
  padding:20px;
  text-align:center;
}

/* LIGHTBOX */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.9);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:3000;
}

.lightbox.active {
  display:flex;
}

.lightbox img {
  max-width:90%;
  max-height:90%;
  border-radius:12px;
}

.lightbox span {
  position:absolute;
  top:25px;
  right:35px;
  font-size:2.5rem;
  color:#fff;
  cursor:pointer;
}

/* WHATSAPP */
.float-whatsapp {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 70px;
  height: 70px;
  background: #25D366;
  color: rgb(255, 255, 255);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  box-shadow: 0 8px 25px rgba(37,213,102,0.4);
  z-index: 999;
  transition: var(--transition);
  animation: pulse 2.2s infinite;

  /* Estas líneas eliminan el problema del subrayado */
  text-decoration: none !important;
  border-bottom: none !important;
}

.float-whatsapp i {
  text-decoration: none !important;
  line-height: 1;
}

.float-whatsapp:hover {
  transform: scale(1.15) translateY(-5px);
  box-shadow: 0 15px 40px rgba(37,213,102,0.55);
  text-decoration: none !important; /* también al hover */
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.08); }
}

/* =========================
   CAROUSEL
========================= */
.carousel {
  position: relative;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.2s ease;
}

.carousel-item {
  min-width: 100%;
  padding: 10px;
}

@media (min-width: 768px) {
  .carousel-item {
    min-width: 33.33%;
  }
}


.service-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 12px 12px 0 0;
}
/* =========================
   SERVICIOS ESPECIALIZADOS
========================= */

.service-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0,0,0,0.08);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service-card img {
  width: 100%;
  height: 180px;           
  object-fit: cover;       
  display: block;
}

.service-info {
  padding: 15px;
  text-align: center;
  font-weight: 600;
  flex-grow: 1;
}

/* =========================
   FOOTER
========================= */

footer {
  background: var(--primary);
  color: #cbd5f5;
  padding: 50px 20px 30px;
  margin-top: 80px;
}

.footer-container {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  text-align: center;
}

.footer-box h4 {
  color: #fff;
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.footer-box p,
.footer-box a {
  color: #cbd5f5;
  font-size: 0.95rem;
  text-decoration: none;
  display: block;
  margin-bottom: 8px;
}

.footer-box a:hover {
  color: var(--accent);
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 10px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
  transition: transform .3s, background .3s;
}

.footer-social a:hover {
  transform: translateY(-4px);
  background: var(--accent);
  color: #000;
}

.footer-bottom {
  text-align: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 0.85rem;
  color: #94a3b8;
}

footer {
  text-align: center;
}

.footer-box {
  text-align: center;
}

.footer-box h4,
.footer-box p,
.footer-box a {
  text-align: center;
}

.footer-social {
  justify-content: center;
}