/*
Theme Name: Digilabeu Theme
Theme URI: https://www.digilabeu.com/
Author: Digilabeu
Author URI: https://www.digilabeu.com/
Description: Tema premium de WordPress personalizado para la landing page de Digital Label EU, optimizado para conversión y cumplimiento de la normativa UE 2021/2117.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: digilabeu-theme
*/

/* --- Variables y Paleta de Colores --- */
:root {
  --primary-color: #0A84FF; /* Azul tecnológico de la marca */
  --primary-hover: #0066CC;
  --secondary-color: #0d2c54; /* Navy oscuro y elegante */
  --accent-color: #00c6ff; /* Azul cielo brillante */
  --bg-dark: #ffffff; /* Fondo claro premium */
  --bg-light: #ffffff;
  --bg-section-dark: #f5f8fc; /* Gris/azul claro */
  --bg-section-light: #ffffff;
  --text-dark: #0d2c54; /* Texto principal oscuro y legible */
  --text-light: #0d2c54;
  --text-muted: #607289; /* Gris legible */
  --border-radius: 16px;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* --- Estilos Generales --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-dark);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-smooth);
}

ul {
  list-style: none;
}

/* --- Contenedor --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Botones Premium --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(10, 132, 255, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(10, 132, 255, 0.6);
}

.btn-secondary {
  background: transparent;
  color: var(--secondary-color);
  border: 2px solid rgba(13, 44, 84, 0.2);
}

.btn-secondary:hover {
  background: rgba(13, 44, 84, 0.05);
  border-color: var(--secondary-color);
  transform: translateY(-2px);
}

/* --- Header & Navegación --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(13, 44, 84, 0.08);
  padding: 15px 0;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link img {
  height: 45px;
  width: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.nav-link:hover, .nav-link.active {
  color: #ffffff;
}

/* Menú Móvil */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.mobile-menu-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--secondary-color);
  margin: 6px 0;
  transition: var(--transition-smooth);
}

/* --- Banner Azul de Anuncio --- */
.announcement-banner {
  background: linear-gradient(90deg, #00A6E6, #0A84FF);
  color: #ffffff;
  text-align: center;
  padding: 10px 0;
  font-size: 0.9rem;
  font-weight: 500;
  margin-top: 76px; /* Altura del header */
}

/* --- Hero Section --- */
.hero-section {
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
}

.hero-content h1 {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 24px;
  background: linear-gradient(135deg, var(--secondary-color) 60%, var(--primary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content p {
  color: var(--text-muted);
  font-size: 1.15rem;
  margin-bottom: 36px;
  max-width: 520px;
}

.hero-cta {
  display: flex;
  gap: 16px;
}

.hero-image {
  position: relative;
}

.hero-image img {
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  width: 100%;
}

/* --- Section Title --- */
.section-title-wrapper {
  text-align: center;
  margin-bottom: 50px;
}

.section-tag {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--primary-color);
  margin-bottom: 12px;
  display: inline-block;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--secondary-color);
}

/* --- Sección Gestión Integral --- */
.features-simple-section {
  padding: 100px 0;
  background-color: var(--bg-section-dark);
}

.features-simple-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: center;
}

.features-simple-intro h2 {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.features-simple-intro p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.features-simple-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.simple-card {
  background: #ffffff;
  border: 1px solid #e1e8f0;
  border-radius: var(--border-radius);
  padding: 32px 24px;
  box-shadow: 0 10px 30px rgba(13, 44, 84, 0.04);
  transition: var(--transition-smooth);
}

.simple-card:hover {
  transform: translateY(-5px);
  background: #ffffff;
  border-color: var(--primary-color);
  box-shadow: 0 15px 35px rgba(10, 132, 255, 0.1);
}

.card-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(10, 132, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.simple-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.simple-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* --- Sección ¿Por qué elegirnos? --- */
.why-us-section {
  padding: 100px 0;
}

.why-us-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.why-us-content h2 {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 32px;
}

.why-us-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.why-us-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.why-us-item-check {
  color: #2ED573;
  font-size: 1.2rem;
  margin-top: 2px;
}

.why-us-item-text {
  font-size: 1.05rem;
  color: var(--text-muted);
}

.why-us-image img {
  border-radius: 24px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
  width: 100%;
}

/* --- Sección Funcionalidades (Carrusel) --- */
.carousel-section {
  padding: 100px 0;
  background-color: var(--bg-section-dark);
  overflow: hidden;
}

.carousel-container {
  position: relative;
  width: 100%;
  margin-top: 40px;
}

.carousel-track-wrapper {
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE 10+ */
  padding: 20px 0;
}

.carousel-track-wrapper::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.carousel-track {
  display: flex;
  gap: 24px;
  width: max-content;
}

.carousel-card {
  width: 320px;
  background: #ffffff;
  border: 1px solid #e1e8f0;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(13, 44, 84, 0.04);
  transition: var(--transition-smooth);
}

.carousel-card:hover {
  transform: translateY(-8px);
  background: #ffffff;
  border-color: var(--primary-color);
  box-shadow: 0 15px 35px rgba(10, 132, 255, 0.1);
}

.carousel-card-img-wrapper {
  position: relative;
  height: 200px;
  background-color: rgba(255, 255, 255, 0.01);
  overflow: hidden;
}

.carousel-card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}

.carousel-card-content {
  padding: 28px 24px;
}

.carousel-card-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary-color);
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
}

.carousel-card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--secondary-color);
}

.carousel-card-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.carousel-nav-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 40px;
}

.carousel-nav-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.carousel-nav-btn:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
}

/* --- Sección Preguntas Frecuentes (FAQ Accordion) --- */
.faq-section {
  padding: 100px 0;
}

.faq-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  border: 1px solid #e1e8f0;
  border-radius: var(--border-radius);
  background: #ffffff;
  box-shadow: 0 4px 15px rgba(13, 44, 84, 0.02);
  overflow: hidden;
  transition: var(--transition-smooth);
}

.faq-item.active {
  border-color: var(--primary-color);
  background: #ffffff;
  box-shadow: 0 10px 25px rgba(10, 132, 255, 0.05);
}

.faq-header {
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 600;
  user-select: none;
}

.faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f5f8fc;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
  color: var(--secondary-color);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  background: var(--primary-color);
}

.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-content {
  padding: 0 24px 24px 24px;
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

/* --- Footer --- */
.site-footer {
  background-color: #050a14;
  padding: 60px 0 30px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 40px;
}

.footer-logo img {
  height: 40px;
  width: auto;
  margin-bottom: 20px;
}

.footer-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 320px;
}

.footer-links-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: #ffffff;
}

.footer-links-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer-link:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-copyright {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-legal-links {
  display: flex;
  gap: 24px;
}

.footer-legal-link {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-legal-link:hover {
  color: #ffffff;
}

/* --- Responsive Media Queries --- */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  
  .hero-content p {
    margin: 0 auto 36px auto;
  }
  
  .hero-cta {
    justify-content: center;
  }
  
  .features-simple-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .why-us-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .why-us-image {
    order: -1;
  }
  
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .site-header {
    padding: 10px 0;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: calc(100vh - 70px);
    background: #ffffff;
    flex-direction: column;
    padding: 40px 24px;
    gap: 24px;
    transform: translateX(100%);
    transition: var(--transition-smooth);
    z-index: 999;
  }
  
  .nav-menu.open {
    transform: translateX(0);
  }
  
  .hero-content h1 {
    font-size: 2.4rem;
  }
  
  .features-simple-cards {
    grid-template-columns: 1fr;
  }
  
  .footer-top {
    grid-template-columns: 1fr;
  }
}
