/* LULI EN REDES — identidad azul profundo, naranja cálido y blanco */
:root {
  --blue: #263579;
  --orange: #f3ad32;
  --cream: #faf9f6;
  --dark: #202b68;
  --muted: #64677a;
  --line: #e6e3dc;
  --shadow: 0 22px 42px rgba(32, 43, 104, .18);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: "Raleway", sans-serif; background: var(--cream); color: var(--dark); }
button, a { font: inherit; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }

.header, .service-header { display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.logo { font-size: 1.7rem; font-weight: 800; letter-spacing: -1.5px; white-space: nowrap; }
.logo span { color: var(--orange); }
.contact-link, .back-button {
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--blue); border-radius: 40px; padding: 12px 22px;
  font-size: .85rem; font-weight: 700; transition: .25s ease;
  background: transparent; color: var(--blue); cursor: pointer;
}
.contact-link:hover, .back-button:hover { background: var(--blue); color: white; transform: translateY(-2px); }

/* PORTADA */
.home-view {
  min-height: 100vh;
  min-height: 100svh;
  padding: 28px clamp(20px, 5vw, 84px) 20px;
  display: flex; flex-direction: column; overflow: hidden;
  background-color: var(--cream);
  background-image: radial-gradient(rgba(38, 53, 121, .055) .7px, transparent .7px);
  background-size: 7px 7px;
}
.hero {
  flex: 1; display: grid; grid-template-columns: minmax(260px, .82fr) minmax(0, 1.7fr);
  align-items: center; gap: clamp(22px, 3vw, 52px);
  max-width: 1500px; width: 100%; margin: 28px auto 18px;
}
.hero-text { max-width: 510px; z-index: 2; }
.eyebrow { font-size: .7rem; font-weight: 800; letter-spacing: 2.5px; color: var(--blue); }
.hero h1 { font-size: clamp(2.7rem, 4.2vw, 5rem); line-height: 1.06; letter-spacing: -.055em; margin: 22px 0; }
.hero h1 span { display: block; color: var(--orange); }
.hero-text p { color: var(--muted); line-height: 1.85; font-size: 1rem; max-width: 440px; }
.choose-label { display: block; margin-top: 30px; font-size: .9rem; font-weight: 800; color: var(--blue); }
.interaction-hint { display: block; margin-top: 9px; font-size: .76rem; line-height: 1.5; color: var(--muted); }
.mobile-hint { display: none; }

