/*
Theme Name: Azuna Theme
Theme URI: https://azuna.com.co
Author: CWK Azuna Colombia
Description: Tema personalizado para CWK Azuna Colombia - One Page + E-commerce
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: Proprietary
Text Domain: azuna
*/

/* =============================================
   CSS CUSTOM PROPERTIES
   ============================================= */
:root {
  --azuna-blue: #3bafe0;
  --azuna-blue-dark: #1a7fb0;
  --azuna-blue-light: #67b9e3;
  --azuna-red: #e8192c;
  --azuna-bg-light: #f4f5f9;
  --azuna-grad-start: #fef7f3;
  --azuna-grad-end: #f3f7ff;
  --azuna-text: #1a1a2e;
  --azuna-text-muted: #6b7280;
  --font-main: 'DM Sans', sans-serif;
  --font-display: 'DM Serif Display', serif;
  --max-w: 80rem; /* ~1280px = max-w-7xl */
  --max-w-contact: 56rem; /* max-w-4xl */
}

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-main);
  color: var(--azuna-text);
  background: #fff;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

/* =============================================
   CONTAINER
   ============================================= */
.azuna-container {
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* =============================================
   SECTION TITLES
   ============================================= */
.azuna-section-title {
  text-align: center;
  font-size: 1.875rem;
  font-weight: 400;
  font-family: var(--font-display);
  color: var(--azuna-text);
  margin-bottom: 2rem;
}

/* =============================================
   NAVBAR
   ============================================= */
#azuna-navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}

.azuna-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  max-width: var(--max-w);
  margin: 0 auto;
}

.azuna-nav-logo img {
  height: 48px;
  width: auto;
}

.azuna-nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.azuna-nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--azuna-text);
  transition: color 0.2s;
}

.azuna-nav-links a:hover {
  color: var(--azuna-blue);
}

.azuna-nav-client {
  background: var(--azuna-red);
  color: #fff !important;
  padding: 0.35rem 1rem;
  border-radius: 9999px;
  font-weight: 600 !important;
  transition: opacity 0.2s !important;
}

.azuna-nav-client:hover {
  opacity: 0.88;
  color: #fff !important;
}

.azuna-nav-icons {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.azuna-nav-icons a {
  color: var(--azuna-text-muted);
  transition: color 0.2s;
  display: flex;
  align-items: center;
}

.azuna-nav-icons a:hover {
  color: var(--azuna-blue);
}

.azuna-nav-icons svg {
  width: 20px;
  height: 20px;
}

/* Mobile nav */
.azuna-nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
}

.azuna-mobile-menu {
  display: none;
  flex-direction: column;
  padding: 1rem 1.5rem;
  border-top: 1px solid #f0f0f0;
  gap: 0.75rem;
  background: #fff;
}

.azuna-mobile-menu a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--azuna-text);
  padding: 0.35rem 0;
}

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

/* =============================================
   HERO
   ============================================= */
#section-hero {
  padding: 1.5rem 0 2.5rem;
}

.hero-image-wrap {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16/6;
  min-height: 320px;
}

.hero-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 1rem;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0,0,0,0.55) 0%,
    rgba(0,0,0,0.15) 50%,
    rgba(0,0,0,0.05) 100%
  );
  border-radius: 1rem;
}

.hero-text {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  color: #fff;
  max-width: 480px;
}

.hero-text h1 {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 0.5rem;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.hero-text p {
  font-size: clamp(0.85rem, 1.5vw, 1rem);
  opacity: 0.92;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.hero-logo {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  height: 40%;
  width: auto;
  filter: drop-shadow(0 0 10px rgba(0,0,0,0.32)) drop-shadow(0 0 2px rgba(0,0,0,0.18));
}

/* Hero sub-menu */
.hero-submenu {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  margin-top: 1.75rem;
  padding: 0 1rem;
}

.hero-submenu-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.hero-submenu-icon {
  background: #cbd5e1; /* slate-300 */
  border-radius: 0.75rem;
  padding: 0.375rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero-submenu-icon svg,
.hero-submenu-icon img,
.hero-submenu-icon iconify-icon {
  width: 22px;
  height: 22px;
  color: #334155;
}

.hero-submenu-text {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--azuna-text);
  line-height: 1.3;
}

.hero-submenu-text span {
  display: block;
}

/* =============================================
   NUESTRA EMPRESA
   ============================================= */
#section-empresa {
  padding: 3rem 0;
}

.empresa-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.empresa-img-wrap {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
}

.empresa-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1rem;
  display: block;
}

.empresa-img-top {
  height: 430px;
}

.empresa-row-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.empresa-img-bottom {
  height: 490px;
}

.empresa-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0) 50%);
  border-radius: 1rem;
}

.empresa-caption {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  color: #fff;
}

.empresa-caption h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.empresa-caption p {
  font-size: 0.82rem;
  opacity: 0.92;
  max-width: 300px;
  line-height: 1.4;
  text-shadow: 0 1px 2px rgba(0,0,0,0.25);
}

