/*
Theme Name: FILES Inteligencia Digital
Theme URI: https://filesreports.com
Author: FILES
Author URI: https://filesreports.com
Description: Tema oficial de FILES Inteligencia Digital, basado en el Manual de Marca 2026.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: files-theme
Tags: business, corporate, one-page
*/

/* ============================================================
   VARIABLES & BASE
   ============================================================ */

:root {
  --bordo:    #601718;
  --rojo:     #9b252b;
  --marfil:   #fef5df;
  --blanco:   #fff9f1;
  --rosa-int: #f9c6c2;
  --rosa-cer: #fce6e4;
  --azul-pro: #143349;
  --azul-ctx: #77c8d0;
  --negro:    #1a1a1a;
  --gris-med: #4a4a4a;
  --gris-bg:  #3a3a3a;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 400;
  color: var(--negro);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter Tight', sans-serif;
  line-height: 1.15;
}

.font-playfair {
  font-family: 'Playfair Display', serif;
}

/* ============================================================
   UTILITIES
   ============================================================ */

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  font-family: 'Inter Tight', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
  border: none;
}

.btn-outline-white {
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
}
.btn-outline-white:hover {
  background: #fff;
  color: var(--azul-pro);
}

.btn-outline-dark {
  background: transparent;
  border: 2px solid var(--azul-pro);
  color: var(--azul-pro);
}
.btn-outline-dark:hover {
  background: var(--azul-pro);
  color: #fff;
}

.btn-solid-white {
  background: #fff;
  border: 2px solid #fff;
  color: var(--bordo);
}
.btn-solid-white:hover {
  background: var(--marfil);
  border-color: var(--marfil);
}

.btn-solid-bordo {
  background: var(--bordo);
  border: 2px solid var(--bordo);
  color: #fff;
}
.btn-solid-bordo:hover {
  background: var(--rojo);
  border-color: var(--rojo);
}

.btn-solid-azul {
  background: var(--azul-ctx);
  border: 2px solid var(--azul-ctx);
  color: var(--azul-pro);
  font-weight: 700;
}
.btn-solid-azul:hover {
  background: var(--azul-pro);
  border-color: var(--azul-pro);
  color: #fff;
}

/* Color bar accent — 3 stripes like in the brand */
.color-bar {
  display: flex;
  height: 4px;
  width: 200px;
}
.color-bar span {
  flex: 1;
}
.color-bar .c1 { background: var(--azul-ctx); flex: 0.5; }
.color-bar .c2 { background: var(--rojo);     flex: 0.7; }
.color-bar .c3 { background: var(--azul-pro); flex: 2; }

/* ============================================================
   HEADER / NAVIGATION
   ============================================================ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--blanco);
  border-bottom: 2px solid var(--rosa-cer);
  transition: box-shadow 0.3s;
}

.site-header.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

/* Logo */
.site-logo a {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 40px;
  width: auto;
  max-width: 160px;
  display: block;
  object-fit: contain;
}

/* Main nav */
.main-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.main-nav a {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bordo);
  transition: color 0.2s;
}

.main-nav a:hover {
  color: var(--rojo);
}

.nav-btn-ingresar {
  background: var(--bordo);
  color: #fff !important;
  padding: 10px 22px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  transition: background 0.25s !important;
}
.nav-btn-ingresar:hover {
  background: var(--rojo) !important;
  color: #fff !important;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--bordo);
  transition: transform 0.3s, opacity 0.3s;
}

/* Mobile nav */
@media (max-width: 900px) {
  .nav-toggle { display: flex; }

  .main-nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--blanco);
    flex-direction: column;
    gap: 0;
    padding: 16px 0 24px;
    border-top: 1px solid var(--rosa-cer);
    transform: translateY(-110%);
    transition: transform 0.35s ease;
    z-index: 999;
  }
  .main-nav.is-open {
    transform: translateY(0);
  }
  .main-nav a {
    padding: 14px 32px;
    width: 100%;
    display: block;
  }
  .nav-btn-ingresar {
    margin: 8px 32px 0;
    width: calc(100% - 64px);
    text-align: center;
  }
}

/* ============================================================
   HERO SECTION — paneles tipo carpeta
   ============================================================ */

