* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --mica-pink: #d90a81;
  --mica-pink-soft: #ff4fb1;
  --mica-ink: #1d1720;
  --mica-muted: #6e6470;
  --mica-line: #f1d4e5;
  --mica-bg: #fff7fb;
  --mica-white: #ffffff;
  --mica-black: #141014;
}

html { scroll-behavior: smooth; }

body {
  font-family: "Montserrat", Arial, Helvetica, sans-serif;
  color: var(--mica-ink);
  background: var(--mica-white);
  padding-top: 82px;
}

a { color: inherit; }
img { max-width: 100%; }
img.image-missing { font-size: 0; }

.reveal {
  animation: fadeLift 0.8s ease both;
}

@keyframes fadeLift {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(217, 10, 129, 0.16);
  box-shadow: 0 12px 35px rgba(29, 23, 32, 0.08);
}

.navbar-mica {
  position: relative;
  width: min(1180px, calc(100% - 36px));
  height: 82px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.brand {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  text-decoration: none;
  font-weight: 800;
  color: var(--mica-pink);
  z-index: 2;
}

.brand img {
  width: min(150px, 34vw);
  height: 62px;
  object-fit: contain;
}

.brand img.image-missing,
.footer-brand img.image-missing { display: none; }

.nav-menu {
  list-style: none;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.nav-menu li:nth-child(3) { margin-right: 190px; }

.nav-menu a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--mica-ink);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
  transition: 0.25s ease;
}

.nav-menu a .material-icons {
  font-size: 20px;
  color: var(--mica-pink);
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--mica-white);
  background: linear-gradient(135deg, var(--mica-pink), var(--mica-black));
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(217, 10, 129, 0.18);
}

.nav-menu a:hover .material-icons,
.nav-menu a.active .material-icons { color: var(--mica-white); }

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 2px solid rgba(217, 10, 129, 0.18);
  border-radius: 12px;
  background: #fff7fb;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--mica-pink);
  border-radius: 999px;
  transition: 0.3s ease;
}

.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(6px, 5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -5px); }

.hero-section {
  position: relative;
  min-height: auto;
  display: block;
  overflow: hidden;
  background: var(--mica-white);
}

.hero-carousel {
  position: relative;
  width: 100%;
  height: clamp(360px, 68vh, 720px);
  background: #140f15;
  isolation: isolate;
}

.hero-carousel::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(20, 15, 21, 0.78), rgba(217, 10, 129, 0.16), rgba(217, 10, 129, 0.42)),
    linear-gradient(180deg, rgba(20, 15, 21, 0.12), rgba(20, 15, 21, 0.55));
  z-index: 1;
  pointer-events: none;
}

.hero-carousel .carousel-inner,
.hero-carousel .carousel-item { height: 100%; }

.hero-carousel .carousel-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(217, 10, 129, 0.72), rgba(29, 23, 32, 0.78)),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.18) 0 2px, transparent 2px 22px);
}

.hero-carousel .slide-two::before {
  background:
    linear-gradient(135deg, rgba(29, 23, 32, 0.9), rgba(217, 10, 129, 0.62)),
    radial-gradient(circle at 70% 25%, rgba(255, 255, 255, 0.22), transparent 28%);
}

.hero-carousel .slide-three::before {
  background:
    linear-gradient(135deg, rgba(29, 23, 32, 0.86), rgba(255, 79, 177, 0.62)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.16) 0 1px, transparent 1px 18px);
}

.hero-carousel .slide-four::before {
  background:
    linear-gradient(135deg, rgba(217, 10, 129, 0.7), rgba(20, 15, 21, 0.92)),
    radial-gradient(circle at 30% 65%, rgba(255, 255, 255, 0.25), transparent 25%);
}