.phone-stage {
  width: 100%; max-width: 900px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center; justify-items: center; gap: clamp(9px, 1.2vw, 20px);
  padding: 26px 4px 32px;
  perspective: 1200px;
}
.phone-card {
  --float-delay: 0s;
  --base-tilt: 0deg;
  position: relative; z-index: 1; width: 100%; max-width: 178px; min-width: 0;
  display: flex; flex-direction: column; align-items: center; gap: 13px;
  padding: 0; border: 0; background: transparent; cursor: pointer;
  rotate: var(--base-tilt); translate: 0 0;
  animation: phoneFloat 5.3s ease-in-out var(--float-delay) infinite;
  transition: filter .25s ease, z-index .25s ease;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.phone-one { --base-tilt: -5deg; --float-delay: -.7s; }
.phone-two { --base-tilt: 4deg; --float-delay: -2.1s; }
.phone-three { --base-tilt: -3deg; --float-delay: -1.3s; }
.phone-four { --base-tilt: 5deg; --float-delay: -2.8s; }
.phone-card:hover, .phone-card:focus-visible { z-index: 5; filter: drop-shadow(0 18px 18px rgba(32, 43, 104, .16)); }
.phone-card:focus-visible { outline: 3px solid var(--orange); outline-offset: 9px; border-radius: 16px; }
.phone {
  display: block; position: relative; width: 100%; aspect-ratio: .51; padding: 7px;
  border: 5px solid #202b68; border-radius: 34px;
  background: linear-gradient(145deg, #39498f, #151d4c);
  box-shadow: 0 18px 32px rgba(32, 43, 104, .22), 0 0 0 3px rgba(243, 173, 50, .23), inset 0 0 0 1px rgba(255,255,255,.25);
  transform: perspective(900px) rotateX(var(--rotate-x, 0deg)) rotateY(var(--rotate-y, 0deg));
  transform-style: preserve-3d;
  transition: transform .22s ease-out, box-shadow .28s ease;
  will-change: transform;
}
.phone::before {
  content: ""; position: absolute; width: 34%; height: 13px; background: #151d4c;
  border-radius: 0 0 11px 11px; top: 7px; left: 50%; transform: translateX(-50%); z-index: 3;
}
.phone-screen { display: block; height: 100%; width: 100%; border-radius: 23px; overflow: hidden; position: relative; background: #e9e5dc; }
.phone-screen img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .55s ease; }
.phone-screen::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 48%, rgba(17, 24, 61, .72)); pointer-events: none; }
.screen-tag { position: absolute; bottom: 18px; left: 12px; right: 8px; color: white; font-size: clamp(.48rem, .62vw, .65rem); font-weight: 800; letter-spacing: .09em; z-index: 2; text-align: left; }
.play-icon { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); color: white; background: rgba(0,0,0,.48); width: 45px; height: 45px; display: grid; place-items: center; border-radius: 50%; z-index: 2; font-size: .85rem; border: 1px solid rgba(255,255,255,.65); }
.phone-caption {
  display: flex; align-items: center; justify-content: center; width: 100%; min-height: 39px;
  color: var(--blue); background: var(--orange); border-radius: 28px; padding: 9px 7px;
  text-align: center; font-size: clamp(.7rem, .85vw, .9rem); line-height: 1.2; font-weight: 800;
  box-shadow: 0 5px 14px rgba(32, 43, 104, .12);
  transition: transform .25s ease, box-shadow .25s ease;
}
.phone-card:hover .phone, .phone-card:focus-visible .phone { box-shadow: 0 25px 42px rgba(32, 43, 104, .32), 0 0 0 5px rgba(243, 173, 50, .65); }
.phone-card:hover .phone-screen img { transform: scale(1.055); }
.phone-card:hover .phone-caption, .phone-card:focus-visible .phone-caption { transform: translateY(-3px); box-shadow: 0 9px 18px rgba(32, 43, 104, .2); }
.phone-card:active .phone { scale: .96; }
.home-footer { display: flex; justify-content: space-between; gap: 12px; font-size: .7rem; color: var(--blue); padding: 19px 0 5px; border-top: 1px solid rgba(38, 53, 121, .15); }

@keyframes phoneFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -14px; } }

