:root {
  --default-font: "Roboto", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --heading-font: "Raleway", sans-serif;
  --nav-font: "Poppins", sans-serif;
  --background-color: #f8f9fa;
  --default-color: #444444;
  --heading-color: #111111;
  --accent-color: #ec5e83;
  --surface-color: #ffffff;
  --contrast-color: #ffffff;
  --nav-color: #212529;
  --nav-hover-color: #ec5e83;
  --nav-mobile-background-color: #ffffff;
  --nav-dropdown-background-color: #ffffff;
  --nav-dropdown-color: #212529;
  --nav-dropdown-hover-color: #ec5e83;
}

.light-background {
  --background-color: #f9f9f9;
  --surface-color: #ffffff;
}

.dark-background {
  --background-color: #1b1b1b;
  --default-color: #ffffff;
  --heading-color: #ffffff;
  --surface-color: #353535;
  --contrast-color: #ffffff;
}

::selection {
  background: var(--accent-color);
  color: var(--contrast-color);
}

:root {
  scroll-behavior: smooth;
}

body {
  color: var(--default-color);
  background-color: var(--background-color);
  font-family: var(--default-font);
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: 0.3s;
}

a:hover {
  color: color-mix(in srgb, var(--accent-color), transparent 25%);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--heading-color);
  font-family: var(--heading-font);
}

.header {
  color: var(--default-color);
  background-color: var(--surface-color);
  padding: 15px 0;
  transition: all 0.5s;
  z-index: 997;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header .logo img {
  max-height: 50px;
  margin-right: 10px;
}

.header .btn-getstarted {
  color: var(--contrast-color);
  background: var(--accent-color);
  font-size: 14px;
  padding: 8px 25px;
  margin: 0 0 0 30px;
  border-radius: 50px;
  transition: 0.3s;
}

.header .btn-getstarted:hover {
  background: color-mix(in srgb, var(--accent-color), transparent 15%);
}

/* Bootstrap Navbar customization */
.navbar {
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.navbar .nav-link {
  color: var(--nav-color);
  font-family: var(--nav-font);
  font-weight: 500;
  padding: 10px 15px;
  transition: 0.3s;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: var(--accent-color);
}

.navbar .dropdown-menu {
  border: none;
  box-shadow: 0 5px 30px rgba(0,0,0,0.1);
  border-radius: 10px;
}

.navbar .dropdown-item:hover {
  background-color: rgba(236, 94, 131, 0.1);
  color: var(--accent-color);
}

.navbar-toggler:focus {
  box-shadow: none;
}

.hero {
  width: 100%;
  min-height: calc(100vh - 80px);
  position: relative;
  padding: 80px 0;
  display: flex;
  align-items: center;
  color: #fff;
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero:before {
  content: "";
  background: linear-gradient(135deg, rgba(0,0,0,0.6), rgba(236,94,131,0.3));
  position: absolute;
  inset: 0;
  z-index: 2;
}

.hero .container {
  position: relative;
  z-index: 3;
}

.hero h2 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 20px;
}

.hero p {
  font-size: 20px;
  opacity: 0.9;
}

.hero .btn-get-started {
  background: var(--accent-color);
  color: #fff;
  padding: 12px 35px;
  border-radius: 50px;
  font-weight: 500;
  transition: 0.3s;
}

.hero .btn-get-started:hover {
  background: #d4476b;
  transform: translateY(-3px);
}

.hero .btn-watch-video {
  color: #fff;
  margin-left: 25px;
  font-weight: 500;
}

.hero .btn-watch-video i {
  font-size: 32px;
  margin-right: 8px;
}

@media (max-width: 768px) {
  .hero h2 {
    font-size: 32px;
  }
  .hero p {
    font-size: 16px;
  }
}

.stats {
  padding: 60px 0;
  background: linear-gradient(135deg, var(--accent-color), #c44569);
}

.stats .stats-item {
  text-align: center;
  color: #fff;
}

.stats .stats-item span {
  font-size: 48px;
  font-weight: 700;
}

.stats .stats-item p {
  margin: 0;
  font-size: 16px;
  opacity: 0.9;
}

.stats i {
  font-size: 40px;
  color: #fff;
  opacity: 0.8;
  margin-bottom: 15px;
}

.section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  padding-bottom: 50px;
}

.section-title h2 {
  font-size: 36px;
  font-weight: 700;
  position: relative;
  display: inline-block;
  padding-bottom: 15px;
}

.section-title h2:after {
  content: "";
  position: absolute;
  width: 60px;
  height: 3px;
  background: var(--accent-color);
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.section-title p {
  color: #666;
  font-size: 18px;
}

.about.section-bg {
  background: linear-gradient(135deg, #2c3e50, #1a252f);
  padding: 100px 0;
}

.about .content h3 {
  font-size: 32px;
  font-weight: 700;
  color: #fff;
}

.about .content p {
  color: rgba(255,255,255,0.8);
  font-size: 16px;
  line-height: 1.8;
}

.about .about-btn {
  display: inline-flex;
  align-items: center;
  background: var(--accent-color);
  color: #fff;
  padding: 12px 25px;
  border-radius: 50px;
  transition: 0.3s;
}

.about .about-btn:hover {
  background: #d4476b;
}

.about .icon-box {
  background: rgba(255,255,255,0.05);
  padding: 25px;
  border-radius: 15px;
  transition: 0.3s;
}

.about .icon-box:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-5px);
}

.about .icon-box i {
  font-size: 36px;
  color: var(--accent-color);
  margin-bottom: 15px;
}

.about .icon-box h4 a {
  color: #fff;
  font-size: 18px;
  font-weight: 600;
}

.about .icon-box p {
  color: rgba(255,255,255,0.7);
  margin: 0;
}

.tabs .nav-tabs {
  border: none;
}

.tabs .nav-link {
  background: #f0f0f0;
  border: none;
  padding: 25px 20px;
  border-radius: 10px;
  text-align: center;
  transition: 0.3s;
}

.tabs .nav-link i {
  font-size: 32px;
  color: var(--accent-color);
  display: block;
  margin-bottom: 10px;
}

.tabs .nav-link h4 {
  font-size: 14px;
  margin: 0;
  color: #444;
}

.tabs .nav-link.active {
  background: var(--accent-color);
}

.tabs .nav-link.active i,
.tabs .nav-link.active h4 {
  color: #fff;
}

.tabs .tab-content {
  padding: 40px 0;
}

.tabs .tab-pane h3 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 20px;
}

.tabs .tab-pane ul li {
  padding: 10px 0;
  display: flex;
  align-items: flex-start;
}

.tabs .tab-pane ul li i {
  color: var(--accent-color);
  margin-right: 10px;
  font-size: 18px;
  margin-top: 3px;
}

.blog-card {
  background: var(--surface-color);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 25px rgba(0,0,0,0.08);
  transition: 0.3s;
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 40px rgba(0,0,0,0.12);
}

.blog-card .post-img {
  height: 200px;
  overflow: hidden;
}

.blog-card .post-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.3s;
}