.hero-carousel img {
  position: relative;
  z-index: 1;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  filter: saturate(1.08);
  background: linear-gradient(135deg, #1d1720, #d90a81);
}

.hero-carousel img.image-missing { opacity: 0; }

.hero-carousel .carousel-item.active img {
  animation: none;
  transform: none;
}

.hero-carousel .carousel-indicators {
  z-index: 4;
  margin-bottom: 22px;
  gap: 8px;
}

.hero-carousel .carousel-indicators [data-bs-target] {
  width: 42px;
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  opacity: 1;
}

.hero-carousel .carousel-indicators .active { background: var(--mica-pink); }

.carousel-control-prev,
.carousel-control-next {
  z-index: 3;
  width: 74px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background-color: rgba(217, 10, 129, 0.9);
  background-size: 52%;
  box-shadow: 0 14px 28px rgba(29, 23, 32, 0.28);
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  color: var(--mica-ink);
  padding: 70px 0 90px;
  text-align: center;
}

.eyebrow {
  margin-bottom: 12px;
  color: var(--mica-pink);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
}

.hero-wordmark {
  display: block;
  width: min(430px, 78vw);
  max-height: 190px;
  object-fit: contain;
  margin: 0 auto 18px;
}

.hero-wordmark.image-missing::after {
  content: "MICA";
  display: block;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(4rem, 10vw, 8rem);
  color: var(--mica-ink);
}

.hero-frase {
  color: var(--mica-pink);
  font-size: clamp(1.5rem, 3vw, 2.35rem);
  font-weight: 900;
  margin-bottom: 14px;
}

.hero-copy > p:not(.eyebrow):not(.hero-frase) {
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.08rem;
  line-height: 1.8;
  color: var(--mica-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 28px;
}

.btn-primary-mica,
.btn-secondary-mica,
.submit-btn,
.profile-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 22px;
  border-radius: 999px;
  border: 0;
  font-weight: 900;
  text-decoration: none;
  transition: 0.25s ease;
}

.btn-primary-mica,
.submit-btn {
  color: var(--mica-white);
  background: linear-gradient(135deg, var(--mica-pink), var(--mica-black));
  box-shadow: 0 14px 28px rgba(217, 10, 129, 0.22);
}

.btn-secondary-mica {
  color: var(--mica-pink);
  border: 2px solid var(--mica-pink);
}

.btn-primary-mica:hover,
.btn-secondary-mica:hover,
.submit-btn:hover,
.profile-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(217, 10, 129, 0.25);
}

.section {
  padding: 100px 24px;
  color: var(--mica-white);
  background:
    linear-gradient(135deg, rgba(217, 10, 129, 0.96), rgba(255, 79, 177, 0.86)),
    var(--mica-pink);
}

.brand-section {
  background:
    radial-gradient(circle at 12% 10%, rgba(255,255,255,.22), transparent 28%),
    linear-gradient(135deg, rgba(217, 10, 129, 0.96), rgba(255, 79, 177, 0.86)),
    var(--mica-pink);
}

.soft-section {
  background:
    linear-gradient(135deg, rgba(217, 10, 129, 0.92), rgba(255, 79, 177, 0.76)),
    var(--mica-pink);
}

.light-section {
  color: var(--mica-ink);
  background:
    linear-gradient(135deg, rgba(255, 247, 251, 0.92), rgba(255, 255, 255, 1)),
    var(--mica-white);
}

.section-heading,
.contact-intro {
  width: min(780px, 100%);
  margin: 0 auto 46px;
  text-align: center;
}

.section-heading h2,
.contact-intro h2 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.05;
  margin-bottom: 18px;
  font-weight: 900;
}

.section-heading p:not(.eyebrow),
.contact-intro p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.8;
  font-size: 1.02rem;
}

