/* ============================================================
   FUNDANET CUSTOM CSS - Power Pages
   Basado en el estilo de fundanetcloud.com
   Compatible con Bootstrap 3.3.x (Power Pages)
   Fuentes: Karla (300, 400) + Rubik (500)
   ============================================================ */

/* --- 1. IMPORTAR FUENTES GOOGLE --- */
@import url('https://fonts.googleapis.com/css2?family=Karla:wght@300;400&family=Rubik:wght@500&display=swap');

/* --- 2. VARIABLES DE COLOR Y TIPOGRAFÍA --- */
:root {
  --color-primary:      #0066CC;   /* Azul corporativo Fundanet */
  --color-primary-dark: #004FA3;   /* Azul oscuro (hover) */
  --color-accent:       #1E90FF;   /* Azul acento (cargos, subtítulos) */
  --color-text:         #2D2D2D;   /* Texto principal */
  --color-text-light:   #666666;   /* Texto secundario / testimonios */
  --color-bg:           #FFFFFF;   /* Fondo general */
  --color-bg-card:      #F5F7FA;   /* Fondo tarjetas */
  --color-border:       #E8ECF0;   /* Bordes suaves */
  --color-white:        #FFFFFF;

  --font-body:    'Karla', sans-serif;
  --font-heading: 'Rubik', sans-serif;

  --radius-btn:   30px;
  --radius-card:  16px;
  --shadow-card:  0 4px 20px rgba(0, 102, 204, 0.08);
}

/* --- 3. BASE Y TIPOGRAFÍA GLOBAL --- */
body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--color-text);
  background-color: var(--color-bg);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 500;
  color: var(--color-text);
  line-height: 1.3;
  margin-bottom: 16px;
}

h1 { font-size: 2.4rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }

p {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--color-text-light);
  margin-bottom: 16px;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-primary-dark);
  text-decoration: none;
}

/* --- 4. NAVBAR / HEADER --- */
.navbar,
.navbar-default {
  background-color: var(--color-white) !important;
  border: none;
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  min-height: 70px;
}

.navbar-default .navbar-brand {
  padding: 15px 0;
  height: 70px;
}

.navbar-default .navbar-nav > li > a {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 15px;
  color: var(--color-text) !important;
  padding: 24px 18px;
  transition: color 0.2s ease;
}

.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > li.active > a {
  color: var(--color-primary) !important;
  background-color: transparent !important;
}

/* --- 5. BOTÓN CTA PRINCIPAL (estilo "Contáctanos") --- */
.btn-primary,
.button-primary,
a.btn-primary {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 15px;
  background-color: var(--color-primary) !important;
  border: none !important;
  border-radius: var(--radius-btn) !important;
  color: var(--color-white) !important;
  padding: 12px 28px !important;
  letter-spacing: 0.3px;
  transition: background-color 0.25s ease, transform 0.15s ease, box-shadow 0.25s ease;
  box-shadow: 0 4px 14px rgba(0, 102, 204, 0.3);
}

.btn-primary:hover,
.button-primary:hover,
a.btn-primary:hover {
  background-color: var(--color-primary-dark) !important;
  box-shadow: 0 6px 20px rgba(0, 102, 204, 0.4);
  transform: translateY(-1px);
}

.btn-default {
  font-family: var(--font-body);
  border-radius: var(--radius-btn) !important;
  border: 2px solid var(--color-primary) !important;
  color: var(--color-primary) !important;
  background: transparent !important;
  padding: 10px 26px !important;
  transition: all 0.25s ease;
}

.btn-default:hover {
  background-color: var(--color-primary) !important;
  color: var(--color-white) !important;
}

/* --- 6. SECCIÓN HERO / BANNER PRINCIPAL --- */
.hero-section,
.banner-section,
section.hero {
  background-color: var(--color-bg);
  padding: 100px 0 80px;
  text-align: left;
}

.hero-section h1 {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 2.8rem;
  color: var(--color-text);
  line-height: 1.25;
  margin-bottom: 24px;
}

.hero-section p {
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--color-text-light);
  max-width: 560px;
  margin-bottom: 36px;
}

/* --- 7. TARJETAS (Cards) --- */
.card,
.panel,
.webpagecomponent > div,
.content-card {
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card) !important;
  box-shadow: var(--shadow-card);
  padding: 32px;
  margin-bottom: 24px;
  transition: box-shadow 0.25s ease, transform 0.2s ease;
}

.card:hover,
.content-card:hover {
  box-shadow: 0 8px 32px rgba(0, 102, 204, 0.14);
  transform: translateY(-3px);
}

.panel {
  border: none !important;
}

/* --- 8. TARJETAS DE TESTIMONIO --- */
.testimonial-card {
  background-color: var(--color-bg-card);
  border-radius: var(--radius-card);
  padding: 36px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-card);
}

.testimonial-card img {
  border-radius: 50%;
  width: 80px;
  height: 80px;
  object-fit: cover;
  margin-bottom: 16px;
}

.testimonial-card .name {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1rem;
  color: var(--color-text);
}

.testimonial-card .role {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 16px;
}

.testimonial-card .quote {
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 300;
  color: var(--color-text-light);
  font-size: 0.95rem;
  line-height: 1.75;
}

