/* Palillos Pingüino — static replica of the 2024 WordPress/Elementor home */
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(fonts/montserrat-latin-wght-normal.woff2) format('woff2'); }
@font-face { font-family: 'Roboto Condensed'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(fonts/roboto-condensed-latin-wght-normal.woff2) format('woff2'); }

:root {
  --navy: #043254; --ink: #01151d; --deep: #162045; --indigo: #323cc0; --blue: #3667e4; --sky: #127bc9;
  --grey: #7e7e7e; --yellow: #ffcd57; --footer: #000a2b;
  --title: 'Montserrat', 'Arial', sans-serif; --body: 'Roboto Condensed', 'Arial Narrow', sans-serif;
  --max: 1140px; --hdr: 64px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--hdr); }
body { margin: 0; font-family: var(--body); font-size: 15px; line-height: 1.6; color: var(--grey); background: #fff; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
.wrap { width: min(100% - 40px, var(--max)); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }

/* Header */
.hdr { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--hdr); background: linear-gradient(122deg, var(--sky) 0%, #012947 76%); color: #fff; box-shadow: 0 4px 18px rgb(0 10 43 / .25); }
.hdr .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.hdr-logo img { height: 46px; width: auto; }
.nav { display: flex; gap: 34px; }
.nav a { font-family: var(--title); font-weight: 700; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; transition: border-color .25s, color .25s; }
.nav a:hover { border-color: var(--yellow); color: var(--yellow); }
.hdr-right { display: flex; align-items: center; gap: 12px; font-family: var(--title); font-size: 12px; font-weight: 600; }
.hdr-right a { text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.hdr-right img { width: 26px; height: 26px; }
.burger { display: none; width: 42px; height: 42px; border: 2px solid #fff; border-radius: 50%; background: none; cursor: pointer; padding: 0; position: relative; }
.burger span, .burger span::before, .burger span::after { content: ''; position: absolute; left: 10px; right: 10px; height: 2px; background: #fff; border-radius: 2px; }
.burger span { top: 19px; } .burger span::before { top: -7px; left: 0; right: 0; } .burger span::after { top: 7px; left: 0; right: 0; }

/* Hero slider */
.hero { position: relative; margin-top: var(--hdr); height: min(72vw, 640px); min-height: 420px; overflow: hidden; background: #eaf4fb; color: #fff; }
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility .9s; }
.slide.on { opacity: 1; visibility: visible; }
.slide > img, .slide .abs { position: absolute; }
.slide-bg { inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero h2 { font-family: var(--title); font-weight: 400; font-size: clamp(18px, 2.6vw, 32px); line-height: 1.05; }
.hero h2 b { display: block; font-weight: 800; }
.hero p { font-size: clamp(13px, 1.3vw, 16px); line-height: 1.35; }
.btn-y { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; padding: 7px 16px; border-radius: 999px; background: var(--yellow); color: var(--navy); font-family: var(--title); font-weight: 700; font-size: 12px; text-decoration: none; transition: transform .25s, background .25s; }
.btn-y:hover { transform: translateX(4px); background: #ffd978; }
.btn-y::after { content: '›'; font-size: 16px; line-height: 1; }
.badge { right: 9%; top: 0; width: clamp(54px, 7vw, 92px); z-index: 4; }
.hero-arrow { position: absolute; top: 50%; z-index: 6; width: 40px; height: 40px; margin-top: -20px; border: 0; background: none; color: #fff; font-size: 34px; line-height: 1; cursor: pointer; opacity: .8; text-shadow: 0 2px 8px rgb(0 0 0 / .4); }
.hero-arrow:hover { opacity: 1; } .hero-arrow.prev { left: 10px; } .hero-arrow.next { right: 10px; }

/* slide 2 — Nuestras Marcas */
.s2 .top { left: 26%; top: -1px; width: 52%; }
.s2 .title { left: 49%; top: 19%; width: 26%; }
.s2 .bar-a { left: -8%; bottom: -6%; width: 52%; transform: scaleY(-1); }
.s2 .bar-r { right: -2%; bottom: -2%; width: 26%; transform: scaleX(-1); }
.s2 .logos { left: 14%; right: 14%; top: 44%; display: flex; justify-content: space-between; gap: 2%; }
.s2 .logos img { width: 15%; position: static; filter: drop-shadow(0 8px 14px rgb(0 0 0 / .3)); }
.s2 .copy { left: 5%; bottom: 7%; width: 30%; }
/* slide 1 — Bienvenido */
.s1 { background: linear-gradient(120deg, #fff 30%, #dff0fb); color: var(--navy); }
.s1 .leaf { right: 4%; top: -8%; height: 116%; width: auto; }
.s1 .sticks { right: 6%; top: 4%; height: 92%; width: auto; }
.s1 .bar { left: -5%; bottom: -10%; width: 30%; }
.s1 .line { left: 30%; top: 6%; width: 12%; }
.s1 .copy { left: 10%; top: 26%; width: 40%; }
.s1 h2 { font-size: clamp(22px, 3.6vw, 46px); color: var(--navy); } .s1 h2 b { color: var(--indigo); }
.s1 p { margin-top: 10px; color: #3d4f63; font-size: clamp(14px, 1.5vw, 19px); }
/* slide 3 — Rama Médica */
.s3 { background: linear-gradient(120deg, #fff 30%, #dff0fb); color: var(--navy); }
.s3 .photo { right: 3%; top: 6%; height: 88%; width: auto; }
.s3 .wedge { left: -4%; bottom: -6%; width: 30%; }
.s3 .bar { left: 34%; top: -6%; width: 14%; }
.s3 .copy { left: 10%; top: 24%; width: 40%; }
.s3 h2 { font-size: clamp(22px, 3.6vw, 46px); color: var(--navy); } .s3 h2 b { color: var(--indigo); }
.s3 p { margin-top: 10px; color: #3d4f63; font-size: clamp(14px, 1.5vw, 19px); }

/* Section titles */
.kicker { font-family: var(--title); font-weight: 700; font-size: 13px; color: var(--ink); }
.h-sec { font-family: var(--title); font-weight: 800; font-size: clamp(30px, 3.6vw, 44px); line-height: 1.1; color: var(--ink); margin-top: 6px; }
.h-sec span { color: #0069cc; }
.rule { width: 190px; height: auto; margin: 14px 0 28px; }

/* Quienes somos */
.about { padding: 90px 0 60px; }
.about .wrap { display: grid; grid-template-columns: .9fr 1.7fr; gap: 60px; align-items: start; }
.about-img { border-radius: 12px; box-shadow: 0 18px 50px rgb(4 50 84 / .18); }
.about-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; position: relative; }
.about-cols p + p { margin-top: 16px; }
.about-cols b { color: #555; }
.about-cols h3 { font-family: var(--title); font-weight: 700; font-size: 15px; color: var(--ink); margin-bottom: 14px; }
.about-desde { width: 110px; margin: 24px 0 0 auto; }

/* Misión / visión / filosofía */
.mvf { padding: 10px 0 80px; }
.mvf .wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.mvf h3 { display: flex; align-items: center; gap: 14px; font-family: var(--title); font-weight: 600; font-size: clamp(28px, 3vw, 40px); color: var(--navy); margin-bottom: 18px; }
.mvf svg { width: 46px; height: 46px; flex: none; color: #2f7fd6; }

/* Marcas */
.brands { position: relative; padding: 90px 0; color: #fff; overflow: hidden;
  background:
    radial-gradient(circle at 92% 12%, rgb(120 200 255 / .55) 0 2px, transparent 3px),
    radial-gradient(circle at 88% 58%, rgb(120 200 255 / .5) 0 3px, transparent 4px),
    radial-gradient(circle at 97% 76%, rgb(120 200 255 / .45) 0 2px, transparent 3px),
    radial-gradient(circle at 6% 18%, rgb(120 200 255 / .4) 0 2px, transparent 3px),
    radial-gradient(60% 90% at 100% 0%, #1f8ff0 0%, transparent 60%),
    radial-gradient(50% 80% at 0% 100%, #0a2f8f 0%, transparent 70%),
    linear-gradient(120deg, #0b3fb5 0%, #0a55d6 55%, #0b3aa8 100%); }
.brands .wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; }
.brands .kicker { color: #fff; } .brands .h-sec { color: #fff; } .brands .h-sec span { color: #2f8dff; }
.brands p { max-width: 520px; color: #e8f1ff; }
.seals { position: relative; width: min(240px, 60vw); aspect-ratio: 1; margin-inline: auto; }
.seals img { position: absolute; inset: 0; width: 100%; opacity: 0; transform: scale(.9) rotate(-8deg); transition: opacity .7s, transform .7s; }
.seals img.on { opacity: 1; transform: none; }

.cards { padding: 80px 0 40px; }
.cards .wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 800px; }
.cards a { display: block; overflow: hidden; border-radius: 6px; transition: transform .35s, box-shadow .35s; }
.cards a:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgb(4 50 84 / .25); }
.cards img { width: 100%; }

/* Productos */
.products { padding: 60px 0 40px; }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; list-style: none; padding: 0; margin: 0; }
.card { background: #fff; border-radius: 12px; box-shadow: 0 0 0 1px #dfe9f3, 0 10px 30px rgb(4 50 84 / .08); overflow: hidden; scroll-margin-top: calc(var(--hdr) + 16px); }
.gal { position: relative; aspect-ratio: 3 / 2; background: #e9ecef; overflow: hidden; }
.gal img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .45s; }
.gal img.on { opacity: 1; }
.gal img.contain { object-fit: contain; padding: 10px; }
.gal button { position: absolute; top: 50%; margin-top: -16px; width: 32px; height: 32px; border: 0; background: none; color: #2a56c6; font-size: 26px; line-height: 1; cursor: pointer; z-index: 2; }
.gal .gp { left: 6px; } .gal .gn { right: 6px; }
.thumbs { display: flex; gap: 8px; padding: 12px 16px 0; }
.thumbs button { width: 26px; height: 26px; padding: 0; border: 0; background: #d9d9d9 center / cover; cursor: pointer; opacity: .55; }
.thumbs button.on { opacity: 1; outline: 2px solid var(--ink); }
.card-b { padding: 14px 16px 22px; }
.card h3 { font-family: var(--title); font-weight: 700; font-size: 16px; line-height: 1.25; color: var(--ink); margin-bottom: 10px; }
.card p { font-size: 13px; line-height: 1.5; }

/* Contacto */
.contact { padding: 70px 0 90px; }
.contact-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 50px; align-items: center; }
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-family: var(--title); font-weight: 600; font-size: 13px; color: var(--ink); }
.form input, .form textarea { width: 100%; padding: 12px 14px; border: 1px solid #cfd8e3; border-radius: 10px; font: inherit; color: var(--ink); background: #fff; }
.form input:focus, .form textarea:focus { outline: 2px solid var(--blue); border-color: transparent; }
.form button { justify-self: start; padding: 12px 34px; border: 0; border-radius: 15px; background: var(--blue); color: #fff; font-family: var(--title); font-weight: 500; font-size: 15px; cursor: pointer; transition: background .25s; }
.form button:hover { background: #264aa7; }
.form .err { color: #b3261e; font-size: 13px; }
.contact-img { width: min(283px, 100%); margin-inline: auto; }

/* Footer */
.ftr { background: linear-gradient(122deg, #0d5fa6 0%, #012947 60%, var(--footer) 100%); color: #dfe9f5; padding: 60px 0 0; font-size: 13px; }
.ftr .wrap { display: grid; grid-template-columns: 1.1fr 1fr .7fr; gap: 50px; padding-bottom: 50px; }
.ftr h2 { font-family: var(--title); font-weight: 700; font-size: 16px; color: #fff; margin-bottom: 14px; }
.ftr b { color: #fff; }
.ftr a { text-decoration: none; } .ftr a:hover { color: var(--yellow); }
.ftr-logo { width: 150px; margin-bottom: 14px; }
.ftr ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ftr .social { display: flex; gap: 10px; } .ftr .social img { width: 30px; }
.ftr-bar { background: var(--footer); text-align: center; padding: 12px 20px; font-size: 12px; color: #b9c6d8; }
.ftr-bar a { color: var(--yellow); }

/* Floating */
.wa { position: fixed; left: 18px; bottom: 18px; z-index: 40; width: 52px; height: 52px; border-radius: 50%; background: #25d366; display: grid; place-items: center; color: #fff; box-shadow: 0 8px 22px rgb(0 0 0 / .25); }
.totop { position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 36px; height: 36px; border-radius: 6px; background: var(--indigo); color: #fff; display: grid; place-items: center; text-decoration: none; font-size: 18px; opacity: 0; pointer-events: none; transition: opacity .3s; }
.totop.on { opacity: 1; pointer-events: auto; }

@media (max-width: 1000px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .about .wrap { grid-template-columns: 1fr; gap: 36px; }
  .about-img { max-width: min(420px, 100%); }
}
@media (max-width: 760px) {
  .nav { position: fixed; inset: var(--hdr) 0 auto; flex-direction: column; gap: 0; background: #012947; padding: 8px 20px 18px; transform: translateY(-130%); transition: transform .35s; }
  .nav.open { transform: none; }
  .nav a { padding: 14px 0; border-bottom: 1px solid rgb(255 255 255 / .12); font-size: 14px; }
  .burger { display: block; }
  .hdr-right .tel span { display: none; }
  .hero { height: 118vw; min-height: 440px; max-height: 620px; }
  .hero h2 { font-size: 22px; } .hero p { font-size: 14px; }
  .s2 .top { left: 2%; width: 96%; } .s2 .title { left: 34%; top: 9%; width: 44%; }
  .s2 .logos { left: 6%; right: 6%; top: 38%; flex-wrap: wrap; justify-content: center; gap: 4%; } .s2 .logos img { width: 21%; }
  .s2 .copy { left: 6%; bottom: 6%; width: 46%; } .s2 .bar-a { width: 120%; left: -30%; bottom: -8%; } .s2 .bar-r { display: none; }
  .s1 .copy, .s3 .copy { left: 8%; top: 8%; width: 84%; } .s1 h2, .s3 h2 { font-size: 30px; }
  .s1 .sticks, .s3 .photo { right: -6%; top: auto; bottom: 0; height: 52%; } .s1 .leaf { display: none; } .s3 .bar { display: none; }
  .badge { right: 3%; width: 46px; }
  .about { padding: 60px 0 40px; }
  .about-cols, .mvf .wrap, .brands .wrap, .contact-grid, .ftr .wrap { grid-template-columns: 1fr; }
  .mvf .wrap { gap: 34px; } .brands { padding: 60px 0; }
  .cards .wrap { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card h3 { font-size: 14px; } .card-b { padding: 12px 12px 18px; } .thumbs { padding: 10px 12px 0; gap: 6px; } .thumbs button { width: 22px; height: 22px; }
  .contact-img { display: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: .01ms !important; } }