/* =============================================
   SERVICIOS CAROUSEL
   ============================================= */
#section-servicios {
  padding: 3rem 0;
}

.carousel-wrap {
  position: relative;
}

.carousel-track-outer {
  overflow: hidden;
  border-radius: 1rem;
}

.carousel-track {
  display: flex;
  gap: 0.75rem;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.carousel-item {
  flex: 0 0 calc(25% - 0.57rem);
  min-width: 0;
}

.carousel-item-img {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  height: 425px;
}

.carousel-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carousel-ver-btn {
  position: absolute;
  top: 28px;
  right: 16px;
  background: var(--azuna-blue-light);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.125rem 0.5rem;
  border-radius: 0.375rem;
  z-index: 2;
  cursor: pointer;
  transition: background 0.2s;
}

.carousel-ver-btn:hover {
  background: var(--azuna-blue);
}

.carousel-item-body {
  padding: 0.75rem 0.25rem 0;
}

.carousel-item-body h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.carousel-item-body p {
  font-size: 0.875rem;
  color: var(--azuna-text-muted);
  line-height: 1.4;
}

/* Carousel controls */
.carousel-btn {
  position: absolute;
  top: 212px;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  z-index: 10;
  transition: box-shadow 0.2s;
}

.carousel-btn:hover {
  box-shadow: 0 4px 14px rgba(0,0,0,0.18);
}

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

/* =============================================
   MERCHANDISING BANNER
   ============================================= */
#section-merchandising {
  background: var(--azuna-bg-light);
  padding: 1.5rem 0;
}

.merch-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.merch-wrap {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  height: 550px;
}

.merch-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.merch-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 55%);
  border-radius: 1rem;
}

.merch-caption {
  position: absolute;
  bottom: 1.75rem;
  left: 1.75rem;
  color: #fff;
}

.merch-caption h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.875rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.4rem;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.merch-caption p {
  font-size: 0.9rem;
  opacity: 0.92;
  text-shadow: 0 1px 3px rgba(0,0,0,0.25);
}

/* =============================================
   AZUNA LATAM
   ============================================= */
#section-latam {
  padding: 3rem 0;
}

.latam-card {
  background: var(--azuna-bg-light);
  border-radius: 1rem;
  overflow: hidden;
  display: flex;
  height: 480px;
}

.latam-img {
  width: 66.666%;
  flex-shrink: 0;
  position: relative;
}

.latam-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 1rem 0 0 1rem;
}

.latam-content {
  flex: 1;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: transparent;
}

.latam-top p:first-child {
  font-size: 0.875rem;
  color: var(--azuna-text-muted);
  margin-bottom: 0.75rem;
}

.latam-top p.latam-desc {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.45;
  color: var(--azuna-text);
}

.latam-specs {
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--azuna-text);
}

.latam-specs strong {
  font-weight: 600;
}

.latam-specs .latam-brand {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
}

/* =============================================
   DISEÑO VISUAL
   ============================================= */
#section-diseno {
  padding: 3rem 0;
}

.diseno-intro {
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: 1.75rem;
  color: var(--azuna-text);
}

.diseno-intro strong {
  font-weight: 700;
}

.diseno-cards {
  display: flex;
  gap: 0.75rem;
}

.diseno-card {
  flex: 1;
  border-radius: 1rem;
  background: linear-gradient(to right, var(--azuna-grad-start), var(--azuna-grad-end));
  padding: 2rem 1.5rem 0.75rem 0.875rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  min-height: 160px;
}

.diseno-card-text {
  flex: 1;
}

.diseno-card-text h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  line-height: 1.3;
}

.diseno-card-text p {
  font-size: 0.875rem;
  color: var(--azuna-text-muted);
  line-height: 1.45;
}

.diseno-card-img {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 0.75rem;
  align-self: flex-end;
}

.diseno-labels {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.diseno-label {
  flex: 1;
  padding-top: 0.75rem;
  font-size: 1.125rem;
  font-weight: 700;
}

.diseno-cta {
  text-align: center;
  margin-top: 2rem;
}

.btn-cotiza {
  display: inline-block;
  background: var(--azuna-blue);
  color: #fff;
  padding: 0.5rem 1.5rem;
  border-radius: 9999px;
  font-size: 0.95rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  text-decoration: none;
}

.btn-cotiza:hover {
  background: var(--azuna-blue-dark);
  transform: translateY(-1px);
}

/* =============================================
   CLIENTES CAROUSEL
   ============================================= */
#section-clientes {
  padding: 3rem 0;
}