.section .eyebrow,
.contact-intro .eyebrow { color: #ffd8ec; }

.dark-heading .eyebrow { color: var(--mica-pink); }
.dark-heading p:not(.eyebrow) { color: var(--mica-muted); }

.stats-grid,
.cards-grid,
.portfolio-grid,
.designer-grid,
.designer-work-grid,
.process-timeline,
.footer-columns,
.mvv-grid,
.team-grid,
.contact-container,
.profile-container,
.profile-grid,
.explore-grid,
.legal-box {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.mvv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.mvv-card,
.service-card,
.portfolio-card,
.process-timeline article,
.contact-form,
.team-card,
.profile-project,
.profile-area,
.explore-card,
.legal-box {
  color: var(--mica-ink);
  border-radius: 18px;
  background: var(--mica-white);
  border: 1px solid rgba(217, 10, 129, 0.14);
  box-shadow: 0 18px 42px rgba(29, 23, 32, 0.08);
}

.mvv-card {
  padding: 30px;
  transition: 0.25s ease;
}

.mvv-card:hover,
.service-card:hover,
.team-card:hover,
.process-timeline article:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 46px rgba(29, 23, 32, 0.14);
}

.mvv-card span {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  color: var(--mica-white);
  background: var(--mica-pink);
  border-radius: 50%;
  font-weight: 900;
}

.mvv-card h3,
.service-card h3,
.portfolio-card h3,
.process-timeline h3 {
  font-size: 1.18rem;
  font-weight: 900;
  margin-bottom: 12px;
}

.mvv-card p,
.service-card p,
.portfolio-card span,
.process-timeline p,
.profile-project p,
.profile-area p,
.legal-box p,
.team-content p {
  color: var(--mica-muted);
  line-height: 1.7;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.team-card {
  display: grid;
  grid-template-columns: 190px 1fr;
  min-height: 250px;
  overflow: hidden;
  border-top: 6px solid var(--team-color, var(--mica-pink));
  transition: 0.25s ease;
}

.team-card img {
  width: 100%;
  height: 100%;
  min-height: 250px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--team-color, var(--mica-pink)), #1d1720);
}

.team-card img.image-missing { opacity: .08; }

.team-content {
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.team-content span {
  color: var(--team-color, var(--mica-pink));
  font-weight: 900;
  font-size: .82rem;
  letter-spacing: .08em;
}

.team-content h3 {
  margin: 10px 0;
  font-size: 1.45rem;
  font-weight: 900;
}

.team-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.team-actions a {
  min-height: 42px;
  padding: 10px 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--mica-white);
  background: var(--team-color, var(--mica-pink));
  font-weight: 900;
  text-decoration: none;
  transition: .25s ease;
}

.team-actions a:last-child {
  width: 42px;
  padding: 0;
  background: var(--mica-black);
}

.team-actions a:hover {
  transform: translateY(-3px);
  color: var(--mica-white);
}

.melissa-accent { --team-color: #99cc00; }
.aislinn-accent { --team-color: #33cccc; }
.clara-accent { --team-color: #ff6600; }
.andy-accent { --team-color: #9966ff; }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.service-card {
  padding: 28px;
  transition: 0.25s ease;
}

.service-card > span {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  color: var(--mica-white);
  background: linear-gradient(135deg, var(--mica-pink), var(--mica-black));
  border-radius: 14px;
  font-size: 26px;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 20px;
}

.portfolio-card {
  min-height: 260px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--mica-white);
  background:
    linear-gradient(145deg, rgba(29, 23, 32, 0.86), rgba(217, 10, 129, 0.74)),
    linear-gradient(135deg, #2a202d, #ff4fb1);
  overflow: hidden;
  position: relative;
}

.portfolio-card::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 14px;
}

.portfolio-card p,
.portfolio-card h3,
.portfolio-card span {
  position: relative;
  z-index: 1;
}

.portfolio-card p {
  font-weight: 900;
  color: #ffd8ec;
  margin-bottom: 8px;
}

.portfolio-card span { color: rgba(255, 255, 255, 0.86); }

.external-links {
  width: min(920px, 100%);
  margin: 34px auto 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.external-links a {
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  color: var(--mica-white);
  background: rgba(255, 255, 255, 0.14);
  font-weight: 900;
  text-decoration: none;
  transition: 0.25s ease;
}

.dark-links a {
  color: var(--mica-ink);
  border-color: rgba(217, 10, 129, 0.22);
  background: var(--mica-white);
}

.external-links a:hover {
  color: var(--mica-white);
  background: var(--mica-pink);
  border-color: var(--mica-pink);
}

.process-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.process-timeline article {
  padding: 26px;
  border-top: 5px solid var(--mica-pink);
  transition: .25s ease;
}

.process-timeline span {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border-radius: 50%;
  color: var(--mica-white);
  background: var(--mica-ink);
  font-weight: 900;
}

.contact-section {
  background:
    radial-gradient(circle at 14% 10%, rgba(255, 255, 255, .20), transparent 26%),
    linear-gradient(135deg, rgba(217, 10, 129, 0.95), rgba(255, 79, 177, 0.82)),
    var(--mica-pink);
}

.contact-container {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 70px;
  align-items: start;
}

.contact-info h2 {
  margin: 18px 0;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: .95;
  font-weight: 900;
  color: var(--mica-white);
}

.contact-info h2 span { color: var(--mica-black); }

.contact-info p:not(.eyebrow) {
  color: rgba(255,255,255,.86);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 35px;
}

.contact-card {
  background: var(--mica-white);
  border-radius: 18px;
  padding: 22px 26px;
  margin-bottom: 18px;
  box-shadow: 0 15px 35px rgba(0,0,0,.08);
}

.contact-card small {
  display: block;
  color: var(--mica-pink);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.contact-card strong {
  font-size: 15px;
  color: var(--mica-ink);
}

.contact-form {
  width: min(860px, 100%);
  margin: 0 auto;
  padding: 34px;
}

.contact-form-modern {
  border-radius: 24px;
  padding: 40px;
}

.form-row,
fieldset,
.form-group { margin-bottom: 22px; }

.form-row.two {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

label,
legend {
  display: block;
  margin-bottom: 9px;
  color: var(--mica-ink);
  font-weight: 900;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--mica-line);
  border-radius: 18px;
  padding: 12px 14px;
  color: var(--mica-ink);
  background: #fffafd;
  font: inherit;
  outline: none;
  transition: 0.2s ease;
}

textarea {
  height: 120px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--mica-pink);
  box-shadow: 0 0 0 4px rgba(217, 10, 129, 0.12);
}

fieldset {
  padding: 0;
  border: 0;
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.option-grid.three { grid-template-columns: repeat(3, 1fr); }

.option-grid label,
.option {
  min-height: 50px;
  margin: 0;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--mica-line);
  border-radius: 18px;
  background: #fffafd;
  font-weight: 800;
  cursor: pointer;
}

.option-grid input,
.option input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--mica-pink);
}

.option:hover {
  border-color: var(--mica-pink);
  background: #fff4fa;
}

.submit-btn {
  width: 100%;
  cursor: pointer;
}

.footer {
  padding: 52px 24px 24px;
  color: var(--mica-white);
  background: #1d1720;
}

.footer-brand,
.footer-columns,
.copyright {
  width: min(1180px, 100%);
  margin-left: auto;
  margin-right: auto;
}

.footer-brand {
  display: flex;
  gap: 18px;
  align-items: center;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-brand img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  background: var(--mica-white);
  border-radius: 14px;
  padding: 7px;
}

.footer-brand h2 {
  margin-bottom: 4px;
  color: #ffb4dc;
  font-weight: 900;
}

.footer-brand p,
.footer p {
  color: rgba(255, 255, 255, 0.72);
  margin: 0;
}

.footer-columns {
  display: grid;
  grid-template-columns: 1fr 1fr 1.1fr 1fr;
  gap: 28px;
  padding: 34px 0;
}

.footer h3 {
  margin-bottom: 14px;
  color: var(--mica-white);
  font-size: 1rem;
  font-weight: 900;
}

.footer a {
  display: block;
  width: fit-content;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
}

.footer a:hover { color: #ffb4dc; }

.social-links {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.social-links a {
  width: 42px;
  height: 42px;
  margin: 0;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--mica-white);
  background: rgba(255, 255, 255, 0.1);
  transition: 0.25s ease;
}

.social-links a:hover {
  color: var(--mica-white);
  background: var(--mica-pink);
  transform: translateY(-3px);
}

.copyright {
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  text-align: center;
  font-size: 0.9rem;
}

/* Páginas de diseñadores */
.profile-page {
  --perfil-color: var(--mica-pink);
  padding-top: 0;
  background: var(--mica-white);
}

.profile-melissa { --perfil-color: #99cc00; }
.profile-aislinn { --perfil-color: #33cccc; }
.profile-clara { --perfil-color: #ff6600; }
.profile-andy { --perfil-color: #9966ff; }

.profile-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,.08);
}

.profile-nav-inner {
  width: min(1180px, calc(100% - 36px));
  min-height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.profile-nav a {
  text-decoration: none;
  font-weight: 900;
}

.profile-logo {
  color: var(--perfil-color);
  font-size: 1.2rem;
}

.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.profile-links a {
  padding: 9px 12px;
  border-radius: 999px;
  background: #f7f4f6;
  color: var(--mica-ink);
  transition: .25s ease;
}

.profile-links a:hover {
  color: var(--mica-white);
  background: var(--perfil-color);
  transform: translateY(-2px);
}

.profile-hero {
  padding: 90px 24px;
  background:
    radial-gradient(circle at 90% 16%, color-mix(in srgb, var(--perfil-color) 25%, transparent), transparent 26%),
    linear-gradient(135deg, #fff, #f8f5f7);
}

.profile-container {
  display: grid;
  grid-template-columns: 1fr 430px;
  gap: 60px;
  align-items: center;
}

.profile-kicker {
  color: var(--perfil-color);
  text-transform: uppercase;
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: .16em;
  margin-bottom: 16px;
}

.profile-hero h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(3.4rem, 9vw, 7rem);
  line-height: .9;
  margin-bottom: 22px;
  color: var(--mica-ink);
}

.profile-hero p {
  color: var(--mica-muted);
  line-height: 1.85;
  font-size: 1.06rem;
  max-width: 680px;
}

.profile-photo {
  border-radius: 28px;
  overflow: hidden;
  border: 5px solid var(--perfil-color);
  box-shadow: 0 24px 60px rgba(0,0,0,.12);
  background: var(--perfil-color);
}

.profile-photo img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  display: block;
}

.profile-section {
  padding: 90px 24px;
}

.profile-section.alt {
  background: #141014;
  color: white;
}

.profile-heading {
  width: min(780px, 100%);
  margin: 0 auto 44px;
  text-align: center;
}

.profile-heading .eyebrow { color: var(--perfil-color); }
.profile-heading h2 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  margin-bottom: 14px;
}
.profile-heading p {
  color: var(--mica-muted);
  line-height: 1.8;
}
.profile-section.alt .profile-heading p { color: rgba(255,255,255,.7); }

.profile-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.profile-area {
  padding: 26px;
  border-top: 5px solid var(--perfil-color);
}

.profile-area span {
  color: var(--perfil-color);
  font-size: 1.8rem;
  font-weight: 900;
}

.projects-grid {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.profile-project {
  overflow: hidden;
  transition: .25s ease;
}

.profile-project:hover {
  transform: translateY(-8px);
}

.profile-project img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--perfil-color), #1d1720);
}

.profile-project-content {
  padding: 24px;
}

.profile-project small {
  color: var(--perfil-color);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.profile-project h3 {
  margin: 10px 0;
  font-weight: 900;
}

.profile-btn {
  margin-top: 18px;
  color: var(--mica-white);
  background: var(--perfil-color);
}

.explore-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.explore-card {
  padding: 24px;
  text-decoration: none;
  border-top: 5px solid var(--card-color);
  transition: .25s ease;
}

.explore-card:hover {
  transform: translateY(-6px);
  color: var(--mica-ink);
  box-shadow: 0 22px 46px rgba(0,0,0,.12);
}

.explore-card span {
  color: var(--card-color);
  font-weight: 900;
}

.legal-page {
  padding-top: 0;
  background: var(--mica-white);
}

.legal-hero {
  padding: 90px 24px;
  color: white;
  background: linear-gradient(135deg, var(--mica-pink), var(--mica-black));
  text-align: center;
}

.legal-hero h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(3rem, 7vw, 6rem);
}

.legal-box {
  margin-top: 50px;
  padding: 34px;
}

.legal-box h2,
.legal-box h3 {
  color: var(--mica-pink);
  font-weight: 900;
}

.back-home {
  display: inline-flex;
  margin-bottom: 28px;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--mica-white);
  color: var(--mica-pink);
  font-weight: 900;
  text-decoration: none;
}

@media (max-width: 1120px) {
  .cards-grid { grid-template-columns: repeat(3, 1fr); }
  .profile-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1020px) {
  .nav-menu { gap: 3px; }
  .nav-menu li:nth-child(3) { margin-right: 160px; }
  .nav-menu a { padding: 9px; font-size: 0.82rem; }
  .process-timeline { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .contact-container,
  .profile-container {
    grid-template-columns: 1fr;
  }

  .profile-photo img { height: 460px; }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .explore-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  body { padding-top: 76px; }
  .navbar-mica { height: 76px; }

  .menu-toggle {
    display: flex;
    margin-left: auto;
    z-index: 3;
  }

  .nav-menu {
    position: absolute;
    top: 76px;
    left: 0;
    width: 100%;
    max-height: calc(100vh - 76px);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 18px;
    background: linear-gradient(180deg, #fff7fb, #ffffff);
    border-bottom: 1px solid var(--mica-line);
    transform: translateY(-18px);
    opacity: 0;
    pointer-events: none;
    transition: 0.28s ease;
  }

  .nav-menu li:nth-child(3) { margin-right: 0; }
  .nav-menu.show {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-menu a {
    justify-content: center;
    padding: 13px;
  }

  .hero-carousel { height: clamp(320px, 58vh, 620px); }
  .hero-copy { padding: 58px 0 72px; }

  .mvv-grid,
  .portfolio-grid,
  .footer-columns,
  .cards-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .form-row.two,
  .option-grid,
  .option-grid.three {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .navbar-mica { width: min(100% - 24px, 1180px); }

  .brand img {
    width: min(124px, 42vw);
    height: 54px;
  }

  .section,
  .profile-section,
  .profile-hero {
    padding: 76px 18px;
  }

  .hero-copy { width: min(100% - 28px, 1180px); }

  .hero-wordmark {
    width: min(300px, 82vw);
  }

  .hero-actions,
  .profile-links {
    flex-direction: column;
  }

  .team-card {
    grid-template-columns: 1fr;
  }

  .team-card img {
    height: 330px;
  }

  .contact-form,
  .contact-form-modern,
  .legal-box {
    padding: 24px 18px;
  }

  .footer-brand {
    align-items: flex-start;
  }

  .profile-nav-inner {
    flex-direction: column;
    align-items: stretch;
    padding: 14px 0;
  }

  .profile-photo img {
    height: 380px;
  }

  .profile-grid,
  .explore-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   AJUSTES RESPONSIVE FINALES
   Pega este bloque al final de estilos.css
   Mejora celular, tablet e imágenes
========================================================= */

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  min-width: 320px;
}

img,
video,
iframe {
  max-width: 100%;
}

img {
  display: block;
  height: auto;
}

p,
h1,
h2,
h3,
h4,
h5,
h6,
a,
span,
strong,
small,
label,
input,
textarea,
select {
  overflow-wrap: anywhere;
}

.hero-carousel img,
.team-card img,
.profile-photo img,
.profile-project img {
  width: 100%;
  object-fit: cover;
  object-position: center;
}

.brand img,
.footer-brand img,
.hero-wordmark {
  object-fit: contain;
}

.navbar-mica,
.hero-copy,
.stats-grid,
.cards-grid,
.portfolio-grid,
.designer-grid,
.designer-work-grid,
.process-timeline,
.footer-columns,
.mvv-grid,
.team-grid,
.contact-container,
.profile-container,
.profile-grid,
.explore-grid,
.legal-box,
.projects-grid {
  max-width: 1180px;
}

.cards-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
}

.mvv-grid,
.process-timeline,
.profile-grid,
.explore-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}

.projects-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}

.portfolio-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}

.footer-columns {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
}

.team-card {
  min-width: 0;
}

.team-card img {
  min-height: 0;
}

.profile-project img {
  aspect-ratio: 16 / 11;
  height: auto;
}

.profile-photo img {
  aspect-ratio: 4 / 5;
  height: auto;
}

.hero-carousel img {
  height: 100%;
}

button,
input,
select,
textarea {
  max-width: 100%;
}

.btn-primary-mica,
.btn-secondary-mica,
.submit-btn,
.profile-btn,
.team-actions a,
.external-links a {
  text-align: center;
  white-space: normal;
}

/* Tablet */
@media (max-width: 1024px) {
  body {
    padding-top: 76px;
  }

  .navbar-mica {
    width: min(1180px, calc(100% - 28px));
    height: 76px;
    justify-content: space-between;
  }

  .brand {
    left: 0;
    transform: translateY(-50%);
  }

  .brand img {
    width: min(130px, 36vw);
    height: 54px;
  }

  .menu-toggle {
    display: flex;
    margin-left: auto;
    z-index: 1002;
  }

  .nav-menu {
    position: fixed;
    top: 76px;
    left: 14px;
    right: 14px;
    width: auto;
    max-height: calc(100vh - 92px);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 16px;
    background: linear-gradient(180deg, #fff7fb, #ffffff);
    border: 1px solid var(--mica-line);
    border-radius: 0 0 18px 18px;
    box-shadow: 0 18px 45px rgba(29, 23, 32, 0.14);
    transform: translateY(-18px);
    opacity: 0;
    pointer-events: none;
    transition: 0.28s ease;
  }

  .nav-menu.show {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-menu li:nth-child(3) {
    margin-right: 0;
  }

  .nav-menu a {
    justify-content: center;
    width: 100%;
    padding: 14px 16px;
    font-size: 0.95rem;
  }

  .hero-carousel {
    height: clamp(330px, 54vh, 560px);
  }

  .carousel-control-prev,
  .carousel-control-next {
    width: 54px;
  }

  .carousel-control-prev-icon,
  .carousel-control-next-icon {
    width: 38px;
    height: 38px;
  }

  .section,
  .profile-section {
    padding: 76px 22px;
  }

  .hero-copy {
    padding: 56px 0 70px;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .team-card {
    grid-template-columns: 220px 1fr;
  }

  .contact-container,
  .profile-container {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .contact-info {
    text-align: center;
  }

  .profile-photo {
    width: min(420px, 100%);
    margin: 0 auto;
  }
}

/* Celular grande */
@media (max-width: 760px) {
  body {
    padding-top: 72px;
  }

  .navbar-mica {
    height: 72px;
    width: min(1180px, calc(100% - 24px));
  }

  .nav-menu {
    top: 72px;
  }

  .hero-carousel {
    height: clamp(280px, 48vh, 440px);
  }

  .hero-carousel::after {
    background:
      linear-gradient(180deg, rgba(20, 15, 21, 0.20), rgba(20, 15, 21, 0.60)),
      linear-gradient(90deg, rgba(217, 10, 129, 0.10), rgba(217, 10, 129, 0.30));
  }

  .hero-copy {
    width: min(1180px, calc(100% - 28px));
    padding: 44px 0 58px;
  }

  .hero-actions,
  .external-links,
  .team-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions a,
  .external-links a,
  .team-actions a {
    width: 100%;
  }

  .section,
  .profile-section,
  .profile-hero,
  .legal-hero {
    padding: 64px 18px;
  }

  .section-heading,
  .contact-intro,
  .profile-heading {
    margin-bottom: 32px;
  }

  .mvv-card,
  .service-card,
  .portfolio-card,
  .process-timeline article,
  .profile-area,
  .explore-card {
    padding: 22px;
  }

  .team-card {
    grid-template-columns: 1fr;
  }

  .team-card img {
    aspect-ratio: 4 / 3;
    height: auto;
  }

  .team-content {
    padding: 24px;
  }

  .contact-form,
  .contact-form-modern,
  .legal-box {
    padding: 24px 18px;
  }

  .form-row.two,
  .option-grid,
  .option-grid.three {
    grid-template-columns: 1fr;
  }

  .footer {
    padding: 42px 18px 22px;
  }

  .footer-brand {
    align-items: flex-start;
  }

  .profile-nav-inner {
    width: min(1180px, calc(100% - 24px));
    min-height: auto;
    padding: 14px 0;
    flex-direction: column;
    align-items: stretch;
  }

  .profile-logo {
    text-align: center;
  }

  .profile-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .profile-links a {
    text-align: center;
  }

  .profile-hero h1 {
    font-size: clamp(2.8rem, 17vw, 5rem);
  }

  .profile-photo {
    border-radius: 22px;
  }

  .profile-project img {
    aspect-ratio: 4 / 3;
  }

  .legal-hero h1 {
    font-size: clamp(2.4rem, 14vw, 4rem);
  }
}

/* Celular chico */
@media (max-width: 480px) {
  .brand img {
    width: min(112px, 42vw);
    height: 48px;
  }

  .menu-toggle {
    width: 42px;
    height: 42px;
  }

  .nav-menu {
    left: 10px;
    right: 10px;
    padding: 12px;
  }

  .nav-menu a {
    font-size: 0.88rem;
    padding: 12px;
  }

  .hero-carousel {
    height: 300px;
  }

  .hero-carousel .carousel-indicators {
    margin-bottom: 12px;
  }

  .hero-carousel .carousel-indicators [data-bs-target] {
    width: 28px;
    height: 5px;
  }

  .carousel-control-prev,
  .carousel-control-next {
    display: none;
  }

  .eyebrow,
  .profile-kicker {
    font-size: 0.7rem;
    letter-spacing: 0.10em;
  }

  .hero-frase {
    font-size: clamp(1.35rem, 8vw, 2rem);
  }

  .hero-copy > p:not(.eyebrow):not(.hero-frase),
  .section-heading p:not(.eyebrow),
  .contact-intro p:not(.eyebrow),
  .profile-heading p,
  .profile-hero p {
    font-size: 0.96rem;
    line-height: 1.65;
  }

  .section-heading h2,
  .contact-intro h2,
  .profile-heading h2,
  .contact-info h2 {
    font-size: clamp(1.8rem, 11vw, 2.55rem);
    line-height: 1.05;
  }

  .portfolio-card {
    min-height: 220px;
  }

  .contact-card {
    padding: 18px;
  }

  .profile-links {
    grid-template-columns: 1fr;
  }

  .profile-photo img {
    aspect-ratio: 1 / 1.12;
  }

  .footer-brand {
    flex-direction: column;
  }
}

/* Pantallas muy pequeñas */
@media (max-width: 360px) {
  .section,
  .profile-section,
  .profile-hero,
  .legal-hero {
    padding-left: 14px;
    padding-right: 14px;
  }

  .mvv-card,
  .service-card,
  .portfolio-card,
  .process-timeline article,
  .profile-area,
  .explore-card,
  .team-content,
  .contact-form,
  .contact-form-modern,
  .legal-box {
    padding-left: 16px;
    padding-right: 16px;
  }
}

.portafolio-container {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px;
	width: min(1180px, 100%);
	margin: 0 auto;
}

.portfolio-carousel {
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border-radius: 8px;
	background: var(--mica-white);
	box-shadow: 0 18px 42px rgba(29, 23, 32, 0.12);
	cursor: pointer;
}

.portfolio-carousel:hover {
	transform: translateY(-4px);
	box-shadow: 0 24px 48px rgba(29, 23, 32, 0.18);
}

.portfolio-carousel img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
}

.portfolio-carousel img.active {
	opacity: 1;
	z-index: 1;
}

.portfolio-carousel:hover img.active {
	filter: brightness(0.92);
}

body.carousel-open {
	overflow: hidden;
}

.portfolio-carousel.expanded {
	position: fixed;
	inset: 0;
	z-index: 2000;
	aspect-ratio: auto;
	border-radius: 0;
	background: rgba(29, 23, 32, 0.92);
	box-shadow: 0 30px 90px rgba(0, 0, 0, 0.46);
	cursor: default;
	transform: none;
}

.portfolio-carousel.expanded::before {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(29, 23, 32, 0.74);
	z-index: 0;
}

.portfolio-carousel.expanded img {
	inset: 50%;
	width: min(100%, 980px);
	height: min(78vh, 760px);
	max-height: calc(100vh - 150px);
	aspect-ratio: 4 / 3;
	border-radius: 8px;
	object-fit: contain;
	background: transparent;
	box-shadow: none;
	transform: translate(-50%, -50%);
}

.portfolio-carousel.expanded img.active {
	transform: translate(-50%, -50%);
}

.carousel-close,
.carousel-control,
.carousel-count {
	position: absolute;
	z-index: 3;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s ease;
}

.carousel-close {
	top: 22px;
	right: 22px;
	width: 46px;
	height: 46px;
	display: grid;
	place-items: center;
	border: 0;
	border-radius: 8px;
	color: var(--mica-pink);
	background: var(--mica-white);
	cursor: pointer;
	box-shadow: 0 14px 28px rgba(0, 0, 0, 0.24);
	font-size: 32px;
	line-height: 1;
}

.carousel-control {
	top: 50%;
	width: 52px;
	height: 52px;
	display: grid;
	place-items: center;
	border: 0;
	border-radius: 50%;
	color: var(--mica-pink);
	background: var(--mica-white);
	cursor: pointer;
	box-shadow: 0 14px 28px rgba(0, 0, 0, 0.24);
	transform: translateY(-50%);
}

.portfolio-carousel.expanded .carousel-close,
.portfolio-carousel.expanded .carousel-control,
.portfolio-carousel.expanded .carousel-count {
	opacity: 1;
	pointer-events: auto;
}

.carousel-control:hover,
.carousel-close:hover {
	background: #fff7fb;
}

.carousel-control:hover {
	transform: translateY(-50%) scale(1.08);
}

.carousel-control span {
	display: block;
	margin-top: -4px;
	font-size: 44px;
	line-height: 1;
}

.carousel-prev {
	left: 24px;
}

.carousel-next {
	right: 24px;
}

.carousel-count {
	left: 50%;
	bottom: 22px;
	padding: 8px 12px;
	border-radius: 999px;
	color: var(--mica-white);
	background: rgba(20, 16, 20, 0.7);
	font-weight: 800;
	transform: translateX(-50%);
}

/* En movil el portafolio pasa a una sola columna; tablet y PC conservan 2 columnas. */
@media (max-width: 620px) {
	.portafolio-container {
		grid-template-columns: 1fr;
	}

	.portfolio-carousel.expanded {
		inset: 0;
	}

	.portfolio-carousel.expanded img {
		width: calc(100vw - 32px);
		height: min(68vh, 640px);
	}

	.carousel-control {
		top: auto;
		bottom: 18px;
		width: 46px;
		height: 46px;
	}

	.carousel-prev {
		left: 18px;
	}

	.carousel-next {
		right: 18px;
	}

	.carousel-count {
		bottom: 24px;
	}
}