.blog-card:hover .post-img img {
  transform: scale(1.1);
}

.blog-card .post-content {
  padding: 25px;
}

.blog-card .post-category {
  color: var(--accent-color);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.blog-card .title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 15px;
  line-height: 1.4;
}

.blog-card .title a {
  color: var(--heading-color);
}

.blog-card .title a:hover {
  color: var(--accent-color);
}

.blog-card .post-excerpt {
  color: #666;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 15px;
}

.blog-card .post-author-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 12px;
}

.blog-card .post-meta .post-author {
  font-weight: 600;
  font-size: 14px;
  margin: 0;
  color: var(--heading-color);
}

.blog-card .post-meta .post-date {
  font-size: 12px;
  color: #999;
  margin: 0;
}

.team .member {
  text-align: center;
}

.team .member-img {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  margin-bottom: 20px;
}

.team .member-img img {
  width: 100%;
  transition: 0.3s;
}

.team .member:hover .member-img img {
  transform: scale(1.1);
}

.team .member-img .social {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  opacity: 0;
  transition: 0.3s;
}

.team .member:hover .member-img .social {
  opacity: 1;
}

.team .member-img .social a {
  width: 40px;
  height: 40px;
  background: var(--accent-color);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.team .member-info h4 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 5px;
}

.team .member-info span {
  color: #666;
  font-size: 14px;
}

.contact .info-item {
  background: #fff;
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 5px 25px rgba(0,0,0,0.05);
  margin-bottom: 20px;
}

.contact .info-item i {
  font-size: 28px;
  color: var(--accent-color);
  margin-right: 20px;
}

.contact .info-item h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 5px;
}

.contact .info-item p {
  margin: 0;
  color: #666;
}

.contact .php-email-form {
  background: #fff;
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 5px 25px rgba(0,0,0,0.05);
}

.contact .php-email-form input,
.contact .php-email-form textarea {
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 12px 15px;
}

