/* ═══════════════════════════════════════════
   VARIABLES & RESET
═══════════════════════════════════════════ */
:root {
  --cyan: #00B4D8;
  --cyan-dark: #0096C7;
  --cyan-deep: #0077B6;
  --cyan-light: #90E0EF;
  --cyan-pale: #CAF0F8;
  --white: #ffffff;
  --dark: #0D1B2A;
  --dark-2: #1B2B3B;
  --gray-light: #f4f8fa;
  --gray-mid: #e0eef4;
  --text-dark: #0D1B2A;
  --text-mid: #3a5568;
  --text-light: #718096;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-xl: 40px;

  --shadow-sm: 0 2px 12px rgba(0, 150, 199, 0.08);
  --shadow-md: 0 8px 32px rgba(0, 150, 199, 0.14);
  --shadow-lg: 0 20px 60px rgba(0, 150, 199, 0.18);

  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

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

/* ═══════════════════════════════════════════
   UTILITIES
═══════════════════════════════════════════ */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.label {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan-dark);
  background: rgba(0, 150, 199, 0.08);
  padding: 4px 14px;
  border-radius: 99px;
  margin-bottom: 16px;
  border: 1px solid rgba(0, 150, 199, 0.18);
}

.label-light {
  color: rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.2);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 24px;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header .section-title {
  margin-bottom: 0;
}

/* ═══════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════ */
.btn-primary {
  display: inline-block;
  background: var(--cyan-dark);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  padding: 14px 36px;
  border-radius: var(--radius-xl);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.02em;
}

.btn-primary:hover {
  background: var(--cyan-deep);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 120, 182, 0.35);
}

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--cyan-dark);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  padding: 13px 34px;
  border-radius: var(--radius-xl);
  border: 1.5px solid var(--cyan-dark);
  cursor: pointer;
  transition: var(--transition);
  margin-top: 24px;
}

.btn-secondary:hover {
  background: var(--cyan-dark);
  color: var(--white);
  transform: translateY(-2px);
}

/* ═══════════════════════════════════════════
   REVEAL ANIMATION
═══════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal:nth-child(1) { transition-delay: 0s; }
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }

/* ═══════════════════════════════════════════
   NAVBAR
═══════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: var(--transition);
  padding: 0;
}

.navbar.scrolled {
  background: rgba(13, 27, 42, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 2px 24px rgba(0,0,0,0.2);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  color: var(--white);
  letter-spacing: 0.05em;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 36px;
  align-items: center;
}

.nav-links a {
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  font-weight: 400;
  transition: color 0.2s;
  letter-spacing: 0.01em;
}

.nav-links a:hover {
  color: var(--cyan-light);
}

.nav-cta {
  background: var(--cyan-dark) !important;
  color: var(--white) !important;
  padding: 9px 24px;
  border-radius: var(--radius-xl);
  font-weight: 500 !important;
  transition: var(--transition) !important;
}

.nav-cta:hover {
  background: var(--cyan-deep) !important;
  box-shadow: 0 4px 16px rgba(0,120,182,0.4);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  background: rgba(13,27,42,0.97);
  padding: 16px 32px 24px;
  gap: 0;
}

.mobile-menu a {
  color: rgba(255,255,255,0.85);
  font-size: 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: color 0.2s;
}

.mobile-menu a:last-child {
  border-bottom: none;
}

.mobile-menu.open {
  display: flex;
}

/* ═══════════════════════════════════════════
   HERO
═══════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 80% 50%, rgba(0, 180, 216, 0.25) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 20% 80%, rgba(0, 119, 182, 0.2) 0%, transparent 70%),
    linear-gradient(135deg, #0D1B2A 0%, #1a3a52 50%, #0D1B2A 100%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2300B4D8' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='1'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
  max-width: 800px;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan-light);
  margin-bottom: 24px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(52px, 10vw, 110px);
  font-weight: 900;
  line-height: 0.95;
  color: var(--white);
  margin-bottom: 28px;
  letter-spacing: -0.02em;
}

.hero-sub {
  font-size: 18px;
  color: rgba(255,255,255,0.65);
  font-weight: 300;
  margin-bottom: 44px;
  line-height: 1.7;
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
  opacity: 0.5;
}

.hero-scroll span {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--white), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.1); }
}

/* ═══════════════════════════════════════════
   ABOUT
═══════════════════════════════════════════ */
.about {
  padding: 120px 0;
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-text p {
  font-size: 17px;
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-text p strong {
  color: var(--cyan-dark);
  font-weight: 500;
}

/* ═══════════════════════════════════════════
   CAROUSEL
═══════════════════════════════════════════ */
.carousel {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--gray-light);
}

.carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.slide-placeholder {
  height: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border-radius: var(--radius-lg);
}

.slide-icon {
  font-size: 64px;
}

.slide-placeholder p {
  font-size: 16px;
  color: var(--text-mid);
  font-weight: 500;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: white;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.carousel-btn:hover {
  background: var(--cyan-dark);
}

.carousel-btn.prev { left: 16px; }
.carousel-btn.next { right: 16px; }

.carousel-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: var(--transition);
  border: none;
  padding: 0;
}

.carousel-dot.active {
  background: var(--cyan-light);
  transform: scale(1.3);
}

/* ═══════════════════════════════════════════
   SERVICES
═══════════════════════════════════════════ */
.services {
  padding: 120px 0;
  background: linear-gradient(160deg, var(--dark) 0%, var(--dark-2) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.services::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0,180,216,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.services .section-title { color: var(--white); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.service-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  padding: 40px 36px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan-dark), var(--cyan-light));
  transform: scaleX(0);
  transition: var(--transition);
}

.service-card:hover {
  background: rgba(0, 180, 216, 0.08);
  border-color: rgba(0, 180, 216, 0.3);
  transform: translateY(-4px);
}

.service-card:hover::after {
  transform: scaleX(1);
}

.service-icon {
  color: var(--cyan-light);
  margin-bottom: 20px;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--light);
  margin-bottom: 12px;
}