/* VISTAS DE SERVICIOS */
.service-view { min-height: 100vh; padding: 35px 8% 70px; background: var(--cream); animation: pageEnter .4s ease both; }
.service-header { margin-bottom: 65px; }
.service-hero { max-width: 1100px; min-height: 370px; margin: 20px auto 85px; padding: 60px 7%; border-radius: 28px; background: #efede7; border: 1px solid rgba(38, 53, 121, .09); display: flex; flex-direction: column; justify-content: center; }
.service-hero h1 { font-size: clamp(3rem, 7vw, 6rem); line-height: 1.05; letter-spacing: -.055em; margin: 23px 0; }
.service-hero h1 span { color: var(--orange); }
.service-hero p { max-width: 540px; color: #666579; line-height: 1.9; }
.service-note { margin-top: 30px; font-size: .7rem; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; }
.photo-hero { background: #e8edf5; }
.video-hero { background: #f8ead2; }
.social-hero { background: #e9eaf3; }
.design-hero { background: #f5ead8; }
.portfolio-category { max-width: 1100px; margin: 0 auto 90px; }
.category-heading { margin-bottom: 30px; }
.category-heading > span { color: var(--blue); font-size: .7rem; font-weight: 800; letter-spacing: 2px; }
.category-heading h2 { font-size: clamp(1.8rem, 4vw, 3rem); letter-spacing: -1.5px; margin: 12px 0; }
.category-heading p { color: var(--muted); line-height: 1.8; max-width: 580px; font-size: .9rem; }

.photo-grid, .design-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.work-card, .design-card { overflow: hidden; border-radius: 16px; background: #eeece6; min-width: 0; }
.work-card img, .design-card img { width: 100%; height: 330px; object-fit: cover; display: block; transition: transform .5s ease; }
.work-card:hover img, .design-card:hover img { transform: scale(1.04); }
.work-card figcaption, .design-card figcaption { padding: 14px; font-size: .8rem; font-weight: 700; }
.product-grid .work-card:first-child { grid-row: span 2; }
.product-grid .work-card:first-child img { height: 490px; }
.food-grid { grid-template-columns: 1.2fr .8fr; }
.food-grid .work-card img { height: 390px; }
.session-grid { grid-template-columns: 1fr 1fr; }
.session-grid .work-card img { height: 410px; }
.video-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 22px; }
.video-grid-two { grid-template-columns: repeat(2, minmax(0,1fr)); max-width: 750px; }
.video-card { min-width: 0; }
.video-placeholder { position: relative; aspect-ratio: 9/16; overflow: hidden; border-radius: 18px; background: #202b68; }
.video-placeholder img { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-placeholder span { position: absolute; bottom: 15px; left: 15px; color: white; font-size: .8rem; font-weight: 700; text-shadow: 0 1px 5px #000; }
.video-card h3 { margin-top: 15px; font-size: 1rem; }
.video-card p { margin-top: 7px; color: var(--muted); font-size: .85rem; line-height: 1.7; }
.editing-feature, .community-feature, .graphic-feature { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 35px; padding: 28px; border-radius: 22px; background: #eeece6; }
.editing-feature h3, .community-feature h3, .graphic-feature h3 { font-size: 2rem; line-height: 1.2; margin: 18px 0; }
.editing-feature p, .community-feature p, .graphic-feature p { color: var(--muted); line-height: 1.9; }
.editing-feature img, .community-feature img, .graphic-feature img { width: 100%; height: 310px; object-fit: cover; border-radius: 15px; }
.social-projects { display: grid; gap: 35px; }
.social-project { display: grid; grid-template-columns: 1fr 1fr; gap: 35px; align-items: center; }
.social-project:nth-child(even) img { order: 2; }
.social-project img { width: 100%; height: 290px; object-fit: cover; border-radius: 18px; }
.social-project h3 { font-size: 1.7rem; margin: 15px 0; }
.social-project p { color: var(--muted); line-height: 1.8; }
.strategy-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.strategy-card { padding: 24px 19px; min-height: 195px; background: #eeece6; border-radius: 17px; }
.strategy-card > span { color: var(--blue); font-weight: 800; font-size: .75rem; }
.strategy-card h3 { margin: 24px 0 10px; font-size: 1.15rem; }
.strategy-card p { color: var(--muted); font-size: .85rem; line-height: 1.7; }
.flyer-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
.flyer-grid .design-card img { height: 420px; }
.service-end { max-width: 1100px; margin: 90px auto 0; padding: 60px 25px; border-radius: 25px; background: var(--dark); color: white; text-align: center; }
.service-end h2 { font-size: clamp(2rem, 4vw, 3.2rem); margin-bottom: 15px; }
.service-end p { color: #d2d0e3; line-height: 1.8; }
.cta { display: inline-block; background: var(--orange); color: var(--blue); padding: 15px 27px; border-radius: 35px; font-weight: 800; margin: 28px 0 5px; transition: .25s; }
.cta:hover { transform: translateY(-3px); background: #e69a19; }
@keyframes pageEnter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* TABLETS: teléfonos más grandes en dos columnas */
@media (max-width: 900px) {
  .home-view { padding-left: 5%; padding-right: 5%; }
  .hero { grid-template-columns: 1fr; padding-top: 20px; gap: 15px; margin-top: 18px; }
  .hero-text { max-width: 720px; text-align: center; margin: auto; }
  .hero-text p { margin: auto; }
  .phone-stage { max-width: 760px; }
  .phone-card { max-width: 165px; }
  .service-view { padding-left: 5%; padding-right: 5%; }
  .strategy-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

/* CELULARES */
@media (max-width: 760px) {
  .home-view { padding: 18px 17px 15px; }
  .header { gap: 10px; }
  .logo { font-size: 1.4rem; }
  .contact-link { padding: 10px 15px; font-size: .78rem; }
  .hero { padding-top: 24px; gap: 15px; margin: 18px auto 12px; }
  .hero h1 { font-size: clamp(2.35rem, 8.8vw, 3.7rem); letter-spacing: -.06em; margin: 16px 0; }
  .hero-text p { font-size: .9rem; line-height: 1.7; max-width: 510px; }
  .choose-label { margin-top: 20px; font-size: .88rem; }
  .desktop-hint { display: none; }
  .mobile-hint { display: block; font-size: .78rem; margin-top: 7px; }
  .phone-stage { grid-template-columns: repeat(2, minmax(0,1fr)); max-width: 520px; gap: 23px 17px; padding: 13px 3px 22px; }
  .phone-card { max-width: 170px; gap: 10px; }
  .phone { border-width: 4px; border-radius: 31px; padding: 6px; }
  .phone-screen { border-radius: 22px; }
  .phone::before { height: 11px; top: 6px; }
  .screen-tag { font-size: .58rem; bottom: 15px; left: 10px; }
  .phone-caption { min-height: 38px; padding: 8px 7px; font-size: .79rem; }
  .home-footer { font-size: .61rem; padding-top: 15px; }
  .service-view { padding: 22px 17px 48px; }
  .service-header { margin-bottom: 38px; }
  .back-button { padding: 10px 13px; font-size: .76rem; }
  .service-hero { min-height: 300px; padding: 34px 22px; margin: 12px auto 56px; border-radius: 20px; }
  .service-hero h1 { font-size: clamp(2.55rem, 10vw, 3.5rem); letter-spacing: -.06em; }
  .service-hero p { font-size: .9rem; }
  .portfolio-category { margin-bottom: 62px; }
  .photo-grid, .design-grid, .food-grid, .session-grid, .video-grid, .video-grid-two, .flyer-grid { grid-template-columns: 1fr; }
  .work-card img, .design-card img, .food-grid .work-card img, .session-grid .work-card img,
  .product-grid .work-card:first-child img, .flyer-grid .design-card img { height: 290px; }
  .product-grid .work-card:first-child { grid-row: auto; }
  .video-card { max-width: 330px; width: 100%; margin: 0 auto; }
  .editing-feature, .community-feature, .graphic-feature, .social-project { grid-template-columns: 1fr; gap: 20px; padding: 20px; }
  .social-project:nth-child(even) img { order: 0; }
  .editing-feature img, .community-feature img, .graphic-feature img, .social-project img { height: 240px; }
  .strategy-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .service-end { margin-top: 58px; padding: 40px 18px; }
}

@media (max-width: 380px) {
  .home-view { padding-left: 14px; padding-right: 14px; }
  .phone-stage { column-gap: 11px; row-gap: 19px; }
  .phone-card { max-width: 150px; }
  .phone-caption { font-size: .72rem; }
  .home-footer { font-size: .55rem; }
  .service-header { align-items: flex-start; }
  .logo { font-size: 1.25rem; }
  .back-button { padding: 9px 10px; font-size: .7rem; }
  .strategy-grid { grid-template-columns: 1fr; }
}

@media (hover: none), (pointer: coarse) {
  .phone-card:hover .phone { box-shadow: 0 18px 32px rgba(32, 43, 104, .22), 0 0 0 3px rgba(243, 173, 50, .23); }
  .phone-card:hover .phone-screen img { transform: none; }
  .phone-card:active { filter: drop-shadow(0 10px 14px rgba(32, 43, 104, .2)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .phone-card { translate: none !important; }
}

/* Diseño para redes: galería con proporciones originales (no recorta los textos de las piezas) */
.design-subtitle { font-size: 1.05rem; font-weight: 800; margin: 26px 0 14px; }
.design-masonry { column-count: 3; column-gap: 18px; }
.design-masonry .design-item { break-inside: avoid; margin: 0 0 18px; }
.design-masonry .design-item img { width: 100%; height: auto; display: block; }
.design-masonry-stories { column-count: 4; }
@media (max-width: 900px) { .design-masonry-stories { column-count: 3; } }
@media (max-width: 700px) { .design-masonry, .design-masonry-stories { column-count: 2; column-gap: 12px; } .design-masonry .design-item { margin-bottom: 12px; } }
