:root {
  --primary: #d95a27;
  --primary-hover: #c04e22;
  --title: #d95a27;
  --white: #ffffff;
  --black: #000000;
  --light-gray: #e7e8e9;
  --dark-gray: #989faf;
  --secondary: #d7d7d6;
  --light: #f5f5f5;
  --dark: #1d1f23;
  --accent1: #a5c342;
  --accent2: #81c2cc;
  --accent3: #43277c;
  --box-radius: 8px;
}

body {
  font-family: "Roboto", sans-serif;
  color: var(--black);
  background-color: var(--white);
}

.text-accent3 {
  color: var(--accent3);
}

.navbar {
  background-color: var(--white) !important;
  padding: 1rem 0;
  font-family: "Montserrat", sans-serif;
}

.navbar .nav-link {
  color: #333333 !important;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  position: relative;
  padding-bottom: 2px;
}

.navbar .nav-link:not(.dropdown-item):after {
  content: "";
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: #333333;
  transform-origin: bottom right;
  transition: transform 0.25s ease-out;
}

.navbar .nav-link:not(.dropdown-item):hover:after,
.navbar .nav-link:not(.dropdown-item).active:after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  opacity: 1;
}


/* Dropdown toggle specific styles */
.navbar .dropdown-toggle {
  border: none !important; /* Remove any Bootstrap border */
}

/* Dropdown menu styles */
.navbar .dropdown-menu {
  background-color: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: 0.375rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.navbar .dropdown-item {
  color: var(--black);
  font-weight: 500;
  padding: 0.5rem 1rem;
  position: relative;
}

.navbar .dropdown-item:hover {
  background-color: var(--light);
  color: var(--black);
}

.navbar .dropdown-item.active {
  background-color: var(--primary);
  color: var(--white);
  border: none;
}

.navbar .dropdown-item.active:after {
  display: none; /* Remove underline from dropdown items */
}

.navbar .dropdown-item:after {
  display: none; /* Remove underline from all dropdown items */
}

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

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

.btn-primary {
  background-color: var(--primary);
  border: 1px solid var(--primary);
  color: #fff;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary:active:focus {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
  color: #fff;
}

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

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.card {
  border-color: var(--secondary);
  border-radius: var(--box-radius);
  overflow: hidden;
}

.card-title {
  color: var(--primary);
}

.table {
  border-color: var(--secondary);
}

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

.hero-section {
  background-color: #fff;
  padding: 4rem 0 2rem 0;
  position: relative;
  overflow: hidden;
}

/* Remove diagonal background */
.hero-section::after {
  display: none;
}

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

.hero-image-container {
  min-height: 400px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 0;
}

.hero-image-home {
  background-image: url("/img/electricista-legrand.webp");
}

/* Hero Carousel Styles */
.hero-carousel-img {
  height: auto;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
}

/* Carousel Controls */
.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: var(--primary) !important;
  width: 40px;
  height: 40px;
  border-radius: 0;
  background-position: center;
  background-size: 50%;
  opacity: 1 !important;
}

.carousel-indicators [data-bs-target] {
  background-color: var(--primary);
  opacity: 1 !important;
}

.carousel-control-prev,
.carousel-control-next {
  opacity: 1 !important;
}

@media (max-width: 768px) {
  .hero-carousel-img {
    height: auto !important;
  }
}

.hero-image-electrician {
  background-image: url("https://legrand-ca-comercial.s3.us-east-1.amazonaws.com/electricistas-concurso/soy-electricista-banner.webp");
  background-position: center;
  height: auto;
  min-height: 400px;
  background-size: contain;
  background-repeat: no-repeat;
  border-radius: 0;
}

.hero-image-contact {
  background-image: url("https://legrand-ca-comercial.s3.us-east-1.amazonaws.com/electricistas-concurso/soy-electricista-banner.webp");
  background-position: center;
  height: auto;
  min-height: 400px;
  background-size: contain;
  background-repeat: no-repeat;
  border-radius: 0;
}

.hero-image-user {
  background-image: url("https://legrand-ca-comercial.s3.us-east-1.amazonaws.com/electricistas-concurso/soy-electricista-banner.webp");
  background-position: center;
  height: auto;
  min-height: 400px;
  background-size: contain;
  background-repeat: no-repeat;
  border-radius: 0;
}