.contact .php-email-form input:focus,
.contact .php-email-form textarea:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(236,94,131,0.1);
}

.contact .php-email-form button {
  background: var(--accent-color);
  color: #fff;
  border: none;
  padding: 15px 40px;
  border-radius: 50px;
  font-weight: 600;
  transition: 0.3s;
}

.contact .php-email-form button:hover {
  background: #d4476b;
}

.footer {
  background: #1b1b1b;
  color: rgba(255,255,255,0.7);
  padding-top: 60px;
}

.footer h4 {
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 25px;
}

.footer .footer-links ul {
  list-style: none;
  padding: 0;
}

.footer .footer-links li {
  padding: 8px 0;
}

.footer .footer-links a {
  color: rgba(255,255,255,0.6);
  transition: 0.3s;
}

.footer .footer-links a:hover {
  color: var(--accent-color);
}

.footer .social-links a {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  margin-right: 10px;
  transition: 0.3s;
}

.footer .social-links a:hover {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: #fff;
}

.footer .newsletter-form {
  display: flex;
  background: rgba(255,255,255,0.1);
  border-radius: 50px;
  overflow: hidden;
}

.footer .newsletter-form input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 12px 20px;
  color: #fff;
}

.footer .newsletter-form input::placeholder {
  color: rgba(255,255,255,0.5);
}

.footer .newsletter-form input[type="submit"] {
  background: var(--accent-color);
  padding: 12px 25px;
  cursor: pointer;
  transition: 0.3s;
}

.footer .newsletter-form input[type="submit"]:hover {
  background: #d4476b;
}

.footer .copyright {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 25px 0;
  margin-top: 40px;
}

.scroll-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 20px;
  bottom: 20px;
  z-index: 99999;
  background: var(--accent-color);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  transition: all 0.4s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scroll-top i {
  font-size: 24px;
  color: #fff;
}

.scroll-top:hover {
  background: #d4476b;
}

.scroll-top.active {
  visibility: visible;
  opacity: 1;
}

.page-title {
  padding: 80px 0;
  background-size: cover;
  background-position: center;
}

.btn-primary {
  background: var(--accent-color);
  border-color: var(--accent-color);
}

.btn-primary:hover {
  background: #d4476b;
  border-color: #d4476b;
}

.btn-outline-primary {
  color: var(--accent-color);
  border-color: var(--accent-color);
}

.btn-outline-primary:hover {
  background: var(--accent-color);
  border-color: var(--accent-color);
}

.badge.bg-primary {
  background: var(--accent-color) !important;
}

.text-primary {
  color: var(--accent-color) !important;
}

.php-email-form .error-message {
  display: none;
  background: #df1529;
  color: #fff;
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 10px;
}

.php-email-form .sent-message {
  display: none;
  background: #059652;
  color: #fff;
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 10px;
}

.php-email-form .loading {
  display: none;
  text-align: center;
  padding: 15px;
}

/* =====================================================
   FIXES: Visibilidad de texto y responsive
   ===================================================== */

/* Hero: Forzar texto blanco visible */
.hero h2,
.hero p,
.hero .container * {
  color: #fff !important;
}

.hero h2 {
  text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
}

.hero p {
  text-shadow: 1px 1px 4px rgba(0,0,0,0.6);
}

/* Section dark-background: Forzar texto blanco */
.dark-background h2,
.dark-background h3,
.dark-background p,
.dark-background .section-title h2,
.dark-background .section-title p {
  color: #fff !important;
}

.dark-background .section-title p {
  color: rgba(255,255,255,0.8) !important;
}

/* Stats section: Asegurar texto blanco */
.stats h2,
.stats p,
.stats span {
  color: #fff !important;
}


/* =====================================================
   ADMIN PANEL - Bootstrap Offcanvas Sidebar
   ===================================================== */

/* Layout base del admin */
.admin-layout {
  background: #f8f9fa;
  font-size: 18px;
  min-height: 100vh;
}

/* Barra superior móvil */
.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