.clientes-divider {
  height: 8px;
  background: linear-gradient(to bottom, #fcfdfe, #ffffff);
  margin-bottom: 1rem;
}

.clientes-carousel-item {
  flex: 0 0 calc(25% - 0.57rem);
  min-width: 0;
  background: #f8f9fb;
  border-radius: 1rem;
  padding: 1.5rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.clientes-logo-wrap {
  width: 100%;
  aspect-ratio: 277/63;
  display: flex;
  align-items: center;
}

.clientes-logo-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.clientes-ad-wrap {
  width: 100%;
  aspect-ratio: 300/213;
  border-radius: 0.5rem;
  overflow: hidden;
}

.clientes-ad-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.clientes-item-body h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.clientes-item-body p {
  font-size: 0.875rem;
  color: var(--azuna-text-muted);
  line-height: 1.4;
}

/* =============================================
   CLIENTES SATISFECHOS
   ============================================= */
#section-satisfechos {
  padding: 3rem 0;
  text-align: center;
}

.satisfechos-img {
  max-width: 180px;
  margin: 0 auto 1.5rem;
}

.satisfechos-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.satisfechos-text {
  font-size: 0.95rem;
  color: var(--azuna-text-muted);
  max-width: 24rem;
  margin: 0 auto 1.75rem;
  line-height: 1.6;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 0.625rem;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* YouTube */
.social-youtube { background: #ff0000; }
/* Instagram gradient */
.social-instagram {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}
/* Facebook */
.social-facebook { background: #1877f2; }

.social-icon svg {
  color: #fff;
  width: 20px;
  height: 20px;
}

/* =============================================
   CONTÁCTENOS
   ============================================= */
#section-contacto {
  padding: 5rem 0 4rem;
}

.contacto-card {
  background: linear-gradient(to right, var(--azuna-grad-start), var(--azuna-grad-end));
  border-radius: 1rem;
  max-width: var(--max-w-contact);
  margin: 0 auto;
  padding: 3.5rem 2.5rem;
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
}

.contacto-logo {
  width: 200px;
  flex-shrink: 0;
}

.contacto-logo img {
  width: 100%;
  height: auto;
}

.contacto-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 180px;
}

.contacto-name {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.contacto-details {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.875rem;
  color: var(--azuna-text-muted);
  margin-bottom: 1.5rem;
}

.contacto-input-wrap {
  position: relative;
}

.contacto-input {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 0.75rem;
  padding: 0.65rem 1rem;
  font-size: 0.875rem;
  font-family: var(--font-main);
  color: var(--azuna-text);
  background: rgba(255,255,255,0.7);
  resize: none;
  transition: border-color 0.2s, height 0.25s;
  overflow: hidden;
  min-height: 42px;
  cursor: text;
  outline: none;
  display: block;
}

.contacto-input:focus {
  border-color: var(--azuna-blue);
}

.contacto-input.expanded {
  min-height: 90px;
  cursor: auto;
}

.contacto-send-btn {
  display: none;
  margin-top: 0.5rem;
  background: var(--azuna-blue);
  color: #fff;
  border: none;
  border-radius: 0.75rem;
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-main);
  transition: background 0.2s;
}

.contacto-send-btn:hover {
  background: var(--azuna-blue-dark);
}

.contacto-send-btn.visible {
  display: inline-block;
}

/* =============================================
   FOOTER
   ============================================= */
#azuna-footer {
  background: #1a1a2e;
  color: rgba(255,255,255,0.55);
  text-align: center;
  font-size: 0.78rem;
  padding: 1.25rem;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .carousel-item {
    flex: 0 0 calc(50% - 0.375rem);
  }
  .clientes-carousel-item {
    flex: 0 0 calc(50% - 0.375rem);
  }
  .empresa-img-top { height: 320px; }
  .empresa-img-bottom { height: 360px; }
  .latam-card { height: auto; flex-direction: column; }
  .latam-img { width: 100%; height: 300px; }
  .latam-img img { border-radius: 1rem 1rem 0 0; }
  .diseno-cards { flex-direction: column; }
  .diseno-labels { flex-direction: column; }
}

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

  .hero-image-wrap { aspect-ratio: 4/3; min-height: 280px; }
  .hero-logo {
    height: 25%;
    bottom: auto;
    top: 1rem;
    right: 1rem;
  }
  .hero-submenu { gap: 1.25rem; }

  .empresa-row-bottom { grid-template-columns: 1fr; }
  .empresa-img-top { height: 240px; }
  .empresa-img-bottom { height: 280px; }

  .carousel-item { flex: 0 0 calc(100% - 0rem); }
  .clientes-carousel-item { flex: 0 0 calc(100% - 0rem); }

  .merch-wrap { height: 320px; }

  .contacto-card { flex-direction: column; padding: 2rem 1.25rem; }
  .contacto-logo { width: 140px; }

  .diseno-card { flex-direction: column; }
  .diseno-card-img { width: 100%; height: 160px; }
}

@media (max-width: 480px) {
  .hero-text h1 { font-size: 1.2rem; }
  .hero-submenu { gap: 0.75rem; }
  .azuna-section-title { font-size: 1.5rem; }
}