.hero-section .hero-title {
  color: var(--title) !important;
  font-size: calc(1.6rem + 1.2vw);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  font-family: "Montserrat", sans-serif;
  letter-spacing: -0.01em;
}

.hero-section p {
  font-size: 1.25rem;
  color: var(--dark-gray);
  margin-bottom: 2rem;
  font-family: "Roboto", sans-serif;
  font-weight: 400;
}

.hero-section .btn {
  padding: 0.8rem 1.5rem;
  font-weight: 500;
  border-radius: 0;
}

.navbar-brand img {
  max-width: none;
  height: 90px !important;
  width: auto;
}

@media (max-width: 575.98px) {
  .navbar-brand img {
    height: 64px !important;
  }
}

.navbar-toggler {
  border-color: #333333;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(51, 51, 51, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.hero-banner {
  overflow-x: hidden;
  background: #000;
  min-height: 0 !important;
  padding: 0 !important;
}

.hero-register {
  background: #000 !important;
  min-height: 0 !important;
}

.hero-register h2 {
  color: #e7e8e9;
}

.hero-register .hero-description,
.hero-register .lead {
  color: #e7e8e9;
}

.hero-404 .home-kicker {
  font-family: "Montserrat", sans-serif;
  font-size: 0.72rem;
  color: var(--title);
  margin-bottom: 0.75rem;
}

.hero-register-img {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.hero-image-full {
  width: 100%;
  max-width: 100%;
  height: 480px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  background: #000;
}

@media (max-width: 768px) {
  .hero-image-full {
    height: 220px;
  }
}

footer {
}

/* Global Headings */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--title);
}

section > h2 {
  color: var(--title);
  font-size: 2.25rem;
  margin-bottom: 2rem;
}

/* How it works section */
.how-it-works-section {
  background-color: var(--light-gray);
  border-radius: 0;
  margin: -3rem -15px 0;
  padding: 3rem 15px;
}

.how-it-works-section .card {
  background-color: white;
}

/* How It Works Section */
.card {
  border: none;
  transition: transform 0.3s ease;
  border-radius: var(--box-radius);
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

.card-title {
  color: var(--title);
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}

/* Leaderboard Section */
#leaderboard {
  background-color: var(--light);
  padding: 3rem;
  border-radius: 0;
}

#leaderboard h2 {
  margin-bottom: 2rem;
}

.leaderboard-table {
  background: white;
  border-radius: var(--box-radius);
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  width: 100%;
}

.leaderboard-table thead {
  background-color: var(--black);
  color: white;
}

.leaderboard-table th {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  padding: 1rem;
}

.leaderboard-table td {
  padding: 1rem;
  vertical-align: middle;
}

.rank-number {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  color: var(--primary);
  font-size: 1.2rem;
}

.country-flag {
  margin-left: 0.5rem;
  font-size: 1.2rem;
}

.leaderboard-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 1rem;
  border: 2px solid var(--primary);
}

.name-cell {
  min-width: 250px;
}

@media (max-width: 575.98px) {
  .leaderboard-table .col-country {
    display: none;
  }

  .leaderboard-table td,
  .leaderboard-table th {
    padding: 0.75rem 0.5rem;
  }

  .name-cell {
    min-width: 0;
  }

  .name-cell .electrician-link {
    padding: 0;
  }

  .leaderboard-table .leaderboard-avatar {
    margin-right: 0.6rem;
  }

  .leaderboard-table .btn-sm {
    padding: 0.45rem 0.7rem;
    font-size: 0.8rem;
  }
}

.electrician-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--dark);
  transition: all 0.3s ease;
  padding: 0.5rem;
  border-radius: 0;
}

.electrician-link:hover {
  background-color: var(--light-gray);
  color: var(--primary);
}

.electrician-link img {
  margin-right: 1rem;
}

.electrician-link span {
  font-weight: 500;
}

/* Registration form styles */
.registration-section {
  background-color: var(--light-gray);
  padding: 5rem 0;
  margin: 0;
  width: 100%;
}

.registration-section .card {
  border: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
  border-radius: var(--box-radius);
}

.registration-section .card-body {
  padding: 2.5rem;
}

.registration-section .form-label {
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--dark);
}

