@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  background: #fff;
  color: #111;
}

/* Header y menú */
header.tesla-header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 20px 40px;
  display: flex;
  justify-content: center;
  background: transparent;
  transition: background-color 0.4s ease, box-shadow 0.4s ease;
  z-index: 1000;
}

header.tesla-header.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.container {
  width: 100%;
  max-width: 1200px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-weight: 700;
  font-size: 1.8rem;
  color: #111;
  letter-spacing: 2px;
  user-select: none;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 48px;
}

.nav-links a {
  position: relative;
  font-weight: 500;
  font-size: 1rem;
  color: white;
  text-decoration: none;
  letter-spacing: 3px;
  padding: 4px 0;
  transition: color 0.3s ease;
  user-select: none;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0%;
  height: 2px;
  background-color: #111;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-links a:hover::after,
.nav-links a:focus::after {
  width: 100%;
}

header.tesla-header.scrolled .nav-links a,
header.tesla-header.scrolled .logo {
  color: #111;
}

header.tesla-header .nav-links a,
header.tesla-header .logo {
  color: rgb(0, 0, 0);
}

header.tesla-header.scrolled {
  background-color: white;
}

.menu-toggle {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  user-select: none;
  color: inherit;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    right: 0;
    background: white;
    flex-direction: column;
    gap: 20px;
    width: 200px;
    padding: 20px;
    box-shadow: -2px 0 8px rgba(0,0,0,0.1);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    height: calc(100vh - 70px);
    overflow-y: auto;
  }

  .nav-links.show {
    transform: translateX(0);
  }

  .nav-links a {
    color: #111;
    font-size: 1.2rem;
    letter-spacing: 1.5px;
  }
}

/* Carrusel */

.carousel-container {
  margin-top: 70px;
  position: relative;
  overflow: hidden;
  padding-bottom: 0;
}

.carousel {
  position: relative;
  width: 100%;
  height: 600px;
  max-height: 900px;
  overflow: hidden;
}

.slides {
  display: flex;
  width: 700%;
  height: 100%;
  transition: transform 1s ease-in-out;
}

.slides img {
  width: calc(100% / 7);
  height: 100%;
  object-fit: cover;
  flex-shrink: 0;
}

/* Texto dinámico sobre el carrusel */
.carousel-text {
  position: absolute;
  bottom: 120px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  text-shadow: 0 0 8px rgba(0,0,0,0.7);
  pointer-events: none;
  z-index: 20;
  width: 90%;
  max-width: 800px;
  text-align: center;
}

.carousel-btn {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  padding: 15px 30px;
  font-size: 1rem;
  background: white;
  color: black;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 2px;
  z-index: 10;
}

.carousel-btn:hover,
.carousel-btn:active {
  background: black;
  color: white;
}

/* Flechas del carrusel */

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.4);
  border: none;
  color: white;
  font-size: 2.5rem;
  padding: 5px 15px;
  cursor: pointer;
  border-radius: 5px;
  user-select: none;
  z-index: 30;
  transition: background-color 0.3s ease;
}

.carousel-arrow:hover {
  background: rgba(0,0,0,0.7);
}

.carousel-arrow.prev {
  left: 10px;
}

.carousel-arrow.next {
  right: 10px;
}

@media (max-width: 768px) {
  .carousel-arrow {
    display: none;
  }
}

/* Sección info con nuevo diseño */

.info-section {
  position: relative;
  background: #000;
  color: #fff;
  padding: 120px 20px 100px;
  overflow: hidden;
  font-family: 'Century Gothic', sans-serif;
  z-index: 0;
}

#particles-js {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.info-content {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 60px;
  z-index: 10;
  align-items: flex-start;
  flex-wrap: wrap;
}

.left-side {
  flex: 1 1 300px;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.info-title {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.info-image {
  width: 100%;
  border-radius: 15px;
  object-fit: cover;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
  transition: transform 0.3s ease;
}

.info-image:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.4);
}

.right-side {
  flex: 2 1 500px;
  font-size: 1.2rem;
  line-height: 1.6;
  letter-spacing: 0.5px;
  user-select: text;
  color: #eee;
  background: rgba(255, 255, 255, 0.05);
  padding: 30px 40px;
  border-radius: 15px;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
  transition: 0.3s ease;
}

