/* 
 * Jorge Velasquez - Abogado Penalista Landing Page Styles
 * Blue/White Professional Legal Theme
 * Additional non-critical styles
 */

/* ==========================================================================
   Navigation Styles
   ========================================================================== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(26, 58, 92, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.nav.scrolled {
  background: rgba(26, 58, 92, 0.98);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.nav__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 6%;
  height: 80px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--white);
  transition: transform 0.3s ease;
}

.nav__logo:hover {
  transform: translateY(-2px);
}

.nav__logo-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #4fd1c5 0%, #38b2ac 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(79, 209, 197, 0.3);
  transition: all 0.3s ease;
}

.nav__logo:hover .nav__logo-icon {
  box-shadow: 0 6px 20px rgba(79, 209, 197, 0.5);
  transform: rotate(-5deg);
}

.nav__logo-icon svg {
  width: 26px;
  height: 26px;
  color: var(--white);
}

.nav__logo-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.nav__logo-name {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 1;
  color: var(--white);
}

.nav__logo-tagline {
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.5px;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}

.nav__link {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.5rem 0;
  position: relative;
  transition: all 0.3s ease;
}

.nav__link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #4fd1c5 0%, #63b3ed 100%);
  transition: width 0.3s ease;
}

.nav__link:hover {
  color: #4fd1c5;
}

.nav__link:hover::after {
  width: 100%;
}

.nav__cta {
  background: linear-gradient(135deg, #4fd1c5 0%, #38b2ac 100%);
  color: var(--white);
  padding: 0.75rem 1.75rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(79, 209, 197, 0.3);
}

.nav__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(79, 209, 197, 0.5);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.nav__toggle span {
  width: 28px;
  height: 3px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ==========================================================================
   Scroll to Top Button
   ========================================================================== */

.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #4fd1c5 0%, #38b2ac 100%);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(79, 209, 197, 0.4);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 25px rgba(79, 209, 197, 0.6);
}

.scroll-top:active {
  transform: translateY(-3px);
}

.scroll-top svg {
  width: 28px;
  height: 28px;
  color: var(--white);
}

/* ==========================================================================
   Animation Styles
   ========================================================================== */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Animation classes */
.fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

.fade-in {
  animation: fadeIn 0.6s ease forwards;
}

/* ==========================================================================
   Form Styles
   ========================================================================== */

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-gray);
  font-size: 0.875rem;
}

.form-control {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: var(--transition);
  background: var(--white);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
}

.form-control::placeholder {
  color: var(--text-light-gray);
}

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

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%234a5568' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.form-checkbox input {
  width: 20px;
  height: 20px;
  margin-top: 0.125rem;
  accent-color: var(--accent-blue);
}

.form-checkbox label {
  font-size: 0.875rem;
  color: var(--text-gray);
}

/* ==========================================================================
   Button Styles
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-decoration: none;
}

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

.btn--primary:hover {
  background: var(--secondary-blue);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn--secondary {
  background: var(--white);
  color: var(--primary-blue);
  border: 2px solid var(--primary-blue);
}

.btn--secondary:hover {
  background: var(--light-blue);
  color: var(--secondary-blue);
}

.btn--whatsapp {
  background: #25d366;
  color: var(--white);
}

.btn--whatsapp:hover {
  background: #128c7e;
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn--outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
  color: var(--white);
}

.btn--sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn--lg {
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
}

.btn--block {
  width: 100%;
}

/* ==========================================================================
   Card Styles
   ========================================================================== */

.card {
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.card__image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card__content {
  padding: 1.5rem;
}

.card__title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.card__description {
  color: var(--text-gray);
  line-height: 1.7;
}

.card__footer {
  padding: 1rem 1.5rem;
  background: var(--off-white);
  border-top: 1px solid var(--border-color);
}

/* ==========================================================================
   Icon Styles
   ========================================================================== */

.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon--sm {
  width: 20px;
  height: 20px;
}

.icon--md {
  width: 24px;
  height: 24px;
}

.icon--lg {
  width: 32px;
  height: 32px;
}

.icon--xl {
  width: 48px;
  height: 48px;
}

.icon--primary {
  color: var(--primary-blue);
}

.icon--accent {
  color: var(--accent-blue);
}

.icon--white {
  color: var(--white);
}

.icon--success {
  color: var(--success);
}

/* ==========================================================================
   Section Styles
   ========================================================================== */

.section {
  padding: 6rem 6%;
}

.section--alt {
  background: var(--off-white);
}

.section--dark {
  background: var(--primary-blue);
  color: var(--white);
}

.section__header {
  text-align: center;
  margin-bottom: 4rem;
}

.section__label {
  display: inline-block;
  color: var(--accent-blue);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

.section__title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section__subtitle {
  color: var(--text-gray);
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.125rem;
}

/* ==========================================================================
   Badge Styles
   ========================================================================== */

.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge--primary {
  background: var(--light-blue);
  color: var(--accent-blue);
}

.badge--success {
  background: rgba(56, 161, 105, 0.1);
  color: var(--success);
}

.badge--warning {
  background: rgba(214, 158, 46, 0.1);
  color: #d69e2e;
}

.badge--info {
  background: rgba(49, 130, 206, 0.1);
  color: var(--accent-blue);
}

/* ==========================================================================
   List Styles
   ========================================================================== */

.list {
  list-style: none;
}

.list__item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 0;
}

.list__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.list--check .list__icon {
  color: var(--success);
}

.list--arrow .list__item::before {
  content: "→";
  color: var(--accent-blue);
  font-weight: bold;
}

/* ==========================================================================
   Table Styles
   ========================================================================== */

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.table th {
  background: var(--light-blue);
  font-weight: 600;
  color: var(--primary-blue);
}

.table tbody tr:hover {
  background: var(--off-white);
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */

@media (max-width: 992px) {
  .nav__container {
    height: 70px;
    padding: 0 5%;
  }

  .nav__logo-icon {
    width: 42px;
    height: 42px;
  }

  .nav__logo-name {
    font-size: 1rem;
  }

  .nav__logo-tagline {
    font-size: 0.7rem;
  }

  .nav__menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
      135deg,
      rgba(26, 58, 92, 0.98) 0%,
      rgba(44, 82, 130, 0.98) 100%
    );
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: flex-start;
    padding: 3rem 2rem;
    gap: 0;
    transform: translateX(100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.3);
  }

  .nav__menu li {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav__menu li:last-child {
    border-bottom: none;
    margin-top: 1rem;
  }

  .nav__link {
    display: block;
    width: 100%;
    padding: 1.25rem 0;
    font-size: 1.1rem;
    text-align: left;
  }

  .nav__link::after {
    display: none;
  }

  .nav__cta {
    display: block;
    width: 100%;
    text-align: center;
    padding: 1rem 2rem;
    margin-top: 0.5rem;
  }

  .nav__menu.active {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
  }

  .nav__toggle {
    display: flex;
  }

  .nav__toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
  }

  .nav__toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(20px);
  }

  .nav__toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }
}

