/*
Theme Name: Profloor Theme
Theme URI: https://example.local/profloor-theme
Author: Profloor
Author URI: https://example.local
Description: Tema profesional para Profloor con plantillas para Home, Productos, Nosotros y Segmentos
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: profloor-theme
Domain Path: /languages
Requires at least: 5.0
Requires PHP: 7.4
*/

:root {
  --color-primary: #0E3264;
  --color-secondary: #000000;
  --color-text: #1b2531;
  --color-text-light: #5c6b7d;
  --color-border: rgba(14, 50, 100, 0.12);
  --color-bg: #ffffff;
  --color-bg-light: #f6f9ff;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
  --shadow-sm: 0 18px 40px rgba(14, 50, 100, 0.08);
  --shadow-md: 0 32px 80px rgba(14, 50, 100, 0.1);
  --shadow-lg: 0 44px 90px rgba(14, 50, 100, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: linear-gradient(180deg, #ffffff 0%, #f6f9ff 100%);
  color: var(--color-text);
  line-height: 1.6;
}

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

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

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: 700;
  line-height: 1.05;
}

p {
  margin: 0;
}

/* Container */
.container {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
}

/* Button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 26px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.26s ease, box-shadow 0.26s ease;
}

.btn-primary {
  background: #0e3264;
  color: white;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.3);
  border-radius: 10px !important;
}
.btn-Cta {
  background: var(--color-primary);
  color: #ffffff;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.3);
  border-radius: 999px !important;
}

.btn-Cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 28px 56px rgba(0, 0, 0, 0.2);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 28px 56px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
  background: rgba(14, 50, 100, 0.05);
  color: var(--color-primary);
  border: 1px solid var(--color-border);
}

/* Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

/* Card */
.card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.card img {
  width: 100%;
  display: block;
}

.card-body {
  padding: 24px;
}

.card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--color-text);
}

.card p {
  color: var(--color-text-light);
}

/* ============================================================
   Efecto Sliding Text para todos los títulos
   Cada palabra se desliza hacia arriba desde abajo
   ============================================================ */
:root {
  --slide-translate-y: 1.4em;
  --slide-duration: 0.8s;
  --slide-stagger: 75ms;
  --slide-ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Contenedor de cada palabra: recorta verticalmente */
.slide-in-container {
  display: inline-block;
  position: relative;
  vertical-align: middle;
  overflow-y: hidden;
  padding: 0.1em 0;
  margin: -0.1em 0;
  white-space: nowrap;
}

/* La palabra que se anima */
.slide-in-item {
  display: inline-block;
  transition-property: transform, opacity, filter;
  transition-duration: var(--slide-duration);
  transition-timing-function: var(--slide-ease);
  will-change: transform, opacity;
  /* estado INICIAL */
  transform: translateY(var(--slide-translate-y));
  opacity: 0;
}

/* estado FINAL (cuando el heading recibe .slide-animate) */
h1.slide-animate .slide-in-item,
h2.slide-animate .slide-in-item,
h3.slide-animate .slide-in-item,
h4.slide-animate .slide-in-item,
h5.slide-animate .slide-in-item,
h6.slide-animate .slide-in-item {
  transform: none;
  opacity: 1;
}

/* Respeta usuarios con reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .slide-in-item {
    transition: none;
    transform: none;
    opacity: 1;
  }
}