.right-side:hover {
  background: rgba(255, 255, 255, 0.12);
}

@media (max-width: 900px) {
  .info-content {
    flex-direction: column;
    gap: 40px;
  }

  .left-side,
  .right-side {
    max-width: 100%;
    flex: 1 1 auto;
  }

  .info-title {
    font-size: 2.2rem;
  }

  .right-side {
    font-size: 1.1rem;
    padding: 20px 25px;
  }
}

/* NUEVA SECCIÓN PROYECTOS */

.projects-section {
  background-color: #121212;
  color: #ddd;
  padding: 80px 20px;
  font-family: 'Montserrat', sans-serif;
}

.projects-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 50px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.left-projects {
  flex: 1 1 350px;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.left-projects img {
  width: 100%;
  border-radius: 15px;
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease;
}

.left-projects img:hover {
  transform: scale(1.05);
}

.project-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.project-btn {
  background: #222;
  border: none;
  padding: 8px 15px;
  color: #ddd;
  border-radius: 25px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-weight: 600;
  font-size: 0.9rem;
  user-select: none;
}

.project-btn:hover,
.project-btn.active {
  background: #00b894;
  color: white;
}

.right-projects {
  flex: 1 1 450px;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.projects-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #00b894;
}

.projects-features {
  list-style: none;
  padding-left: 0;
}

.projects-features li {
  font-size: 1.2rem;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Íconos con emojis */
.icon-hosting::before {
  content: "🌐";
  font-size: 1.5rem;
}

.icon-maintenance::before {
  content: "🛠️";
  font-size: 1.5rem;
}

.icon-delivery::before {
  content: "🚚";
  font-size: 1.5rem;
}

.btn-plans {
  background: #00b894;
  color: white;
  border: none;
  padding: 14px 30px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 1rem;
  width: max-content;
  cursor: pointer;
  align-self: start;
  transition: background-color 0.3s ease;
}

.btn-plans:hover {
  background: #019875;
}

/* Rating estrellas */

.rating {
  display: flex;
  gap: 10px;
  font-size: 2.5rem;
  cursor: pointer;
  user-select: none;
}

.rating .star {
  color: #444;
  transition: color 0.3s ease;
}

.rating .star.filled {
  color: #00b894;
}

/* Responsive */

@media (max-width: 900px) {
  .projects-container {
    flex-direction: column;
    align-items: center;
  }

  .left-projects, .right-projects {
    max-width: 100%;
  }

  .right-projects {
    align-items: center;
    text-align: center;
  }

  .btn-plans {
    width: 100%;
  }
}

/* Botón WhatsApp flotante */

#whatsapp-btn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  border-radius: 50%;
  box-shadow: 0 3px 10px rgba(37, 211, 102, 0.7);
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  transition: background-color 0.3s ease;
}

#whatsapp-btn:hover {
  background-color: #128c44;
}

#whatsapp-btn img {
  width: 32px;
  height: 32px;
  user-select: none;
  pointer-events: none;
}

/* Paneles de planes estilo Tesla moderno */

/* Sección de planes */
.plans-section {
  background: #0d0d0d;
  padding: 100px 20px 80px;
  color: #fff;
  text-align: center;
  font-family: 'Montserrat', sans-serif;
}

.plans-title {
  font-size: 2.6rem;
  font-weight: 700;
  margin-bottom: 50px;
  color: #00b894;
}

