* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  width: 100%;
  overflow-x: hidden;
}

body {
  width: 100%;
  overflow-x: hidden;
  position: relative;
  font-family: "Inter", sans-serif;
  background-color: #f9fafb;
  color: #111827;
  line-height: 1.5;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

a {
  text-decoration: none;
  color: inherit;
}

:root {
  --primary: #00a5fb;
  --primary-dark: #0088cc;
  --secondary: #8fd41d;
  --dark-bg: #0b111e;
  --card-bg: #ffffff;
  --shadow-sm:
    0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.02);
  --shadow-md:
    0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.02);
}

.gradient-text {
  background: linear-gradient(135deg, #00a5fb, #8fd41d);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

/* ===== HEADER (transparente inicial) ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: transparent;
  transition:
    background-color 0.3s ease,
    box-shadow 0.3s ease;
  z-index: 1000;
  border-bottom: none;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  min-height: 70px;
}

.logo img {
  width: 150px;
  display: block;
}

.nav-menu {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  font-weight: 500;
  color: white;
  transition: color 0.3s ease;
  font-size: 18px;
  position: relative;
  padding: 5px 0;
}
.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #00a5fb, #8fd41d);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 2px;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link:hover {
  color: white;
}

/* ===== MENÚ HAMBURGUESA ===== */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  z-index: 1001;
  background: transparent;
  border: none;
  padding: 8px;
}

.bar {
  width: 25px;
  height: 3px;
  background-color: white;
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
}

/* Estado cuando el header hace scroll (fondo blanco) */
.header.scrolled {
  background: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid #e5e7eb;
  top: 0;
}

.header.scrolled .navbar {
  padding: 0.5rem 2rem;
}

.header.scrolled .nav-link {
  color: #1f2937;
  font-size: 16px;
}
.header.scrolled .nav-link::after {
  background: linear-gradient(90deg, #00a5fb, #8fd41d);
}

.header.scrolled .nav-link:hover {
  color: #00a5fb;
}

.header.scrolled .bar {
  background-color: #1f2937;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  margin-top: 0;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-container {
  position: relative;
  z-index: 2;
  color: white;
  width: 100%;
  margin-top: 30px;
}

.hero-content {
  max-width: 700px;
  margin-left: 0;
  margin-right: auto;
  text-align: left;
}

.hero-badge {
  background: rgba(0, 165, 251, 0.2);
  backdrop-filter: blur(4px);
  padding: 0.3rem 1rem;
  border-radius: 40px;
  font-size: 0.8rem;
  display: inline-block;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1.8rem;
  border-radius: 40px;
  font-weight: 600;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, #00a5fb, #0088cc);
  color: white;
}

.btn-primary:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 20px -5px rgba(0, 165, 251, 0.4);
}

.btn-outline {
  border: 1px solid white;
  background: transparent;
  color: white;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Secciones generales */
.section-padding {
  padding: 60px 0 30px;
}

.light-bg {
  background-color: #f3f4f6;
}

.section-header {
  margin-top: 2rem;
  text-align: center;
  margin-bottom: 3rem;
  margin-bottom: 10px !important;
}

.section-subtitle {
  color: #00a5fb;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-top: 0.5rem;
}

/* Servicios */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--card-bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
  padding: 2rem;
  border-radius: 25px;
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
  transform-origin: center;
  text-align: center;
  border: 1px solid #eef2ff;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  z-index: 1;
}

.service-card::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 70%;
  background: linear-gradient(
    to top,
    #0b111e 0%,
    rgba(11, 17, 30, 0.8) 50%,
    rgba(11, 17, 30, 0) 100%
  );
  z-index: 1;
  border-radius: 28px;
}

.service-card > * {
  position: relative;
  z-index: 2;
}

.service-card:hover {
  transform: translateY(-3px) scale(1.04) !important;
  box-shadow: 0 20px 20px -3px rgba(0, 0, 0, 0.2);
  z-index: 3;
}

