/* ================= ROOT VARIABLES ================= */
:root {
  --primary-pink: #e67fa0;
  --primary-blue: #2f43ff;
  --secondary-blue: #3d5afe;
  --text-dark: #1a1a1a;
  --text-light: #666;
  --border-radius: 20px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ================= RESET & TYPOGRAPHY ================= */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  background: #fff;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

p {
  margin: 0;
  color: var(--text-light);
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

/* ================= BUTTONS ================= */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-hero {
  background: var(--primary-blue);
  color: white;
  padding: 14px 32px;
  font-size: 16px;
}

.btn-hero:hover {
  background: #1a2fd9;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(47, 67, 255, 0.3);
}

.btn:hover {
  transform: translateY(-2px);
}

/* ================= NAVBAR ================= */
.navbar {
  background: var(--primary-pink);
  padding: 14px 20px;
  height: 64px;
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

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

.logo img {
  height: 50px;
  display: block;
  transition: var(--transition);
}

.logo:hover img {
  transform: scale(1.05);
}

.nav-links {
  display: flex;
  gap: 35px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: white;
  font-weight: 500;
  position: relative;
  font-size: 15px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: white;
  transition: var(--transition);
}

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

/* HAMBURGER MENU */
.hamburger {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  gap: 5px;
  padding: 0;
  z-index: 1001;
}

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

.hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* MOBILE MENU */
.mobile-menu {
  display: none;
  background: var(--primary-pink);
  padding: 12px 0;
  flex-direction: column;
  gap: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.mobile-menu.active {
  display: flex;
  max-height: 300px;
}

.mobile-menu a {
  padding: 14px 20px;
  color: white;
  font-weight: 500;
  transition: var(--transition);
}

.mobile-menu a:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* ================= HERO SECTION ================= */
.hero {
  position: relative;
  height: 60vh;
  min-height: 400px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-video {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.65);
}

.hero-content {
  position: relative;
  text-align: center;
  padding: 0 20px;
  z-index: 2;
  /* REMOVE: top: 50%; transform: translateY(-50%); - Ya no necesitas esto */
}

.hero-subtitle {
  margin-bottom: clamp(30px, 5vw, 50px);
  /* En móvil: 30px | En desktop: 50px | Adapta automáticamente */
}

/* ================= PROJECTS SECTION ================= */
.projects {
  padding: 80px 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.section-label {
  display: inline-block;
  color: var(--primary-blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.projects h2 {
  font-size: clamp(28px, 5vw, 42px);
  margin: 0 0 50px 0;
}

.projects-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  justify-items: center;
}

.card {
  width: 100%;
  max-width: 320px;
  background: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
}

.card-image {
  height: 200px;
  background-size: cover;
  background-position: center;
  transition: var(--transition);
}

.card:hover .card-image {
  transform: scale(1.05);
}

.card-content {
  padding: 25px;
}

.card-content h3 {
  margin: 0 0 8px 0;
  font-size: 20px;
}

.card-content p {
  margin: 0;
  font-size: 14px;
  color: var(--text-light);
}

/* ================= FEATURED 3D SECTION ================= */
.featured-3d {
  margin: 100px auto;
  max-width: 1200px;
  padding: 0 20px;
}

.featured-card {
  position: relative;
  background: linear-gradient(135deg, var(--primary-pink), #f08fa8);
  border-radius: 24px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  align-items: center;
  min-height: 380px;
  box-shadow: 0 20px 50px rgba(230, 127, 160, 0.2);
  gap: 20px;
  padding: 20px;
}

.featured-text {
  text-align: center;
  z-index: 2;
  color: white;
}

.featured-label {
  display: inline-block;
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.featured-text h2 {
  font-size: clamp(24px, 4vw, 36px);
  margin: 12px 0;
  color: white;
}

.featured-text p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 20px;
}

.featured-text .btn {
  background: white;
  color: var(--primary-pink);
  font-weight: 600;
}

.featured-text .btn:hover {
  background: rgba(255, 255, 255, 0.9);
}

.featured-img {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.featured-img img {
  width: 140%;
  height: auto;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.15));
}

.featured-img-left img {
  transform: translateX(-25%);
}

.featured-img-right img {
  transform: translateX(25%);
}

/* ================= CTA SECTION ================= */
.cta {
  background: linear-gradient(135deg, #f5f5f5, #fafafa);
  padding: 80px 20px;
  text-align: center;
}

.cta-content {
  max-width: 600px;
  margin: 0 auto;
}

.cta h2 {
  font-size: clamp(28px, 5vw, 42px);
  margin: 0 0 12px 0;
}

.cta-subtitle {
  font-size: 18px;
  margin-bottom: 30px;
  color: var(--text-light);
}

/* ================= WHATSAPP BUBBLE ================= */
.wa-bubble {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(0, 0, 0, 0.1);
  transition: var(--transition);
  z-index: 999;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.wa-bubble svg {
  color: var(--text-dark);
}

.wa-bubble:hover {
  background: var(--primary-pink);
  border-color: var(--primary-pink);
  transform: scale(1.1);
  box-shadow: 0 8px 24px rgba(230, 127, 160, 0.4);
}

.wa-bubble:hover svg {
  color: white;
}

/* ================= FOOTER ================= */
.footer {
  padding: 60px 20px 30px;
  background: var(--primary-pink);
  color: white;
}

.footer-top {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-brand {
  font-size: 24px;
  margin: 0;
  font-weight: 700;
}

.footer-links {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}

.footer-links a {
  color: white;
  font-size: 14px;
  transition: var(--transition);
}

.footer-links a:hover {
  opacity: 0.8;
}

.footer-divider {
  max-width: 1200px;
  margin: 0 auto 20px;
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
}

.footer-bottom {
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
  max-width: 1200px;
  margin: 0 auto;
}

/* ================= RESPONSIVE DESIGN ================= */
@media (max-width: 1024px) {
  .featured-card {
    grid-template-columns: 1fr;
  }

  .featured-img {
    max-height: 250px;
  }

  .featured-text {
    order: -1;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .projects-wrapper {
    grid-template-columns: 1fr;
  }

  .card {
    max-width: 100%;
  }

  .featured-card {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 40px 20px;
  }

  .featured-img {
    display: none;
  }

  .footer-top {
    flex-direction: column;
    justify-content: center;
  }

  .footer-links {
    justify-content: center;
  }

  .cta-content {
    padding: 0 20px;
  }
}

@media (max-width: 480px) {
  .navbar {
    padding: 12px 16px;
    height: 56px;
  }

  .hero-content h1 {
    font-size: 24px;
  }

  .nav-inner {
    padding: 0 16px;
  }

  .projects {
    padding: 60px 16px;
  }

  .projects h2 {
    font-size: 28px;
    margin-bottom: 30px;
  }

  .featured-3d {
    padding: 0 16px;
    margin: 60px auto;
  }

  .cta {
    padding: 60px 16px;
  }

  .footer {
    padding: 40px 16px 20px;
  }

  .wa-bubble {
    bottom: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
  }
}

/* ================= PORTFOLIO PAGE ================= */
.portfolio-page {
  background: #fff;
}

/* INTRO SECTION */
.portfolio-intro {
  padding: 100px 20px 60px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.intro-label {
  display: inline-block;
  color: var(--primary-blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 15px;
}

.portfolio-intro h1 {
  font-size: clamp(32px, 6vw, 52px);
  margin: 0 0 20px 0;
  background: linear-gradient(135deg, var(--text-dark), var(--primary-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.portfolio-intro p {
  font-size: 18px;
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.8;
}

/* PORTFOLIO GRID */
.portfolio {
  padding: 60px 20px 100px;
  max-width: 1400px;
  margin: 0 auto;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  cursor: pointer;
  display: block;
  text-decoration: none;
  color: inherit;
  group: true;
  transition: var(--transition);
}

.portfolio-image {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  height: 300px;
  background: #f0f0f0;
  margin-bottom: 16px;
}

.portfolio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.portfolio-item:hover .portfolio-image img {
  transform: scale(1.08);
  filter: brightness(1.1);
}

.portfolio-info {
  padding: 0 8px;
}

.portfolio-info h3 {
  font-size: 18px;
  margin: 0 0 6px 0;
  transition: var(--transition);
}

.portfolio-item:hover .portfolio-info h3 {
  color: var(--primary-blue);
}

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

/* NAV ACTIVE STATE */
.nav-active {
  position: relative;
}

.nav-active::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  right: 0;
  height: 3px;
  background: white;
  border-radius: 2px;
}

/* ================= RESPONSIVE PORTFOLIO ================= */
@media (max-width: 1024px) {
  .portfolio-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
  }

  .portfolio-intro {
    padding: 80px 20px 50px;
  }

  .portfolio-intro h1 {
    font-size: 36px;
  }
}

@media (max-width: 768px) {
  .portfolio-intro {
    padding: 60px 20px 40px;
  }

  .portfolio-intro h1 {
    font-size: 28px;
    margin-bottom: 16px;
  }

  .portfolio-intro p {
    font-size: 16px;
  }

  .portfolio {
    padding: 40px 20px 80px;
  }

  .portfolio-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
  }

  .portfolio-image {
    height: 250px;
  }
}

@media (max-width: 480px) {
  .portfolio-intro {
    padding: 50px 16px 30px;
  }

  .portfolio-intro h1 {
    font-size: 24px;
    margin-bottom: 12px;
  }

  .portfolio-intro p {
    font-size: 14px;
  }

  .portfolio {
    padding: 30px 16px 60px;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .portfolio-image {
    height: 200px;
  }

  .portfolio-info h3 {
    font-size: 16px;
  }

  .portfolio-info p {
    font-size: 12px;
  }
}

/* ================= PROJECT PAGE ================= */
.project-page {
  background: #fff;
}

/* BREADCRUMB */
.breadcrumb {
  background: #f8f8f8;
  padding: 16px 20px;
  border-bottom: 1px solid #e5e5e5;
}

.breadcrumb-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.breadcrumb-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-dark);
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
}

.breadcrumb-link:hover {
  color: var(--primary-blue);
}

.breadcrumb-link svg {
  transition: var(--transition);
}

.breadcrumb-link:hover svg {
  transform: translateX(-3px);
}

/* PROJECT HERO */
.project-hero {
  padding: 80px 20px 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.project-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.project-header {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.project-label {
  display: inline-block;
  width: fit-content;
  color: var(--primary-blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: rgba(47, 67, 255, 0.08);
  padding: 6px 12px;
  border-radius: 20px;
}

.project-header h1 {
  font-size: clamp(36px, 8vw, 64px);
  margin: 0;
  line-height: 1.1;
}

.project-subtitle {
  font-size: 18px;
  color: var(--text-light);
  line-height: 1.6;
  margin: 0;
}

.project-hero-image {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.project-hero-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* PROJECT DETAILS SECTION */
.project-details-section {
  padding: 80px 20px;
  background: linear-gradient(135deg, rgba(47, 67, 255, 0.05), rgba(230, 127, 160, 0.05));
  border-top: 1px solid #e5e5e5;
  border-bottom: 1px solid #e5e5e5;
}

.project-details-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 60px;
  align-items: flex-start;
}

.project-description {
  flex: 1;
}

.project-description p {
  font-size: 18px;
  line-height: 1.8;
  color: var(--text-dark);
  margin: 0;
}

.project-meta-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.meta-item h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--primary-blue);
  margin: 0 0 10px 0;
}

.meta-item p {
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
}

/* PROJECT GALLERY */
.project-gallery {
  padding: 100px 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.gallery-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.gallery-item {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transition: var(--transition);
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
}

.gallery-item:hover {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

.video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  background: #000;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* PROJECT CTA */
.project-cta {
  background: linear-gradient(135deg, #f5f5f5, #fafafa);
  padding: 100px 20px;
  text-align: center;
  border-top: 1px solid #e5e5e5;
}

.project-cta-inner {
  max-width: 700px;
  margin: 0 auto;
}

.project-cta h2 {
  font-size: clamp(28px, 5vw, 42px);
  margin: 0 0 12px 0;
}

.project-cta p {
  font-size: 18px;
  margin-bottom: 30px;
}

/* ================= RESPONSIVE PROJECT PAGE ================= */
@media (max-width: 1024px) {
  .project-hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .project-details-inner {
    flex-direction: column;
    gap: 40px;
  }

  .project-meta-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .project-hero {
    padding: 60px 20px 40px;
  }

  .project-header h1 {
    font-size: 36px;
  }

  .project-subtitle {
    font-size: 16px;
  }

  .project-details-section {
    padding: 60px 20px;
  }

  .project-description p {
    font-size: 16px;
  }

  .project-meta-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .project-gallery {
    padding: 60px 20px;
  }

  .gallery-inner {
    gap: 30px;
  }

  .project-cta {
    padding: 60px 20px;
  }
}

@media (max-width: 480px) {
  .breadcrumb {
    padding: 12px 16px;
  }

  .breadcrumb-inner {
    padding: 0 16px;
  }

  .project-hero {
    padding: 40px 16px 30px;
  }

  .project-header h1 {
    font-size: 28px;
  }

  .project-subtitle {
    font-size: 14px;
  }

  .project-details-section {
    padding: 40px 16px;
  }

  .project-description p {
    font-size: 15px;
  }

  .meta-item h4 {
    font-size: 11px;
  }

  .meta-item p {
    font-size: 14px;
  }

  .project-gallery {
    padding: 40px 16px;
  }

  .gallery-inner {
    gap: 20px;
  }

  .project-cta {
    padding: 40px 16px;
  }

  .project-cta h2 {
    font-size: 24px;
    margin-bottom: 10px;
  }

  .project-cta p {
    font-size: 14px;
    margin-bottom: 20px;
  }
}

/* ================= PROJECT CONTENT SECTION ================= */
.project-content {
  padding: 100px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.project-content-inner {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

/* CONTENT BLOCKS */
.content-block {
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  overflow: hidden;
}

.content-block img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

/* FULL WIDTH BLOCK */
.content-full {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transition: var(--transition);
}

.content-full:hover {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

/* SPLIT BLOCK - TEXT + IMAGE */
.content-split {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: center;
}

.split-text h2 {
  font-size: clamp(28px, 4vw, 36px);
  margin: 0 0 20px 0;
}

.split-text p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-dark);
  margin: 0;
}

.split-image {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.split-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: var(--transition);
}

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

/* GRID 2 COLUMNAS */
.content-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.content-grid-2 img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transition: var(--transition);
}

.content-grid-2 img:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

/* ================= RESPONSIVE PROJECT CONTENT ================= */
@media (max-width: 1024px) {
  .project-content {
    padding: 80px 20px;
  }

  .project-content-inner {
    gap: 50px;
  }

  .content-split {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .split-text h2 {
    font-size: 28px;
  }
}

@media (max-width: 768px) {
  .project-content {
    padding: 60px 20px;
  }

  .project-content-inner {
    gap: 40px;
  }

  .split-text h2 {
    font-size: 24px;
    margin-bottom: 16px;
  }

  .split-text p {
    font-size: 15px;
  }

  .content-grid-2 {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 480px) {
  .project-content {
    padding: 40px 16px;
  }

  .project-content-inner {
    gap: 30px;
  }

  .split-text h2 {
    font-size: 20px;
    margin-bottom: 12px;
  }

  .split-text p {
    font-size: 14px;
  }

  .content-grid-2 {
    gap: 16px;
  }
}
/* ================= FEATURED 3D CARRUSEL ================= */
.featured-3d {
  padding: 0;
  margin: 100px 20px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  border-radius: 24px;
  overflow: hidden;
}

.featured-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: center;
  background: linear-gradient(135deg, #ff6b9d 0%, #ff8fab 100%);
  min-height: 450px;
  position: relative;
  overflow: hidden;
  padding: 40px;
}

/* CARRUSEL */
.featured-carousel {
  position: relative;
  width: 100%;
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  grid-column: 1;
}

.carousel-item {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
}

.carousel-item.active {
  opacity: 1;
  z-index: 2;
}

.carousel-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.2));
  transform: perspective(1200px) rotateY(-20deg) rotateX(5deg);
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: perspective(1200px) rotateY(-20deg) rotateX(5deg) translateY(0px);
  }
  50% {
    transform: perspective(1200px) rotateY(-20deg) rotateX(5deg) translateY(-10px);
  }
}

/* TEXTO */
.featured-text {
  grid-column: 2;
  color: white;
  padding: 40px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  text-align: right;
  height: 100%;
}

.featured-label {
  display: inline-block;
  background: rgba(255, 255, 255, 0.25);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
  color: white;
  align-self: flex-end;
}

.featured-text h2 {
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.25;
  margin-bottom: 20px;
  color: white;
  font-weight: 700;
}

.featured-text p {
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 300;
}

.featured-text .btn {
  background: white;
  color: #ff6b9d;
  display: inline-block;
  padding: 12px 30px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid white;
  align-self: flex-end;
}

.featured-text .btn:hover {
  background: transparent;
  color: white;
  transform: translateY(-2px);
}

/* CONTROLES */
.carousel-controls {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 3;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.carousel-dot.active {
  background: white;
  transform: scale(1.2);
}

.carousel-dot:hover {
  background: rgba(255, 255, 255, 0.8);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1024px) {
  .featured-card {
    grid-template-columns: 1fr;
    min-height: 380px;
    padding: 30px;
  }

  .featured-carousel {
    grid-column: 1;
    grid-row: 1;
    height: 300px;
  }

  .featured-text {
    grid-column: 1;
    grid-row: 1;
    position: relative;
    z-index: 3;
    padding: 40px 30px;
    background: rgba(255, 107, 157, 0.95);
    justify-content: center;
    height: auto;
  }

  .carousel-item img {
    transform: perspective(1000px) rotateY(-15deg) rotateX(0deg);
  }
}

@media (max-width: 768px) {
  .featured-3d {
    margin: 60px 10px;
    border-radius: 16px;
  }

  .featured-card {
    min-height: auto;
    padding: 20px;
  }

  .featured-carousel {
    height: 250px;
  }

  .featured-text {
    padding: 30px 20px;
  }

  .featured-text h2 {
    font-size: 22px;
    margin-bottom: 15px;
  }

  .featured-text p {
    font-size: 13px;
    margin-bottom: 20px;
  }

  .carousel-item img {
    transform: perspective(800px) rotateY(-10deg) rotateX(0deg);
  }

  .carousel-controls {
    bottom: 12px;
  }

  .carousel-dot {
    width: 10px;
    height: 10px;
  }
}

@media (max-width: 480px) {
  .featured-3d {
    margin: 40px 0;
  }

  .featured-card {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 15px;
  }

  .featured-carousel {
    height: 200px;
    grid-column: 1;
  }

  .featured-text {
    grid-column: 1;
    padding: 25px 15px;
    background: rgba(255, 107, 157, 0.95);
  }

  .featured-text h2 {
    font-size: 18px;
    margin-bottom: 12px;
  }

  .featured-text p {
    font-size: 12px;
    margin-bottom: 15px;
  }

  .carousel-item img {
    max-width: 90%;
    transform: perspective(600px) rotateY(-5deg) rotateX(0deg);
  }

  .carousel-controls {
    bottom: 10px;
  }

  .carousel-dot {
    width: 8px;
    height: 8px;
  }
}