.plans-container {
  display: flex;
  gap: 32px;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

.plan {
  flex: 1 1 320px;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 32px;
  background: linear-gradient(145deg, #111, #1a1a1a);
  border-radius: 18px;
  box-shadow:
    0 8px 24px rgba(0, 184, 148, 0.3),
    inset 0 0 15px rgba(255, 255, 255, 0.05);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  cursor: default;
  height: 520px;
}

.plan h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: #00b894;
}

.plan p {
  font-size: 1rem;
  color: #ccc;
  text-align: left;
  flex-grow: 1;
  line-height: 1.6;
}

.plan-button {
  width: 100%;
  max-width: 280px;
  margin-top: auto;
  background: linear-gradient(145deg, #00b894, #019875);
  border: none;
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 14px 40px;
  border-radius: 40px;
  cursor: pointer;
  transition: 0.3s ease, box-shadow 0.3s ease;
  user-select: none;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 184, 148, 0.5);
}

.plan-button:hover {
  background: linear-gradient(145deg, #019875, #007a5a);
  box-shadow: 0 6px 20px rgba(0, 184, 148, 0.8);
}

@media (max-width: 950px) {
  .plan {
    height: auto;
    max-width: 100%;
  }

  .plan-button {
    max-width: 100%;
  }
}




.site-footer {
  background-color: #111;
  color: #ccc;
  padding: 40px 20px;
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.2);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  justify-content: center;
}

.footer-text {
  font-size: 1rem;
  margin: 0;
  color: #aaa;
}

.social-links {
  display: flex;
  gap: 20px;
}

.social-icon {
  font-size: 1.8rem;
  color: #ffffff;
  transition: color 0.3s ease;
}

.social-icon:hover {
  color: #ffffff;
}

.login-icon a {
  display: flex;
  align-items: center;
  gap: 6px;
  color: white;
  font-size: 1rem;
  text-decoration: none;
  transition: color 0.3s ease;
}

header.tesla-header.scrolled .login-icon a {
  color: #111;
}

.login-icon a:hover {
  color: #00b894;
}

.login-icon i {
  font-size: 1.2rem;
}

.projects-glass-section {
  position: relative;
  background: url('img/fondo-proyectos.jpg') no-repeat center center/cover;
  padding: 80px 20px;
  max-width: 1200px;
  margin: 60px auto;
  border-radius: 20px;
  color: #111;
  font-family: 'Montserrat', sans-serif;
  text-align: center;
  overflow: hidden;
}

/* Fondo cristalino encima */
.projects-glass-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: saturate(180%) blur(15px);
  -webkit-backdrop-filter: saturate(180%) blur(15px);
  border-radius: 20px;
  z-index: 0;
}

.projects-glass-title {
  font-size: 2.8rem;
  margin-bottom: 50px;
  font-weight: 700;
  user-select: none;
  position: relative;
  z-index: 1;
}

.projects-glass-container {
  display: flex;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.project-card {
  background: rgba(255, 255, 255, 0.6);
  border-radius: 16px;
  padding: 20px;
  width: 300px;
  user-select: none;
  color: #111;
  box-shadow: none; /* sin sombra */
  transition: transform 0.3s ease;
}

.project-card:hover {
  transform: translateY(-8px);
}

.project-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 15px;
  user-select: none;
  pointer-events: none;
}

.project-card h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
  font-weight: 700;
  color: #111;
}

.project-link {
  display: inline-block;
  font-weight: 600;
  font-size: 1rem;
  color: #111;
  text-decoration: none;
  border: 2px solid #111;
  padding: 8px 18px;
  border-radius: 30px;
  transition: background-color 0.3s ease, color 0.3s ease;
  user-select: none;
}

.project-link:hover,
.project-link:focus {
  background-color: #111;
  color: #fff;
  outline: none;
}

.collage-section {
  max-width: 1400px; /* Más ancho */
  margin: 80px auto;
  padding: 60px 20px;
  font-family: 'Montserrat', sans-serif;
  text-align: center;
}

.collage-title {
  font-size: 3.2rem;
  font-weight: 700;
  margin-bottom: 50px;
  user-select: none;
  color: #111;
}

.collage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); /* columnas más anchas */
  grid-auto-rows: 180px; /* filas más altas */
  gap: 20px;
  justify-items: center;
}

.collage-grid .item {
  overflow: hidden;
  border-radius: 20px;
  cursor: pointer;
  transition: transform 0.3s ease;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  width: 100%;
  height: 100%;
}

.collage-grid .item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
  user-select: none;
  pointer-events: none;
}

.collage-grid .item:hover {
  transform: scale(1.07);
  box-shadow: 0 12px 30px rgba(0,0,0,0.18);
}

.collage-grid .item:hover img {
  transform: scale(1.15);
}

/* Tamaños variados más grandes */
.collage-grid .large {
  grid-column: span 3;
  grid-row: span 3;
  height: 560px; /* altura mayor */
}

.collage-grid .medium {
  grid-column: span 2;
  height: 360px;
}

.collage-grid .small {
  height: 180px;
}