/* --- 9. SUBTÍTULOS DE SECCIÓN ESTILO FUNDANET --- */
.section-subtitle,
.eyebrow-text {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 2rem;
  color: var(--color-text);
  margin-bottom: 16px;
}

.section-description {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1rem;
  color: var(--color-text-light);
  max-width: 620px;
  margin-bottom: 48px;
}

/* --- 10. SECCIONES CON FONDO SUAVE --- */
section.bg-light,
.section-light {
  background-color: var(--color-bg-card);
  padding: 80px 0;
}

section,
.section {
  padding: 80px 0;
}

/* --- 11. IMÁGENES CIRCULARES / REDONDEADAS --- */
.img-circle-custom {
  border-radius: 50%;
  width: 100px;
  height: 100px;
  object-fit: cover;
}

.img-rounded-custom {
  border-radius: 16px;
  width: 100%;
  object-fit: cover;
}

/* --- 12. FORMULARIOS --- */
.form-control {
  border: 1.5px solid var(--color-border) !important;
  border-radius: 8px !important;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--color-text);
  padding: 10px 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
  border-color: var(--color-primary) !important;
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.12) !important;
  outline: none;
}

label {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  color: var(--color-text);
  margin-bottom: 6px;
}

/* --- 13. FOOTER --- */
footer,
.footer {
  background-color: #1A1A2E;
  color: #B0B8C4;
  padding: 60px 0 32px;
  font-family: var(--font-body);
  font-size: 14px;
}

footer h4, footer h5,
.footer h4, .footer h5 {
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1rem;
  margin-bottom: 20px;
}

footer a,
.footer a {
  color: #B0B8C4;
  transition: color 0.2s ease;
}

footer a:hover,
.footer a:hover {
  color: var(--color-white);
}

footer hr,
.footer hr {
  border-color: rgba(255,255,255,0.1);
  margin: 40px 0 24px;
}

.footer-bottom {
  font-size: 13px;
  color: #7A8394;
}

/* --- 14. ICONOS LINKEDIN (redes sociales) --- */
.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: var(--color-primary);
  border-radius: 50%;
  color: var(--color-white);
  font-size: 14px;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.social-icon:hover {
  background-color: var(--color-primary-dark);
  transform: scale(1.1);
  color: var(--color-white);
}

/* --- 15. BREADCRUMBS --- */
.breadcrumb {
  background: transparent;
  font-family: var(--font-body);
  font-size: 13px;
  padding: 8px 0;
}

.breadcrumb > li + li::before {
  color: var(--color-text-light);
}

/* --- 16. TABLA --- */
.table {
  font-family: var(--font-body);
  font-size: 14px;
}

.table > thead > tr > th {
  background-color: var(--color-primary);
  color: var(--color-white);
  font-weight: 400;
  border: none;
  padding: 14px 16px;
}

.table > tbody > tr > td {
  border-top: 1px solid var(--color-border);
  padding: 12px 16px;
  color: var(--color-text);
}

.table-striped > tbody > tr:nth-of-type(odd) {
  background-color: var(--color-bg-card);
}

/* --- 17. ALERTAS --- */
.alert {
  border-radius: 10px;
  border: none;
  font-family: var(--font-body);
  font-size: 14px;
}

.alert-info {
  background-color: rgba(0, 102, 204, 0.08);
  color: var(--color-primary-dark);
}

/* --- 18. BADGES / TAGS --- */
.badge,
.label {
  font-family: var(--font-body);
  font-weight: 400;
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 12px;
}

.label-primary,
.badge-primary {
  background-color: var(--color-primary);
}

/* --- 19. PAGINACIÓN --- */
.pagination > li > a {
  font-family: var(--font-body);
  color: var(--color-primary);
  border-radius: 6px !important;
  margin: 0 2px;
  border: 1px solid var(--color-border);
}

.pagination > li.active > a {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}

/* --- 20. UTILIDADES EXTRA --- */
.text-primary-fundanet { color: var(--color-primary) !important; }
.text-accent-fundanet  { color: var(--color-accent) !important; }
.text-light-fundanet   { color: var(--color-text-light) !important; }
.bg-primary-fundanet   { background-color: var(--color-primary) !important; }
.bg-card-fundanet      { background-color: var(--color-bg-card) !important; }

.rounded-card { border-radius: var(--radius-card) !important; }
.rounded-btn  { border-radius: var(--radius-btn) !important; }

/* --- 21. RESPONSIVE MÓVIL --- */
@media (max-width: 768px) {
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.5rem; }
  .hero-section { padding: 60px 0 48px; }
  section, .section { padding: 48px 0; }
  .card, .content-card { padding: 20px; }
}

/* --- 22. LOGO A LA IZQUIERDA --- */
.navbar-inverse .navbar-header,
.navbar .navbar-header {
  float: left !important;
  margin-left: 20px !important;
  width: auto !important;
}

.navbar-inverse .container,
.navbar .container {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  max-width: 100% !important;
  padding-left: 0 !important;
}

.navbar-inverse .navbar-collapse,
.navbar .navbar-collapse {
  float: right !important;
  width: auto !important;
  flex: 1 !important;
  display: flex !important;
  justify-content: flex-end !important;
}

/* --- 23. ALTURA TARJETAS HOME --- */
.helplayout {
  min-height: 500px !important;
}