@media (prefers-reduced-motion: reduce) {
  .service-card {
    transition: none;
  }
}

.service-card h3 {
  font-size: 2rem;
  margin: 0.9rem;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  text-align: center;
  flex-wrap: wrap;
}

.service-card h3 i {
  font-size: 1.5rem;
  background: linear-gradient(135deg, #00a5fb, #8fd41d);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  flex-shrink: 0;
}

.service-card p {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.service-card .btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.1);
  color: white;
  backdrop-filter: blur(4px);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  align-self: center;
}

.service-card .btn-outline:hover {
  background: rgba(0, 165, 251, 0.8);
  border-color: transparent;
  transform: translateY(-2px);
}

/* ===== SECCIÓN TECNOLOGÍAS ===== */
.tech-new-section {
  padding: 100px 0 0;
  background-color: #f3f4f6;
}

.tech-grid-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.tech-left {
  grid-row: span 2;
}

.tech-left h2 {
  font-size: 2.2rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.3;
}

.tech-left .highlight {
  background: linear-gradient(135deg, #00a5fb, #8fd41d);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.tech-right-top {
  grid-column: 2 / 3;
  grid-row: 1 / 2;
  background: white;
  padding: 1.5rem;
  border-radius: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid #eef2ff;
}

.tech-right-top p {
  font-size: 1rem;
  line-height: 1.5;
  color: #374151;
  margin: 0;
}

.tech-right-top strong {
  color: #00a5fb;
}

.tech-cards {
  grid-column: 2 / 3;
  grid-row: 2 / 3;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  z-index: 100;
}

.tech-card-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: white;
  padding: 1.2rem 1.5rem;
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  border: 1px solid #eef2ff;
}

.tech-card-item:hover {
  transform: translateX(8px);
  box-shadow: var(--shadow-md);
  border-color: #00a5fb;
}

.card-icon {
  width: 50px;
  height: 50px;
  background: rgba(0, 165, 251, 0.1);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #00a5fb;
  transition: transform 0.3s;
}

.tech-card-item:hover .card-icon {
  transform: scale(1.05);
}

.card-content p {
  margin: 0;
  font-size: 0.95rem;
  color: #1f2937;
  line-height: 1.4;
}

.card-content strong {
  font-weight: 600;
  color: #111827;
}

.tech-bottom-image {
  grid-column: 1 / 3;
  margin-top: -250px;
  position: relative;
  z-index: 0;
  border-radius: 32px;
  overflow: hidden;
}

.tech-bottom-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.tech-bottom-image:hover img {
  transform: scale(1.02);
}

/* Carruseles */
.carousel-container {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 20px;
  background: white;
  box-shadow: var(--shadow-md);
}

.carousel-wrapper {
  display: flex;
  transition: transform 0.5s ease;
}

.carousel-slide {
  flex: 0 0 100%;
  min-width: 0;
}

.carousel-slide img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.slide-caption {
  padding: 1.5rem;
  background: white;
  text-align: center;
}

.testimonial-slide {
  padding: 3rem;
  text-align: center;
  background: white;
}

.quote-icon {
  font-size: 2.5rem;
  color: #00a5fb;
  margin-bottom: 1rem;
}

.client-info {
  margin-top: 1rem;
}

.client-info strong {
  display: block;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  transition: 0.2s;
  z-index: 2;
}

.carousel-btn:hover {
  background: #00a5fb;
}

.prev {
  left: 20px;
}

.next {
  right: 20px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 16px;
}

.dot {
  width: 10px;
  height: 10px;
  background: #cbd5e1;
  border-radius: 50%;
  cursor: pointer;
  transition: 0.2s;
}

.dot.active {
  background: #00a5fb;
  width: 24px;
  border-radius: 10px;
}

/* Contacto */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 2rem;
}

.contact-form-card,
.contact-info-card {
  background: white;
  border-radius: 32px;
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 28px;
  font-family: inherit;
  font-size: 1rem;
  transition: 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #00a5fb;
  box-shadow: 0 0 0 3px rgba(0, 165, 251, 0.2);
}