/* Responsive ajustes */
@media (max-width: 768px) {
  .collage-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    grid-auto-rows: 140px;
  }
  .collage-grid .large {
    grid-column: span 2;
    grid-row: span 2;
    height: 280px;
  }
  .collage-grid .medium {
    grid-column: span 1;
    height: 140px;
  }
  .collage-grid .small {
    height: 140px;
  }
}

body {
  font-family: 'Montserrat', sans-serif;
  background: #fff;
  margin: 0;
  padding: 0;
}

.pricing-section {
  max-width: 1100px;
  margin: 80px auto;
  padding: 20px;
  text-align: center;
}

.toggle-container {
  display: inline-flex;
  background: #fde9d9;
  border-radius: 40px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  margin-bottom: 50px;
  user-select: none;
}

.toggle-btn {
  padding: 16px 45px;
  border: none;
  background: transparent;
  font-weight: 700;
  font-size: 1.3rem;
  cursor: pointer;
  color: #aa4f00;
  flex: 1;
  user-select: none;
  transition: background-color 0.3s ease;
}

.toggle-btn.active {
  background: #ff7f11;
  color: white;
  box-shadow: inset 0 0 8px rgba(0,0,0,0.2);
}

.toggle-btn:not(.active):hover {
  background: #f9c26b;
}

.plans-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  justify-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.plan-card {
  background: #fff4e6;
  border-radius: 20px;
  padding: 40px 35px;
  width: 100%;
  max-width: 360px;
  box-shadow: 0 8px 24px rgba(255, 127, 17, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  user-select: none;
  transition: transform 0.3s ease;
}

.plan-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(255, 127, 17, 0.5);
}

.plan-card h3 {
  font-size: 2rem;
  margin-bottom: 25px;
  color: #ff7f11;
}

.plan-card .price {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 25px;
  color: #aa4f00;
}

.plan-card ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 30px;
  text-align: left;
  width: 100%;
  color: #774a00;
  font-size: 1.1rem;
}

.plan-card ul li {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.plan-card ul li::before {
  content: "✔";
  color: #ff7f11;
  font-weight: 700;
}

.select-btn {
  padding: 16px 45px;
  background: #ff7f11;
  border: none;
  color: white;
  font-weight: 700;
  font-size: 1.3rem;
  border-radius: 35px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  width: 100%;
  user-select: none;
}

.select-btn:hover {
  background: #cc6600;
}

/* Responsive */
@media (max-width: 950px) {
  .plans-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .plan-card {
    max-width: 100%;
  }
}

/* ====== GRID GALERÍA ====== */
.gallery-3x4 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

/* ====== TARJETA ====== */
.gcard {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.35s ease;
  aspect-ratio: 4 / 3; /* mantiene la misma proporción en todas las tarjetas */
}

.gcard img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* recorta la imagen para llenar la tarjeta sin deformarla */
  display: block;
  transition: transform 0.35s ease;
}

/* Hover en la imagen */
.gcard:hover img {
  transform: scale(1.05);
}

/* Degradado oscuro desde abajo, más ligero */
.gcard::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0));
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 1; /* queda detrás del texto */
}

.gcard:hover::after {
  opacity: 1;
}

/* ====== TEXTO E ICONO ====== */
.gcard-info {
  position: absolute;
  left: 14px;
  bottom: 12px;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
  gap: 4px;
  transform: translateY(20px); /* oculta hacia abajo */
  opacity: 0; /* invisible por defecto */
  transition: transform 0.35s ease, opacity 0.35s ease;
  z-index: 3; /* sobre el degradado */
}

.gcard:hover .gcard-info {
  transform: translateY(0);
  opacity: 1;
}

.gcard-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: bold;
}

.gcard-sub {
  margin: 2px 0 5px;
  font-size: 0.85rem;
  opacity: 0.85;
}

.gcard-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(255,255,255,0.16);
  transition: 0.25s ease, transform 0.25s ease;
}

.gcard-cta:hover {
  background: rgba(255,255,255,0.28);
  transform: scale(1.1);
}

/* ====== RESPONSIVO ====== */
@media (max-width: 992px) {
  .gallery-3x4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .gallery-3x4 {
    grid-template-columns: 1fr;
  }
}