/* Botón toggle del menú */
.admin-toggle-btn {
  background: linear-gradient(135deg, #ec5e83, #c44569);
  color: #fff !important;
  border: none;
  border-radius: 50px;
  font-size: 16px;
  padding: 10px 20px;
  font-weight: 500;
}

.admin-toggle-btn:hover,
.admin-toggle-btn:focus {
  background: linear-gradient(135deg, #c44569, #ec5e83);
  color: #fff !important;
}

/* Sidebar Admin con Offcanvas */
.admin-sidebar {
  width: 280px !important;
  background: linear-gradient(135deg, #ec5e83, #c44569) !important;
  border: none !important;
}

.admin-sidebar .offcanvas-header {
  background: rgba(0,0,0,0.1);
}

.admin-sidebar .sidebar-logo {
  padding: 25px 20px;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

.admin-sidebar .sidebar-logo img {
  max-height: 70px;
}

.admin-sidebar .nav-link {
  color: rgba(255,255,255,0.9) !important;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  font-size: 17px;
  font-weight: 500;
  transition: all 0.3s;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
  background: rgba(255,255,255,0.18);
  color: #fff !important;
}

.admin-sidebar .nav-link i {
  margin-right: 12px;
  font-size: 20px;
  width: 24px;
  text-align: center;
}

.admin-sidebar .section-title {
  color: rgba(255,255,255,0.5) !important;
  font-size: 12px !important;
  padding: 10px 24px 5px !important;
  text-transform: uppercase;
  letter-spacing: 1px;
  pointer-events: none;
}

/* Contenido principal del admin */
.admin-main {
  flex: 1;
  padding: 30px;
  min-height: 100vh;
}

/* Desktop: sidebar fijo a la izquierda */
@media (min-width: 992px) {
  .admin-sidebar {
    position: fixed !important;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 1040;
  }
  
  .admin-main {
    margin-left: 280px;
  }
}

/* Mobile/Tablet: sidebar como drawer */
@media (max-width: 991.98px) {
  .admin-sidebar.offcanvas-lg {
    width: 85vw !important;
    max-width: 320px !important;
  }
  
  .admin-main {
    padding: 20px 15px 80px;
    margin-left: 0;
  }
  
  /* Tarjetas de usuario en móvil */
  .user-card .d-flex.justify-content-between {
    flex-direction: column !important;
  }

  .user-card .d-flex.flex-column.gap-2 {
    flex-direction: row !important;
    flex-wrap: wrap;
    justify-content: flex-start;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    gap: 8px !important;
  }
}

/* Cards del admin */
.admin-layout .welcome-card {
  background: linear-gradient(135deg, #ec5e83, #c44569);
  color: #fff;
  border-radius: 20px;
  padding: 35px;
  box-shadow: 0 10px 30px rgba(236, 94, 131, 0.3);
}

.admin-layout .stat-card {
  background: #fff;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: transform 0.3s;
  text-align: center;
}

.admin-layout .stat-card:hover {
  transform: translateY(-5px);
}

.admin-layout .stat-card .icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin: 0 auto 15px;
}

.admin-layout .stat-card h3 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 5px;
}

.admin-layout .action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px 20px;
  background: #fff;
  border-radius: 20px;
  text-decoration: none;
  color: #333;
  transition: all 0.3s;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.admin-layout .action-btn:hover {
  transform: translateY(-5px);
  background: #ec5e83;
  color: #fff;
}

.admin-layout .action-btn:hover .action-icon {
  background: rgba(255,255,255,0.2);
  color: #fff;
}

.admin-layout .action-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(236, 94, 131, 0.1);
  color: #ec5e83;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  margin-bottom: 15px;
  transition: all 0.3s;
}

.admin-layout .card {
  border-radius: 20px;
  border: none;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.admin-layout .card-header {
  background: #fff;
  border-bottom: 2px solid #f0f0f0;
  padding: 20px 25px;
  border-radius: 20px 20px 0 0 !important;
}

/* Responsive pequeño */
@media (max-width: 576px) {
  .admin-main {
    padding: 15px 12px 70px;
  }
  
  .admin-layout .welcome-card {
    padding: 20px;
  }
  
  .admin-layout .welcome-card h2 {
    font-size: 20px;
  }
  
  .admin-layout .stat-card {
    padding: 20px;
  }
  
  .admin-layout .stat-card h3 {
    font-size: 28px;
  }
  
  .admin-layout .stat-card .icon {
    width: 60px;
    height: 60px;
    font-size: 24px;
  }
  
  .admin-layout .action-btn {
    padding: 20px 15px;
  }
  
  .admin-layout .action-icon {
    width: 60px;
    height: 60px;
    font-size: 28px;
  }
}

/* Hero ajustes móvil */
@media (max-width: 576px) {
  .hero {
    padding: 60px 0;
    min-height: auto;
  }

  .hero h2 {
    font-size: 28px !important;
  }

  .hero p {
    font-size: 15px !important;
  }

  .footer .col-lg-3,
  .footer .col-lg-2 {
    text-align: center;
    margin-bottom: 30px;
  }
}