@media (max-width: 768px) {
  .nav__container {
    height: 65px;
  }

  .nav__logo-icon {
    width: 38px;
    height: 38px;
  }

  .nav__logo-icon svg {
    width: 22px;
    height: 22px;
  }

  .nav__logo-name {
    font-size: 0.95rem;
  }

  .nav__logo-tagline {
    font-size: 0.65rem;
  }

  .nav__menu {
    top: 65px;
    padding: 2rem 1.5rem;
  }

  .nav__link {
    font-size: 1rem;
    padding: 1rem 0;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 4rem 5%;
  }

  .section__title {
    font-size: 2rem;
  }

  .btn--lg {
    padding: 0.875rem 2rem;
    font-size: 1rem;
  }

  .card__content {
    padding: 1.25rem;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 2rem 4%;
  }

  .hero__title {
    font-size: 1.75rem;
  }

  .hero__subtitle {
    font-size: 1.125rem;
  }

  .hero__cta-group {
    flex-direction: column;
  }

  .hero__btn {
    width: 100%;
    justify-content: center;
  }

  .services__grid {
    grid-template-columns: 1fr;
  }

  .advantages__grid {
    grid-template-columns: 1fr;
  }

  .contact__form-container {
    padding: 1.5rem;
  }

  .floating-whatsapp {
    width: 50px;
    height: 50px;
    bottom: 5.5rem;
    right: 1rem;
  }

  .floating-whatsapp svg {
    width: 24px;
    height: 24px;
  }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
  .nav,
  .floating-whatsapp {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 2rem;
    background: var(--white) !important;
    color: var(--text-dark) !important;
  }

  .hero__title,
  .hero__subtitle,
  .hero__description {
    color: var(--text-dark) !important;
  }

  .section {
    padding: 2rem 0;
  }

  body {
    font-size: 12pt;
    line-height: 1.5;
  }

  a {
    text-decoration: underline;
  }
}

/* ==========================================================================
   Accessibility Styles
   ========================================================================== */

:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary-blue);
  color: var(--white);
  padding: 0.5rem 1rem;
  z-index: 1001;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 0;
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

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

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.mt-1 {
  margin-top: 0.25rem;
}
.mt-2 {
  margin-top: 0.5rem;
}
.mt-3 {
  margin-top: 1rem;
}
.mt-4 {
  margin-top: 1.5rem;
}
.mt-5 {
  margin-top: 2rem;
}

.mb-1 {
  margin-bottom: 0.25rem;
}
.mb-2 {
  margin-bottom: 0.5rem;
}
.mb-3 {
  margin-bottom: 1rem;
}
.mb-4 {
  margin-bottom: 1.5rem;
}
.mb-5 {
  margin-bottom: 2rem;
}

.py-1 {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}
.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
.py-3 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.py-4 {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}
.py-5 {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.d-flex {
  display: flex;
}

.d-grid {
  display: grid;
}

.flex-column {
  flex-direction: column;
}

.align-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-1 {
  gap: 0.25rem;
}
.gap-2 {
  gap: 0.5rem;
}
.gap-3 {
  gap: 1rem;
}
.gap-4 {
  gap: 1.5rem;
}
.gap-5 {
  gap: 2rem;
}

.w-100 {
  width: 100%;
}

/* ==========================================================================
   Loading Spinner
   ========================================================================== */

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border-color);
  border-top-color: var(--accent-blue);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ==========================================================================
   Scroll to Top Button
   ========================================================================== */

.scroll-to-top {
  position: fixed;
  bottom: 6rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: var(--primary-blue);
  color: var(--white);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-lg);
  z-index: 999;
}

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

.scroll-to-top:hover {
  background: var(--secondary-blue);
  transform: translateY(-3px);
}

.scroll-to-top svg {
  width: 24px;
  height: 24px;
}
