/*
Theme Name: Soma - Suministros Hoteleros
Description: Tema personalizado para Soma, empresa de suministros hoteleros. Diseñado con componentes modulares y optimizado para la industria de hospitalidad.
Author: Soma Team
Version: 1.0
License: GPL v2 or later
Text Domain: soma
*/

/* 
 * Este archivo es requerido por WordPress para reconocer el tema
 * Los estilos se cargan directamente desde el header usando Tailwind CSS CDN
 * para mantener la simplicidad y evitar problemas con functions.php
 */

/* ============================================================================
   CUSTOM FONTS - LEMONMILK
   ============================================================================ */

/* LEMONMILK Light */
@font-face {
  font-family: "LEMONMILK";
  src: url("./tipo/LEMONMILK-Light.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "LEMONMILK";
  src: url("./tipo/LEMONMILK-LightItalic.otf") format("opentype");
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}

/* LEMONMILK Regular */
@font-face {
  font-family: "LEMONMILK";
  src: url("./tipo/LEMONMILK-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "LEMONMILK";
  src: url("./tipo/LEMONMILK-RegularItalic.otf") format("opentype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* LEMONMILK Medium */
@font-face {
  font-family: "LEMONMILK";
  src: url("./tipo/LEMONMILK-Medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "LEMONMILK";
  src: url("./tipo/LEMONMILK-MediumItalic.otf") format("opentype");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

/* LEMONMILK Bold */
@font-face {
  font-family: "LEMONMILK";
  src: url("./tipo/LEMONMILK-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "LEMONMILK";
  src: url("./tipo/LEMONMILK-BoldItalic.otf") format("opentype");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

/* ============================================================================
   BASE STYLES
   ============================================================================ */

/* Reset básico para compatibilidad */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

/* Paragraphs use system fonts for better readability */
p {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

/* Estilos específicos del tema que no están en Tailwind */
.soma-brand-color {
  color: #0093d4;
}

.soma-brand-bg {
  background-color: #0093d4;
}

/* Animaciones personalizadas */
.fade-in {
  animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Animaciones para el Hero Carousel usando clases de utilidad */
.animate-fade-in-up {
  animation: fadeInUp 0.8s ease-out both;
}

/* Blog Post Styles */
.blog-post {
  line-height: 1.7;
}

.blog-post h2,
.blog-post h3,
.blog-post h4 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: #1f2937;
}

.blog-post p {
  margin-bottom: 1.5rem;
  color: #374151;
}

.blog-post img {
  margin: 2rem 0;
  border-radius: 0.5rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

/* ============================================================================
   HERO CAROUSEL
   ============================================================================ */
.hero-carousel {
  position: relative;
  color: #fff;
}

.hero-slide__bg {
  will-change: transform;
  transform: scale(1.05);
  transition: transform 7s ease, opacity 0.6s ease;
}

.swiper-slide.is-active .hero-slide__bg {
  transform: scale(1.01);
}

.hero-slide__overlay {
  background: linear-gradient(
    115deg,
    rgba(4, 18, 28, 0.62) 0%,
    rgba(14, 36, 52, 0.42) 45%,
    rgba(1, 155, 220, 0.32) 100%
  );
  mix-blend-mode: multiply;
}

.hero-slide__content {
  position: relative;
  z-index: 2;
}

.hero-slide__title,
.hero-slide__divider,
.hero-slide__button {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero-slide__divider {
  transform-origin: left center;
  transform: scaleX(0);
  transition: opacity 0.4s ease, transform 0.6s ease;
}

.swiper-slide.is-active .hero-slide__title {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.15s;
}

.swiper-slide.is-active .hero-slide__divider {
  opacity: 1;
  transform: scaleX(1);
  transition-delay: 0.32s;
}

.swiper-slide.is-active .hero-slide__button {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.45s;
}

.hero-slide__title {
  letter-spacing: 0.35em;
}

.hero-slide__title span {
  text-shadow: 0 16px 38px rgba(0, 0, 0, 0.55), 0 4px 18px rgba(0, 0, 0, 0.65);
}

.hero-slide__button {
  background-color: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 12px 45px rgba(4, 18, 28, 0.28);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

.hero-slide__button:hover,
.hero-slide__button:focus-visible {
  background-color: rgba(255, 255, 255, 0.28);
}

@media (max-width: 640px) {
  .hero-swiper {
    min-height: 420px;
  }

  .hero-slide__title {
    letter-spacing: 0.2em;
  }
}

.hero-nav-button {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(12, 26, 38, 0.35);
  color: #fff;
  backdrop-filter: blur(6px);
  transition: border-color 0.25s ease, background-color 0.25s ease,
    transform 0.25s ease;
}

.hero-nav-button:hover,
.hero-nav-button:focus-visible {
  border-color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.hero-nav-button:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

.hero-nav-button svg {
  width: 1.15rem;
  height: 1.15rem;
}

.hero-carousel .swiper-button-next::after,
.hero-carousel .swiper-button-prev::after {
  display: none;
}

.hero-swiper-pagination {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-content: center;
}

.hero-swiper-bullet {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.35);
  opacity: 0.65;
  transition: width 0.3s ease, background-color 0.3s ease, opacity 0.3s ease;
}

.hero-swiper-bullet.is-active {
  width: 1.8rem;
  background: #019bdc;
  opacity: 1;
}

/* Line clamp utility for similar articles */
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================================================
   LEMONMILK FONT UTILITIES
   ============================================================================ */

/* Font weight utilities for LEMONMILK */
.font-lemonmilk-light {
  font-family: "LEMONMILK", sans-serif;
  font-weight: 300;
}

.font-lemonmilk-regular {
  font-family: "LEMONMILK", sans-serif;
  font-weight: 400;
}

.font-lemonmilk-medium {
  font-family: "LEMONMILK", sans-serif;
  font-weight: 500;
}

.font-lemonmilk-bold {
  font-family: "LEMONMILK", sans-serif;
  font-weight: 700;
}

/* Apply LEMONMILK to headings by default */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "LEMONMILK", sans-serif;
  font-weight: 700;
}

/* Apply LEMONMILK to buttons and navigation */
button,
.button,
nav a {
  font-family: "LEMONMILK", sans-serif;
}

/* Pagination Styles */
.page-numbers {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  margin: 0 0.25rem;
  color: #374151;
  background-color: #f9fafb;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s;
}

.page-numbers:hover {
  background-color: #0093d4;
  color: white;
  border-color: #0093d4;
}

.page-numbers.current {
  background-color: #0093d4;
  color: white;
  border-color: #0093d4;
}

.page-numbers.prev,
.page-numbers.next {
  display: inline-flex;
  align-items: center;
}

.animate-expand-line {
  animation: expandLine 0.6s ease-out both;
}

.animation-delay-200 {
  animation-delay: 0.2s;
}

.animation-delay-300 {
  animation-delay: 0.3s;
}

.animation-delay-500 {
  animation-delay: 0.5s;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes expandLine {
  from {
    width: 0;
    opacity: 0;
  }
  to {
    width: 2rem;
    opacity: 1;
  }
}

/* Sombra personalizada para mayor profundidad */
.shadow-3xl {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Estilos específicos para Swiper que necesitan override */
.hero-swiper .swiper-pagination-bullet {
  background: rgba(255, 255, 255, 0.5);
  opacity: 1;
}

.hero-swiper .swiper-pagination-bullet-active {
  background: #0093d4;
}

/* Utilidades para truncar texto */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
