/*
Theme Name: Ker Cyber Premium
Theme URI: https://ker.cat
Author: Administrador Sistemas & Web
Description: Tema sobrio, profesional y elegante con toque orgánico "Back to Human".
Version: 1.3
Text Domain: ker-cyber
*/

:root {
  /* Elegance Dark Palette */
  --bg-color: #0c0a09; /* Ligeramente más cálido oscuro */
  --bg-color-alt: #131110;
  --text-main: #f5f5f4;
  --text-muted: #a8a29e;
  
  /* Silver & Monochromatic Accents */
  --accent-light: #ffffff;
  --accent-border: #292524;

  /* Organic Warm Accents (Back to Human Trends) */
  --organic-warm: rgba(212, 163, 115, 0.15); /* Sand / Vainilla */
  --organic-glow: rgba(224, 122, 95, 0.1);   /* Terracotta */

  /* UI & Glass */
  --glass-bg: rgba(20, 18, 17, 0.6);
  --glass-border: rgba(255, 255, 255, 0.05);
  --border-radius-card: 20px; /* Bordes redondeados orgánicos */
  --border-radius-btn: 30px;  /* Botones estilo píldora */
  
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

body {
  background-color: var(--bg-color);
  background-image: 
    radial-gradient(circle at top right, var(--organic-glow), transparent 45%),
    radial-gradient(circle at bottom left, var(--organic-warm), transparent 40%);
  background-attachment: fixed;
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.7;
  min-height: 100vh;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: url('patron-bg.webp');
  background-size: cover;
  background-position: center;
  opacity: 0.04; /* Leit-motif casi invisible */
  pointer-events: none;
  z-index: -1;
}

.container {
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section { padding: 6rem 0; border-bottom: 1px solid var(--accent-border); }
.section:last-child { border-bottom: none; }

.hero-section {
  height: 85vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  border-bottom: 1px solid var(--accent-border);
}

h1 {
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--accent-light) 0%, #d4a373 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--accent-light);
}

h2 {
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 2.5rem;
  color: var(--accent-light);
}

p {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 650px;
  margin-bottom: 2.5rem;
  font-weight: 300;
}

/* Minimalism Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--border-radius-btn);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn-primary {
  background-color: var(--text-main);
  color: var(--bg-color);
  border: 1px solid var(--text-main);
}

.btn-primary:hover {
  background-color: transparent;
  color: var(--text-main);
  box-shadow: 0 0 15px rgba(212, 163, 115, 0.3);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-muted);
  border: 1px solid var(--accent-border);
}

.btn-secondary:hover {
  border-color: var(--text-main);
  color: var(--text-main);
}

/* Glass Cards */
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-card);
  padding: 3rem;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(255,255,255,0.02) 100%);
  z-index: 0;
  pointer-events: none;
}

.glass-card > * {
  position: relative;
  z-index: 1;
}

.glass-card:hover {
  border-color: rgba(212, 163, 115, 0.4);
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 25px rgba(212, 163, 115, 0.1);
}

.glass-card h3 {
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: 1rem;
  color: var(--accent-light);
}

/* Feature/Highlighted Card */
.highlight-card {
  border-color: rgba(234, 179, 8, 0.4); /* yellow-500 muteado */
  padding: 0;
  display: flex;
  flex-direction: column;
}

.highlight-card:hover {
  border-color: rgba(234, 179, 8, 0.8);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 25px rgba(234, 179, 8, 0.15);
}

.highlight-card-bg {
  flex: 1;
  min-height: 200px;
  background-size: cover;
  background-position: center;
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  transition: transform 0.5s ease;
  z-index: 0;
}

.highlight-card:hover .highlight-card-bg {
  transform: scale(1.05); /* Ligerísimo zoom al hacer hover */
}

.highlight-card-content {
  position: relative;
  z-index: 1;
  padding: 2rem;
  margin-top: 120px;
  background: linear-gradient(to top, rgba(12,10,9,1) 10%, rgba(12,10,9,0.7) 60%, transparent);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.highlight-card-link {
  color: #eab308;
  font-weight: 500;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding-top: 1rem;
  display: block;
  margin-top: auto;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.brand-logo {
  height: 120px;
  width: auto;
  object-fit: contain;
  margin-left: -1rem;
  transition: transform 0.3s ease;
}

@media (max-width: 768px) {
  .brand-logo {
    height: 70px;
    margin-left: -0.5rem;
  }
}
