/*
Theme Name: Portfolio SMR
Theme URI: https://github.com/
Author: Francisco Javier Pérez Moya
Author URI: 
Description: Portafolio profesional del Ciclo Formativo de Grado Medio en Sistemas Microinformáticos y Redes (SMR). Diseño corporativo con Bootstrap 5.
Version: 1.0
Requires at least: 5.8
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: portfolio-smr
Tags: portfolio, bootstrap, one-page, responsive
*/

/* ====================================
   PORTFOLIO SMR - ESTILOS CORPORATIVOS
   ==================================== */

@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700;900&family=Merriweather:wght@300;400;700&display=swap');

:root {
  --corp-navy:   #0d2137;
  --corp-blue:   #1a5276;
  --corp-accent: #2e86c1;
  --corp-light:  #d6eaf8;
  --corp-white:  #f9fbfd;
  --corp-gray:   #6c757d;
  --corp-dark:   #1c2833;
  --corp-gold:   #d4ac0d;
}

/* --- BASE --- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Lato', sans-serif;
  background-color: var(--corp-white);
  color: var(--corp-dark);
  padding-top: 70px;
  margin: 0;
}

h1, h2, h3, h4, h5 {
  font-family: 'Merriweather', serif;
  font-weight: 700;
}

/* --- NAVBAR --- */
.navbar-corp {
  background-color: var(--corp-navy) !important;
  border-bottom: 3px solid var(--corp-accent);
  padding: 0.6rem 1.5rem;
}

.navbar-corp .navbar-brand {
  font-family: 'Merriweather', serif;
  font-size: 1.1rem;
  color: #fff !important;
  letter-spacing: 0.05em;
}

.navbar-corp .navbar-brand span {
  color: var(--corp-gold);
}

.navbar-corp .nav-link {
  color: rgba(255,255,255,0.80) !important;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.5rem 0.9rem !important;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}

.navbar-corp .nav-link:hover,
.navbar-corp .nav-link.active {
  background-color: var(--corp-accent);
  color: #fff !important;
}

.navbar-corp .nav-link.active {
  border-bottom: 2px solid var(--corp-gold);
}

/* --- HERO --- */
.hero {
  background: linear-gradient(135deg, var(--corp-navy) 0%, var(--corp-blue) 60%, var(--corp-accent) 100%);
  color: #fff;
  padding: 80px 0 70px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -40px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,0.03);
  pointer-events: none;
}

.hero-title {
  font-size: 2.4rem;
  font-weight: 900;
  line-height: 1.2;
}

.hero-subtitle {
  font-family: 'Lato', sans-serif;
  font-weight: 300;
  font-size: 1.15rem;
  opacity: 0.88;
  margin-top: 0.5rem;
}

.hero-badge {
  display: inline-block;
  background: var(--corp-gold);
  color: var(--corp-navy);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 1rem;
}

/* --- FOTO DE PERFIL --- */
.foto-perfil {
  width: 220px;
  height: 220px;
  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
  border: 4px solid var(--corp-gold);
  box-shadow: 0 8px 30px rgba(0,0,0,0.30);
  display: block;
  margin: 0 auto;
}

.foto-perfil-small {
  width: 90px;
  height: 90px;
  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
  border: 3px solid var(--corp-accent);
  display: block;
  margin: 0 auto 12px;
}

/* --- PAGE HEADER (módulos) --- */
.page-header {
  background: linear-gradient(135deg, var(--corp-navy) 0%, var(--corp-blue) 100%);
  color: #fff;
  padding: 50px 0 40px;
  border-bottom: 4px solid var(--corp-gold);
}

.page-header .module-icon {
  font-size: 2.8rem;
  opacity: 0.9;
}

.page-header h1 { font-size: 1.9rem; margin-bottom: 0.3rem; }
.page-header p  { font-family: 'Lato', sans-serif; font-weight: 300; opacity: 0.85; font-size: 1rem; margin: 0; }

/* --- SECTION TITLES --- */
.section-title {
  font-size: 1.4rem;
  color: var(--corp-navy);
  border-left: 4px solid var(--corp-accent);
  padding-left: 14px;
  margin-bottom: 1.5rem;
  margin-top: 2.5rem;
}

/* --- CARDS --- */
.card-corp {
  border: 1px solid #dce8f5;
  border-top: 3px solid var(--corp-accent);
  border-radius: 6px;
  transition: transform 0.2s, box-shadow 0.2s;
  background: #fff;
  height: 100%;
}

.card-corp:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(13,33,55,0.12) !important;
}

.card-corp .card-title {
  color: var(--corp-navy);
  font-size: 1rem;
}

.card-corp .card-text {
  font-size: 0.88rem;
  color: var(--corp-gray);
  line-height: 1.6;
}

.card-corp .card-icon {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
  display: block;
}

/* --- MODULE LINKS (index) --- */
.module-card {
  border: 1px solid #dce8f5;
  border-radius: 8px;
  background: #fff;
  padding: 22px 18px;
  text-decoration: none;
  color: var(--corp-dark);
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.module-card:hover {
  border-color: var(--corp-accent);
  background: var(--corp-light);
  color: var(--corp-navy);
  box-shadow: 0 6px 20px rgba(13,33,55,0.10);
  transform: translateX(4px);
}

.module-card .mod-num {
  min-width: 36px;
  height: 36px;
  background: var(--corp-navy);
  color: #fff;
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.module-card .mod-title { font-weight: 700; font-size: 0.92rem; }
.module-card .mod-sub   { font-size: 0.78rem; color: var(--corp-gray); }

/* --- SKILLS PILLS --- */
.skill-pill {
  display: inline-block;
  background: var(--corp-light);
  color: var(--corp-blue);
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 20px;
  padding: 4px 12px;
  margin: 3px 3px 3px 0;
  border: 1px solid #b6d5ef;
}

/* --- HIGHLIGHTED PRACTICE CARD --- */
.card-highlight {
  border-left: 4px solid var(--corp-gold);
}

/* --- FOOTER --- */
footer,
.site-footer {
  background: var(--corp-navy);
  color: rgba(255,255,255,0.65);
  font-size: 0.82rem;
  padding: 28px 0;
  margin-top: 60px;
  border-top: 3px solid var(--corp-accent);
}

footer a,
.site-footer a {
  color: var(--corp-gold);
  text-decoration: none;
}

footer a:hover,
.site-footer a:hover {
  text-decoration: underline;
}

/* --- BREADCRUMB --- */
.breadcrumb {
  background: transparent;
  padding: 0;
  margin-bottom: 0;
  font-size: 0.82rem;
}

.breadcrumb-item a { color: var(--corp-gold); text-decoration: none; }
.breadcrumb-item.active { color: rgba(255,255,255,0.7); }
.breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.4); }

/* --- PROFILE DATA TABLE --- */
.profile-table td { padding: 8px 12px; font-size: 0.9rem; }
.profile-table td:first-child {
  font-weight: 700;
  color: var(--corp-navy);
  width: 140px;
}

/* --- BACK BUTTON --- */
.btn-back {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.5);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  border-radius: 20px;
  padding: 5px 16px;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-back:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border-color: #fff;
}

/* --- WORDPRESS ADMIN BAR OFFSET --- */
.admin-bar body { padding-top: 102px; }
.admin-bar .navbar-corp { top: 32px; }

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  .hero-title { font-size: 1.7rem; }
  body { padding-top: 62px; }
  .foto-perfil { width: 160px; height: 160px; }
}

@media (max-width: 576px) {
  .hero { padding: 50px 0 40px; }
  .page-header { padding: 30px 0 25px; }
  .page-header h1 { font-size: 1.4rem; }
}