.btn-block {
  width: 100%;
  justify-content: center;
}

.contact-info-card .info-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.8rem;
  align-items: center;
}

.info-item i {
  font-size: 1.4rem;
  color: #00a5fb;
  width: 32px;
}

.form-message {
  margin-top: 1rem;
  font-size: 0.9rem;
  text-align: center;
}

/* ===== FOOTER ===== */
.footer {
  background: #0b111e;
  color: #a0a8c3;
  padding: 4rem 0 1.5rem;
  position: relative;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #00a5fb, #8fd41d, #00a5fb);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-brand .logo img {
  width: 150px;
  margin-bottom: 1rem;
}

.footer-brand p {
  color: #a0a8c3;
  line-height: 1.6;
  margin-top: 0.5rem;
}

.footer h4 {
  color: white;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.footer h4::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, #00a5fb, #8fd41d);
}

.footer-links ul,
.footer-legal ul {
  list-style: none;
  padding: 0;
}

.footer-links li,
.footer-legal li {
  margin-bottom: 0.75rem;
}

.footer-links a,
.footer-legal a {
  color: #a0a8c3;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.footer-links a:hover,
.footer-legal a:hover {
  color: #00a5fb;
  transform: translateX(5px);
  display: inline-block;
}

.social-icons {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.social-icons a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a0a8c3;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-icons a:hover {
  background: linear-gradient(135deg, #00a5fb, #8fd41d);
  color: white;
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
}

/* ===== MODAL ===== */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease;
}

.modal-content {
  background: white;
  border-radius: 32px;
  padding: 2.5rem;
  text-align: center;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  animation: slideInUp 0.4s ease;
}

.modal-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #00a5fb, #8fd41d);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.modal-icon i {
  font-size: 3rem;
  color: white;
}

.modal-content h3 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.75rem;
}