.hero {
  position: relative;
  margin-top: 72px;
  min-height: 680px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-color: var(--azul-pro);
  background-image: url('assets/fondo_001.jpg');
  background-size: cover;
  background-position: center;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(20,51,73,0.74) 0%, rgba(20,51,73,0.56) 45%, rgba(20,51,73,0.34) 100%);
}

/* Wrapper de paneles */
.hero-folder-wrap {
  position: relative;
  z-index: 2;
  padding-top: 82px;
  padding-bottom: 82px;
}

.hero-card {
  position: relative;
  max-width: 760px;
  display: grid;
  grid-template-columns: 62% 38%;
  overflow: hidden;
  box-shadow: 0 18px 56px rgba(9, 24, 35, 0.3);
}

.hero-card-content {
  position: relative;
  background: #f3f1ee;
  padding: 36px 36px 44px;
}

.hero-card-content::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-left: 34px solid transparent;
  border-top: 34px solid var(--azul-ctx);
}

.hero-brand {
  margin-bottom: 42px;
}

.hero-brand-logo {
  width: 124px;
  max-width: 100%;
  height: auto;
}

.hero-eyebrow-text {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  color: #5f7281;
  margin-top: 20px;
}

.hero-card-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(42px, 5.2vw, 56px);
  font-weight: 500;
  line-height: 0.98;
  color: #2e4a5e;
  margin-bottom: 18px;
}

.hero-desc {
  font-family: 'Inter Tight', sans-serif;
  font-size: clamp(18px, 2vw, 34px);
  font-weight: 400;
  line-height: 1.1;
  color: #2e4a5e;
  max-width: 350px;
}

.hero-card-side {
  position: relative;
  background: var(--azul-ctx);
  clip-path: polygon(0 0, 86% 0, 100% 10%, 100% 100%, 0 100%);
  min-height: 100%;
}

.hero-client {
  position: absolute;
  left: 12px;
  bottom: 78px;
  font-family: 'Inter Tight', sans-serif;
  font-size: 33px;
  font-weight: 300;
  color: #f2f7fa;
  letter-spacing: -0.02em;
}

.hero-client span {
  font-size: 20px;
  font-weight: 300;
  margin-left: 2px;
}

.hero-colorbar {
  position: absolute;
  left: 12px;
  right: 24px;
  bottom: 56px;
  width: auto;
  height: 4px;
}

.hero-colorbar .c1 {
  flex: 0.25;
  background: #d9222a;
}

.hero-colorbar .c2 {
  flex: 0.38;
  background: #21445d;
}

.hero-colorbar .c3 {
  flex: 2;
  background: #f8c6c7;
}

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

  .hero-folder-wrap {
    padding-top: 34px;
    padding-bottom: 34px;
  }

  .hero-card {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  .hero-card-content {
    padding: 26px 24px 30px;
  }

  .hero-brand {
    margin-bottom: 28px;
  }

  .hero-card-content h1 {
    font-size: clamp(34px, 8vw, 48px);
  }

  .hero-desc {
    font-size: clamp(16px, 5vw, 24px);
    max-width: 100%;
  }

  .hero-card-side {
    min-height: 140px;
    clip-path: none;
  }

  .hero-client {
    font-size: 26px;
    bottom: 50px;
  }

  .hero-client span {
    font-size: 16px;
  }

  .hero-colorbar {
    bottom: 34px;
  }
}

/* ============================================================
   INTRO SECTION
   ============================================================ */

.intro-section {
  background: #fff;
  padding: 90px 0;
  text-align: center;
}

.intro-section p {
  font-family: 'Inter Tight', sans-serif;
  font-size: clamp(18px, 2.2vw, 26px);
  font-weight: 400;
  color: var(--bordo);
  line-height: 1.6;
  max-width: 820px;
  margin: 0 auto 40px;
}

/* ============================================================
   SOLUTIONS SECTION
   ============================================================ */

.solutions-section {
  background: var(--marfil);
  padding: 90px 0;
}

.section-header {
  margin-bottom: 56px;
}

.section-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rojo);
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 700;
  color: var(--bordo);
  margin-bottom: 16px;
}

.section-subtitle {
  font-family: 'Playfair Display', serif;
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 400;
  color: var(--gris-med);
  max-width: 560px;
}

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.solution-card {
  background: #fff;
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

/* Diagonal cut top-right — brand signature */
.solution-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 32px 32px 0;
  border-color: transparent var(--marfil) transparent transparent;
}