.service-card p {
  font-size: 15px;
  color: rgba(241, 241, 241, 0.6);
  line-height: 1.7;
}

/* ═══════════════════════════════════════════
   WORK / PORTFOLIO
═══════════════════════════════════════════ */
.work {
  padding: 120px 0;
  background: var(--gray-light);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 20px;
}

.work-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.work-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.work-card--large {
  grid-column: span 2;
}

.work-img {
  overflow: hidden;
}

.work-placeholder {
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-mid);
}

.work-card--large .work-placeholder {
  height: 300px;
}

.work-icon {
  font-size: 52px;
  opacity: 0.6;
}

.work-img--1 { background: linear-gradient(135deg, #000000, #a8d8ea); }
.work-img--2 { background: linear-gradient(135deg, #c2e5f2, #90d4ea); }
.work-img--3 { background: linear-gradient(135deg, #b0ddf0, #70c8e2); }
.work-img--4 { background: linear-gradient(135deg, #a0d4ec, #50bcd8); }

.work-info {
  padding: 20px 24px;
}

.work-tag {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cyan-light);
  background: rgba(0, 150, 199, 0.08);
  padding: 3px 10px;
  border-radius: 99px;
}

.work-info h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin: 10px 0 6px;
  color: var(--cyan-light);
}

.work-info p {
  font-size: 13px;
  color: var(--text-light);
}

/* ═══════════════════════════════════════════
   TESTIMONIALS
═══════════════════════════════════════════ */
.testimonials {
  padding: 120px 0;
  background: linear-gradient(160deg, var(--cyan-deep) 0%, var(--cyan-dark) 60%, #0090c0 100%);
  color: var(--white);
}

.testimonials .section-title { color: var(--white); }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-md);
  padding: 36px 32px;
  transition: var(--transition);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.testimonial-card:hover {
  background: rgba(255,255,255,0.16);
  transform: translateY(-4px);
}

.testimonial-card--featured {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.3);
  position: relative;
}

.testimonial-card--featured::before {
  content: '★ Destacado';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255,255,255,0.2);
  color: white;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 99px;
  border: 1px solid rgba(255,255,255,0.25);
  white-space: nowrap;
}

.testimonial-avatar {
  margin-bottom: 20px;
}

.avatar-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.05em;
}

.stars {
  color: #FFD166;
  font-size: 15px;
  letter-spacing: 2px;
  margin-bottom: 14px;
}

blockquote {
  font-size: 15px;
  color: rgba(255,255,255,0.85);
  line-height: 1.75;
  font-style: italic;
  margin-bottom: 16px;
}

cite {
  font-size: 13px;
  font-weight: 600;
  color: var(--cyan-pale);
  font-style: normal;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ═══════════════════════════════════════════
   CONTACT
═══════════════════════════════════════════ */
.contact {
  padding: 120px 0;
  background: var(--dark);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: '';
  position: absolute;
  bottom: -200px;
  left: -100px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0,180,216,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.contact .section-title { color: var(--white); }

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-bottom: 40px;
}

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-icon {
  width: 44px;
  height: 44px;
  background: rgba(0,180,216,0.12);
  border: 1px solid rgba(0,180,216,0.2);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan-light);
  flex-shrink: 0;
}

.contact-item strong {
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan-light);
  margin-bottom: 4px;
}

.contact-item p,
.contact-item a {
  font-size: 15px;
  color: rgba(255,255,255,0.7);
  line-height: 1.5;
}

.contact-item a:hover {
  color: var(--cyan-light);
}

/* Contact decoration */
.contact-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-card-decoration {
  position: relative;
  width: 100%;
  max-width: 380px;
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.deco-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(0,180,216,0.18);
}

.deco-ring--1 {
  width: 280px;
  height: 280px;
  animation: spin 20s linear infinite;
}

.deco-ring--2 {
  width: 380px;
  height: 380px;
  border-style: dashed;
  border-color: rgba(0,180,216,0.1);
  animation: spin 30s linear infinite reverse;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.deco-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(0,180,216,0.25);
  border-radius: var(--radius-md);
  padding: 40px 36px;
  text-align: center;
  z-index: 2;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  max-width: 280px;
}

.deco-dot {
  width: 12px;
  height: 12px;
  background: var(--cyan-dark);
  border-radius: 50%;
  margin: 0 auto 20px;
  box-shadow: 0 0 20px var(--cyan-dark);
}

.deco-quote {
  font-family: var(--font-display);
  font-size: 20px;
  font-style: italic;
  color: rgba(255,255,255,0.9);
  line-height: 1.5;
  margin-bottom: 20px;
}

.deco-name {
  font-size: 12px;
  color: var(--cyan-light);
  font-weight: 500;
  letter-spacing: 0.05em;
}

/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */
.footer {
  background: #080f18;
  padding: 48px 0;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.footer-brand .nav-logo {
  font-size: 28px;
  display: block;
  margin-bottom: 6px;
}

.footer-brand p {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}

.footer-links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--cyan-light);
}

.footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,0.25);
}

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */
@media (max-width: 960px) {
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .services-grid { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr 1fr; }
  .work-card--large { grid-column: span 2; }
  .testimonials-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .contact-visual { display: none; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .hero-title { font-size: clamp(44px, 14vw, 80px); }
  .work-grid { grid-template-columns: 1fr; }
  .work-card--large { grid-column: span 1; }
  .section-title { font-size: clamp(28px, 7vw, 40px); }
  .about, .services, .work, .testimonials, .contact { padding: 80px 0; }
  .services-grid { gap: 16px; }
}

@media (max-width: 480px) {
  .nav-inner { padding: 16px 20px; }
  .container { padding: 0 16px; }
  .service-card { padding: 28px 24px; }
  .testimonial-card { padding: 28px 24px; }
  .testimonial-card--featured::before { font-size: 9px; }
}

.carousel-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.service-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 1rem;
}

.work-img-real {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}
/* Texto negro SOLO en las secciones donde has añadido imágenes */

.carousel-img *,
.service-img *,
.work-img-real * {
  color: #000;
}