.modal-content p {
  color: #6b7280;
  font-size: 1rem;
  margin-bottom: 2rem;
  line-height: 1.5;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .tech-grid-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .tech-left {
    grid-row: auto;
  }

  .tech-right-top {
    grid-column: auto;
    grid-row: auto;
  }

  .tech-cards {
    grid-column: auto;
    grid-row: auto;
  }

  .tech-bottom-image {
    grid-column: auto;
    margin-top: 0;
  }

  .tech-left h2 {
    font-size: 1.8rem;
  }

  .footer-content {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .project-card {
    border-radius: 10px !important;
  }
  .footer-brand {
    justify-items: center;
  }
  .container {
    padding: 0 1.5rem;
  }

  .header {
    width: 100%;
    left: 0;
    right: 0;
  }

  .navbar {
    padding: 1rem;
    width: 100%;
  }

  /* Mostrar el ícono hamburguesa en móvil */
  .hamburger {
    display: flex !important;
  }

  .nav-menu {
    position: fixed !important;
    left: -100% !important;
    top: 0 !important;
    flex-direction: column !important;
    /* Fondo desenfocado - CAMBIO IMPORTANTE */
    background: rgba(11, 17, 30, 0.212) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    width: 100% !important;
    height: 100vh !important;
    text-align: center !important;
    transition: 0.3s ease-in-out !important;
    padding: 100px 2rem 2rem !important;
    gap: 2rem !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3) !important;
    z-index: 999 !important;
    overflow-y: auto !important;
    margin: 0 !important;
    border-right: none !important;
  }

  .nav-menu::before {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: linear-gradient(
      135deg,
      rgba(0, 165, 251, 0.1),
      rgba(143, 212, 29, 0.05)
    ) !important;
    pointer-events: none !important;
  }

  .nav-menu.active {
    left: 0 !important;
  }

  .nav-item {
    width: 100%;
    margin: 0.5rem 0;
  }

  .nav-link {
    color: white !important;
    font-size: 1.3rem !important;
    font-weight: 600 !important;
    display: block !important;
    padding: 14px 20px !important;
    border-radius: 50px !important;
    transition: all 0.3s ease !important;
    letter-spacing: 0.5px !important;
  }

  .nav-link:hover {
    background: rgba(252, 252, 252, 0.15) !important;
    transform: translateX(5px) !important;
  }

  /* Animación del ícono hamburguesa */
  .hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .hero-container {
    text-align: center;
    padding: 20px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .testimonial-slide {
    padding: 1.5rem;
  }

  .hero-buttons {
    flex-wrap: wrap;
    justify-content: center;
  }

  .service-card h3 {
    font-size: 1.5rem;
  }

  .contact-form-card,
  .contact-info-card {
    padding: 1.5rem;
  }
}

@media (max-width: 600px) {
  .tech-card-item {
    flex-direction: column;
    text-align: center;
    padding: 1.2rem;
  }

  .card-icon {
    margin-bottom: 0.5rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer h4::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .social-icons {
    justify-content: center;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .navbar {
    padding: 0.75rem;
  }

  .logo img {
    width: 120px;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }

  .section-header h2 {
    font-size: 1.5rem;
  }

  .service-card {
    min-height: 400px;
    padding: 1.5rem;
  }

  .service-card h3 {
    font-size: 1.2rem;
    gap: 0.3rem;
  }

  .service-card h3 i {
    font-size: 1.3rem;
  }

  .modal-content {
    padding: 1.5rem;
  }

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

/* ===== PROYECTOS - TARJETAS PROFESIONALES ===== */
.project-card {
  background: white;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  margin: 1rem;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 40px -12px rgba(0, 0, 0, 0.2);
}

.project-card img {
  width: 100%;
  object-fit: cover;
  display: block;
}

.project-info {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-info h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #0b111e;
  line-height: 1.3;
}

.project-info p {
  color: #4b5563;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.btn-view-project {
  background: transparent;
  border: none;
  color: #00a5fb;
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  padding: 0.5rem 0;
  transition: gap 0.2s ease;
  width: fit-content;
}

.btn-view-project i {
  font-size: 0.8rem;
  transition: transform 0.2s ease;
}

.btn-view-project:hover {
  gap: 0.8rem;
}

.btn-view-project:hover i {
  transform: translateX(3px);
}

/* Ajuste del carrusel para que las tarjetas se vean bien */
.carousel-container {
  background: transparent;
  box-shadow: none;
}

.carousel-wrapper {
  align-items: stretch;
}

.carousel-slide {
  padding: 0.5rem;
  box-sizing: border-box;
}

.modal-proyecto {
  max-width: 700px;
  width: 90%; /* Altura máxima relativa a la pantalla */
  overflow-y: auto; /* Scroll vertical si el contenido excede */
  display: flex;
  flex-direction: column;
  padding: 0; /* Eliminamos padding general */
}

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

.modal-proyecto h3 {
  font-size: 1.8rem;
  margin: 1.5rem 1.5rem 0.5rem;
  color: #0b111e;
}

.modal-proyecto p {
  margin: 0 1.5rem 1.5rem;
  color: #374151;
  line-height: 1.6;
  word-wrap: break-word;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 25px;
  font-size: 2rem;
  font-weight: bold;
  color: white;
  background: rgba(0, 0, 0, 0.5);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
  z-index: 10;
}

.modal-close:hover {
  background: #00a5fb;
  color: white;
}

@media (max-width: 768px) {
  .project-info h3 {
    font-size: 1.2rem;
  }
  .modal-proyecto {
    max-height: 80vh;
    border-radius: 10px;
  }
  .modal-proyecto img {
    max-height: 160px;
  }
  .modal-proyecto h3 {
    font-size: 1.3rem;
    margin: 1rem 1rem 0.5rem;
  }
  .modal-proyecto p {
    margin: 0 1rem 1rem;
    font-size: 0.9rem;
  }
}