.registration-section .form-control {
  padding: 0.8rem;
  border-radius: var(--box-radius);
  border: 2px solid var(--light-gray);
  transition: all 0.3s ease;
}

.registration-section .form-control:focus {
  border-color: var(--accent3);
  box-shadow: 0 0 0 0.2rem rgba(67, 39, 124, 0.1);
}

.registration-section .form-control:hover {
  border-color: var(--accent3);
}

.registration-section .form-select {
  padding: 0.8rem;
  border-radius: var(--box-radius);
  border: 2px solid var(--light-gray);
  cursor: pointer;
}

.registration-section .btn-primary {
  padding: 0.7rem 1.25rem;
  font-weight: 600;
  background: var(--primary);
  border: 1px solid var(--primary);
}

.registration-section .btn-primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
}

.registration-section .form-check-input:checked {
  background-color: var(--accent3);
  border-color: var(--accent3);
}

/* Password toggle button */
.password-toggle {
  border-color: var(--light-gray);
  background: white;
  color: var(--dark-gray);
  transition: all 0.3s ease;
  border-radius: 0;
}

.password-toggle:hover {
  background: var(--light-gray);
  color: var(--accent3);
  border-color: var(--accent3);
}

.password-toggle:focus {
  box-shadow: none;
  border-color: var(--accent3);
}

.password-toggle .bi-eye-slash {
  display: none;
}

.password-toggle.showing .bi-eye {
  display: none;
}

.password-toggle.showing .bi-eye-slash {
  display: inline;
}

/* Profile page styles */
.profile-section {
  padding: 4rem 0;
  background-color: var(--light);
}

.profile-section .card {
  border: none;
  border-radius: var(--box-radius);
  overflow: hidden;
}

.votes-counter {
  background-color: var(--light);
  padding: 1rem;
  border-radius: var(--box-radius);
}

.votes-counter h4 {
  font-size: 2rem;
  color: var(--title);
}

.profile-section .btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
  padding: 0.8rem 1.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.profile-section .btn-primary:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
}