.solution-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(96,23,24,0.12);
}

.card-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  color: var(--rojo);
}

.card-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--bordo);
  margin-bottom: 12px;
}

.card-text {
  font-size: 15px;
  font-weight: 300;
  color: var(--gris-med);
  line-height: 1.65;
}

/* ============================================================
   NOSOTROS BANNER
   ============================================================ */

.nosotros-banner {
  background: var(--gris-bg);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

/* Subtle network dots pattern */
.nosotros-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 40px 40px;
}

.nosotros-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.nosotros-banner p {
  font-size: clamp(20px, 3vw, 32px);
  font-weight: 400;
  color: #fff;
  line-height: 1.45;
  margin-bottom: 36px;
}

/* ============================================================
   VALORES SECTION
   ============================================================ */

.valores-section {
  background: var(--blanco);
  padding: 90px 0;
}

.valores-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px 80px;
  align-items: start;
}

@media (max-width: 768px) {
  .valores-grid { grid-template-columns: 1fr; gap: 40px; }
}

.valor-block h3 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 400;
  color: var(--bordo);
  margin-bottom: 20px;
}

.valor-block p {
  font-size: 15px;
  font-weight: 300;
  color: var(--gris-med);
  line-height: 1.75;
}

.valores-quote {
  grid-column: 1 / -1;
  padding-top: 24px;
  border-top: 1px solid var(--rosa-cer);
}

@media (max-width: 768px) {
  .valores-quote { grid-column: 1; }
}

.valores-quote-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rojo);
  margin-bottom: 16px;
  display: block;
}

.valores-quote blockquote {
  font-family: 'Playfair Display', serif;
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 400;
  color: var(--azul-pro);
  font-style: normal;
  line-height: 1.4;
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */

.contact-section {
  background: var(--bordo);
  padding: 90px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
}

/* Form side */
.contact-form-wrap h2 {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  color: #fff;
  margin-bottom: 36px;
}

.contact-form .form-group {
  margin-bottom: 24px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.45);
  padding: 10px 0;
  font-family: 'Inter Tight', sans-serif;
  font-size: 15px;
  font-weight: 300;
  color: #fff;
  outline: none;
  transition: border-color 0.2s;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255,255,255,0.55);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-bottom-color: var(--rosa-int);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

/* Info side */
.contact-info-wrap h2 {
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.contact-info-wrap .contact-tagline {
  font-size: 15px;
  font-weight: 300;
  color: rgba(255,255,255,0.75);
  margin-bottom: 36px;
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.contact-info-item svg {
  width: 22px;
  height: 22px;
  color: var(--rosa-int);
  flex-shrink: 0;
}

.contact-info-item a,
.contact-info-item span {
  font-size: 14px;
  font-weight: 400;
  color: rgba(255,255,255,0.85);
  transition: color 0.2s;
}
.contact-info-item a:hover {
  color: var(--rosa-int);
}

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  background: var(--azul-pro);
  padding: 48px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-logo .logo-wordmark {
  color: #fff;
}

.footer-copy {
  font-size: 13px;
  font-weight: 300;
  color: rgba(255,255,255,0.55);
  text-align: center;
}

.footer-socials {
  display: flex;
  gap: 16px;
}

.footer-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.7);
  transition: border-color 0.2s, color 0.2s;
}

.footer-socials a:hover {
  border-color: var(--azul-ctx);
  color: var(--azul-ctx);
}

@media (max-width: 600px) {
  .footer-inner {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
}

/* ============================================================
   RESPONSIVE TWEAKS
   ============================================================ */

@media (max-width: 768px) {
  .hero-content { padding: 60px 0; }
  .intro-section { padding: 60px 0; }
  .solutions-section { padding: 60px 0; }
  .nosotros-banner { padding: 60px 0; }
  .valores-section { padding: 60px 0; }
  .contact-section { padding: 60px 0; }
}

/* ============================================================
   WP CORE CLASSES
   ============================================================ */

.alignleft  { float: left; margin-right: 1.5em; }
.alignright { float: right; margin-left: 1.5em; }
.aligncenter { display: block; margin: 0 auto; }
.wp-block-image figure { margin: 0; }