.profile-section h5.text-muted {
  color: var(--dark-gray) !important;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.text-justify {
  text-align: justify;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.profile-section p {
  color: var(--dark);
  font-size: 1.1rem;
}

.projects-section img {
  border-radius: 0;
  margin-bottom: 1rem;
}

/* Estilos para botones de compartir */
.share-section {
  background-color: #f8f9fa;
  border-radius: var(--box-radius);
  padding: 1.5rem;
  border: 1px solid #e9ecef;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
  margin-bottom: 2rem;
}

.share-section h5.text-muted {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
  color: #6c757d !important;
}

.share-section .share-btn {
  width: 40px;
  height: 40px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
  margin-right: 0.5rem;
}

.share-section .share-btn:last-child {
  margin-right: 0;
}

.share-section .share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.share-section .btn-success {
  background-color: #25d366;
  border-color: #25d366;
}

.share-section .btn-info {
  background-color: #1da1f2;
  border-color: #1da1f2;
  color: white;
}

.share-section .btn-info:hover {
  background-color: #1a91da;
  border-color: #1a91da;
  color: white;
}

/* Rewards Section */
.rewards-section {
  background-color: var(--light);
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

/* Remove diagonal background */
.rewards-section::after {
  display: none;
}

.rewards-section .container {
  position: relative;
  z-index: 2;
}

.rewards-section h2 {
  color: var(--title);
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
}

.reward-step {
  background: white;
  padding: 1.5rem;
  border-radius: var(--box-radius);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.reward-step h3 {
  color: var(--title);
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
}

.reward-step p {
  color: var(--dark);
  font-size: 1.1rem;
  line-height: 1.6;
}

.tiktok-embed-wrap {
  width: 100%;
  max-width: 325px;
  margin: 0 auto;
  aspect-ratio: 9 / 16;
  background: #000;
}

.tiktok-embed-wrap iframe,
.tiktok-embed-wrap video {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.reward-image {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  margin: 0;
}

.reward-image img {
  width: 100%;
  height: auto;
  border-radius: 0;
  padding: 0;
  margin: 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Accent Buttons */
.btn-accent1 {
  background-color: var(--primary);
  color: white;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  padding: 0.7rem 1.25rem;
  transition: background-color 0.2s ease-in-out;
}

.btn-accent1:hover {
  background-color: var(--primary-hover);
  color: white;
}

/* Footer Styles */
.footer {
  background-color: var(--white) !important;
  font-family: "Montserrat", sans-serif;
  padding: 4rem 0;
  color: #333333;
  border-top: 1px solid var(--light-gray);
}

.footer-brand img {
  height: 70px;
  width: auto;
}

.footer h5,
.footer p,
.footer a {
  color: #333333;
}

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

.footer-nav ul {
  flex-wrap: wrap;
}

.footer-nav a {
  color: #333333;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-nav a:hover {
  color: var(--black);
}

.social-links {
  margin: 0;
}

.social-links a {
  color: #333333;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--light-gray);
}

.social-links a:hover {
  color: var(--white);
  opacity: 1;
  background-color: var(--primary);
  transform: translateY(-2px);
}

.footer p {
  color: #333333;
  font-size: 0.9rem;
}

.footer-legal a {
  font-size: 0.85rem;
}

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

  .footer-nav li {
    margin-bottom: 1rem;
  }

  /* Hide diagonal background in mobile */
  .hero-section::after {
    display: none;
  }

  .hero-image-home {
    height: 250px !important;
  }

  /* Registration pages hero */
  .hero-image-electrician {
    height: 200px !important;
    margin-top: 0 !important;
  }

  .hero-section {
    padding: 1rem 0;
  }

  .hero-section .py-3 {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
  }

  .hero-section .hero-description {
    margin-bottom: 1rem !important;
  }

  #leaderboard {
    padding: 2rem 1rem;
  }
}

@media (min-width: 992px) {
  .hero-section {
    min-height: calc(100vh - 400px);
    padding: 4rem 0 2rem 0;
  }
}

/* Global button styles — match homepage “Registrar mi participación” */
.btn {
  border-radius: 0.5rem !important;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
}

.btn-primary,
.btn-primary.btn-lg {
  padding: 0.7rem 1.25rem;
}

.btn-outline-primary {
  padding: 0.7rem 1.25rem;
}

.input-group .btn {
  padding: 0.375rem 0.75rem;
}

/* Keep only social media buttons round */
.social-links a,
.share-section .share-btn,
.leaderboard-avatar {
  border-radius: 50%;
}

/* Login section styles */
.login-section {
  background-color: var(--light-gray);
  padding: 5rem 0;
}

.login-section .card {
  border: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
  border-radius: var(--box-radius);
}

.modal-content,
.alert {
  border-radius: var(--box-radius);
}

.form-control,
.form-select {
  border-radius: var(--box-radius);
}

.login-section .btn-primary {
  padding: 0.7rem 1.25rem;
  font-weight: 600;
  background: var(--primary);
  border: 1px solid var(--primary);
  font-family: "Montserrat", sans-serif;
}

.login-section .btn-outline-primary {
  padding: 0.7rem 1.25rem;
  font-weight: 600;
  font-family: "Montserrat", sans-serif;
}

/* Homepage below-hero (Stitch layout, our hero/nav kept) */
.home-rest {
  background: #f8f9fa;
  color: #171c24;
}

.home-pitch {
  background: #000;
  color: #fff;
  text-align: center;
  padding: 2.5rem 0 3.5rem;
}

.home-pitch .home-pitch-title {
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 2.6rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
  max-width: 820px;
  margin: 0 auto 1rem;
}

.home-pitch .home-pitch-title span {
  color: var(--title);
}

.home-pitch-text {
  font-size: 1.25rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
  max-width: 680px;
  margin: 0 auto 1.75rem;
}

.home-pitch-video {
  margin: 0 auto;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
}

@media (max-width: 767.98px) {
  .home-pitch {
    padding: 2rem 0 2.75rem;
  }
  .home-pitch .home-pitch-title {
    font-size: 2.1rem;
  }
  .home-pitch-text {
    font-size: 1.1rem;
  }
}

.home-rest .home-section-title {
  color: var(--title);
  font-size: 2rem;
  margin-bottom: 1.25rem;
}

.home-kicker {
  font-family: "Montserrat", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--title);
  margin-bottom: 0.5rem;
}

.phone-frame {
  width: 280px;
  max-width: 100%;
  background: #1a1e24;
  border-radius: 2rem;
  padding: 12px;
  box-shadow: 0 24px 48px rgba(18, 21, 26, 0.18);
}

.phone-frame .tiktok-embed-wrap {
  border-radius: 1.35rem;
  overflow: hidden;
  max-width: none;
  aspect-ratio: 9 / 16;
}

.home-paso {
  padding: 3.5rem 0;
  background: #fff;
  text-align: center;
}

.home-paso-alt {
  background: #f3f5f8;
}

.home-paso-label {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  color: var(--title);
  font-size: 2.4rem;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
}

.home-paso-text {
  font-size: 1.2rem;
  line-height: 1.55;
  color: #1e232b;
  max-width: 40rem;
  margin: 0 auto 1.75rem;
  text-wrap: balance;
}

.home-paso-btn {
  font-size: 1.05rem;
  padding: 0.85rem 1.5rem;
}

.home-paso-option {
  background: #f3f5f8;
  border-radius: var(--box-radius);
  padding: 1.75rem 1.5rem;
  height: 100%;
}

.home-paso-option .home-paso-text {
  margin-bottom: 1.25rem;
}

.home-pruebas-note {
  margin: 2.5rem auto 0;
}

.home-pruebas-note a {
  color: var(--title);
  font-weight: 600;
}

.home-pruebas-note a:hover {
  color: #c04e22;
}

.home-video-label {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  color: #171c24;
  font-size: 1.4rem;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.home-hashtags {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1rem;
  background: #fff;
  border: 2px dashed var(--title);
  border-radius: var(--box-radius);
  padding: 0.85rem 1rem 0.85rem 1.4rem;
  font-family: "Montserrat", sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #171c24;
}

.home-premios {
  padding: 3.5rem 0 4rem;
  background: #fff;
}

.home-btn-primary,
.home-btn-ghost {
  border-radius: 0.5rem !important;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  padding: 0.7rem 1.25rem;
}

.home-btn-primary {
  background: var(--title);
  border: 1px solid var(--title);
  color: #fff;
}

.home-btn-primary:hover {
  background: #c04e22;
  border-color: #c04e22;
  color: #fff;
}

.home-btn-ghost {
  background: #eef0f4;
  border: 1px solid #e2e5e9;
  color: #171c24;
}

.home-btn-ghost:hover {
  background: #e2e5e9;
  color: #171c24;
}

.home-info-card {
  background: #fff;
  border: 1px solid #e2e5e9;
  border-radius: var(--box-radius);
  padding: 1.5rem 1.4rem 1.6rem;
  box-shadow: 0 4px 20px -2px rgba(18, 21, 26, 0.05);
}

.home-info-card h3 {
  color: #171c24;
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.home-premios-img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 768px) {
  .home-rest .home-section-title {
    font-size: 1.6rem;
  }

  .phone-frame {
    width: 240px;
  }

  .home-paso {
    padding: 2.75rem 0;
  }

  .home-paso-label {
    font-size: 2rem;
  }

  .home-paso-text {
    font-size: 1.1rem;
  }
}

.profile-section .card:hover {
  transform: none;
}

/* Profile: identity card */
.profile-combined-card .card-body,
.tiktok-entry-card .card-body,
.tiktok-form-card .card-body {
  padding: 2rem;
}

.profile-identity {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.profile-photo {
  width: 96px;
  height: 96px;
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid #fff;
  box-shadow: 0 2px 10px rgba(18, 21, 26, 0.18);
}

.profile-identity-text {
  flex: 1;
  min-width: 0;
}

.profile-name {
  font-size: 1.6rem;
  color: var(--title);
  margin-bottom: 0.4rem;
}

.profile-section .profile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  color: #5c5e64;
  font-size: 0.95rem;
}

.profile-meta i {
  color: #9aa0a8;
  margin-right: 0.3rem;
}

.profile-edit-btn {
  align-self: flex-start;
  flex-shrink: 0;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  border-radius: var(--box-radius);
}

.profile-block {
  border-top: 1px solid #e9ecef;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
}

.profile-label {
  font-family: "Montserrat", sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b7280;
  margin-bottom: 0.75rem;
}

.profile-section .profile-bio {
  font-size: 1.05rem;
  line-height: 1.65;
  color: #1e232b;
}

.profile-share {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.profile-share .btn {
  height: 44px;
  border-radius: var(--box-radius);
  border: 0;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.profile-share-whatsapp {
  background: #25d366;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  padding: 0 1.25rem;
  gap: 0.5rem;
}

.profile-share-whatsapp i {
  font-size: 1.3rem;
}

.profile-share-whatsapp:hover {
  background: #1ebe5a;
  color: #fff;
}

.profile-share-icons {
  display: flex;
  gap: 0.6rem;
}

.profile-share-icon {
  width: 44px;
  padding: 0;
  font-size: 1.1rem;
}

.profile-share-copy {
  background: #6b7280;
}

.profile-share-facebook {
  background: #1877f2;
}

.profile-share-x {
  background: #111;
}

.profile-share .btn:hover {
  filter: brightness(0.92);
  color: #fff;
}

/* Profile: TikTok card */
.tiktok-profile-embed {
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  aspect-ratio: 9 / 16;
  background: #000;
  border-radius: var(--box-radius);
  overflow: hidden;
}

.tiktok-profile-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.tiktok-like-bar {
  max-width: 320px;
  margin: 1.25rem auto 0;
  text-align: center;
}

.tiktok-like-btn {
  width: 100%;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: var(--primary);
  border: 0;
  border-radius: var(--box-radius);
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.tiktok-like-btn i {
  font-size: 1.35rem;
}

.tiktok-like-btn:hover,
.tiktok-like-btn:focus {
  background: var(--primary-hover);
  color: #fff;
}

.tiktok-like-btn.is-liked,
.tiktok-like-btn.is-liked:disabled {
  background: rgba(217, 90, 39, 0.1);
  color: var(--primary);
  opacity: 1;
}

.tiktok-like-total {
  font-size: 1.1rem;
  color: #1e232b;
}

.tiktok-like-total strong {
  color: var(--title);
  font-size: 1.35rem;
}

.profile-section .tiktok-like-hint {
  font-size: 0.9rem;
  color: #6b7280;
}

.tiktok-empty-card {
  text-align: center;
}

.tiktok-empty-card a {
  color: var(--primary);
  font-weight: 600;
}

.tiktok-empty-card .card-body {
  padding: 2.25rem 2rem;
}

.tiktok-empty-icon {
  font-size: 2.5rem;
  color: #171c24;
  margin-bottom: 1rem;
}

.tiktok-empty-title {
  font-size: 1.35rem;
  line-height: 1.3;
  color: var(--title);
  margin-bottom: 0.75rem;
  text-wrap: balance;
}

.profile-section .tiktok-empty-text {
  font-size: 1rem;
  color: #3a4048;
  margin-bottom: 1.25rem;
}

.tiktok-empty-card .tiktok-url-form {
  text-align: left;
}

.tiktok-empty-card .tiktok-url-form .small {
  text-align: center;
}

.profile-section .tiktok-form-error {
  color: #b42318;
  font-size: 0.95rem;
}

.tiktok-delete-form {
  border-top: 1px solid #e9ecef;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
}

.tiktok-delete-form .btn {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  border-radius: var(--box-radius);
}

@media (max-width: 575.98px) {
  .profile-combined-card .card-body,
  .tiktok-entry-card .card-body,
  .tiktok-form-card .card-body {
    padding: 1.5rem;
  }

  .profile-identity {
    flex-wrap: wrap;
  }

  .profile-photo {
    width: 80px;
    height: 80px;
  }

  .profile-identity-text {
    flex-basis: calc(100% - 80px - 1.25rem);
  }

  .profile-name {
    font-size: 1.35rem;
  }

  .profile-edit-btn {
    order: 3;
  }

  .profile-share-whatsapp {
    width: 100%;
  }
}

/* Legal pages (Reglamento, Términos, Privacidad, Eliminación de Datos) */
.legal-page h1 {
  font-size: 1.6rem;
}

.legal-page h2 {
  font-size: 1.2rem;
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
}

.legal-page .card-body > h2:first-child {
  margin-top: 0;
}

.legal-page h3 {
  font-size: 1.05rem;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

@media (max-width: 576px) {
  .legal-page h1 {
    font-size: 1.3rem;
  }
}
