:root {
  --primary-celeste: #75AADB;
  --primary-white: #FFFFFF;
  --accent-dark: #1B4F72;
  --text-dark: #2C3E50;
  --gray-light: #F8F9FA;
  --gray-medium: #E9ECEF;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  background-color: var(--primary-white);
}

.navbar {
  background: linear-gradient(135deg, var(--primary-celeste) 0%, var(--accent-dark) 100%);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-brand {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--primary-white) !important;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.navbar-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.nav-link {
  color: var(--primary-white) !important;
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
  font-size: 1rem;
}

.nav-link:hover {
  color: var(--gray-light) !important;
  transform: translateY(-2px);
}

.btn {
  padding: 0.6rem 1.5rem;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary {
  background: var(--primary-celeste);
  border-color: var(--primary-white);
  color: var(--primary-white);
}

.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--primary-white);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
  background: transparent;
  border-color: var(--primary-white);
  color: var(--primary-white);
}

.btn-secondary:hover {
  background: var(--primary-white);
  border-color: var(--primary-white);
  color: var(--primary-celeste);
  transform: translateY(-2px);
}

.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-white);
  text-align: center;
  padding: 2rem 15px;
  overflow: hidden;
}

.hero-bg-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
}

.hero-bg.active {
  opacity: 1;
}

/* Animaciones de transición */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideOutLeft {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(-100%);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideOutRight {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(100%);
  }
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(1.2);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes zoomOut {
  from {
    opacity: 1;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(0.8);
  }
}

@keyframes scaleUp {
  from {
    opacity: 0;
    transform: scale(0.5);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes scaleDown {
  from {
    opacity: 1;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(1.5);
  }
}

@keyframes slideInTop {
  from {
    opacity: 0;
    transform: translateY(-100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideOutBottom {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(100%);
  }
}

/* Clases de animación */
.hero-bg.fade-in {
  animation: fadeIn 2s ease-in-out forwards;
}

.hero-bg.fade-out {
  animation: fadeOut 2s ease-in-out forwards;
}

.hero-bg.slide-in-right {
  animation: slideInRight 1.5s ease-out forwards;
}

.hero-bg.slide-out-left {
  animation: slideOutLeft 1.5s ease-in forwards;
}

.hero-bg.slide-in-left {
  animation: slideInLeft 1.5s ease-out forwards;
}

.hero-bg.slide-out-right {
  animation: slideOutRight 1.5s ease-in forwards;
}

.hero-bg.zoom-in {
  animation: zoomIn 2.5s ease-out forwards;
}

.hero-bg.zoom-out {
  animation: zoomOut 2s ease-in forwards;
}

.hero-bg.scale-up {
  animation: scaleUp 2s ease-out forwards;
}

.hero-bg.scale-down {
  animation: scaleDown 2s ease-in forwards;
}

.hero-bg.slide-in-top {
  animation: slideInTop 1.5s ease-out forwards;
}

.hero-bg.slide-out-bottom {
  animation: slideOutBottom 1.5s ease-in forwards;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(27, 79, 114, 0.3) 0%, rgba(117, 170, 219, 0.2) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.hero p {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.7);
}

.search-box {
  background: var(--primary-white);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  max-width: 800px;
  margin: 2rem auto;
}

.search-form {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 1rem;
  align-items: end;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  color: var(--text-dark);
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.search-box input,
.search-box select {
  padding: 0.8rem;
  border: 2px solid var(--gray-medium);
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.search-box input:focus,
.search-box select:focus {
  outline: none;
  border-color: var(--primary-celeste);
  box-shadow: 0 0 0 3px rgba(117, 170, 219, 0.1);
}

.card {
  border: none;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  background: var(--primary-white);
  text-decoration: none;
  color: inherit;
  display: block;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.card-img-top {
  height: 220px;
  object-fit: cover;
  width: 100%;
}

.card-body {
  padding: 1.5rem;
}

.card-title {
  color: var(--accent-dark);
  font-weight: 700;
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
}

.card-text {
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.price {
  color: var(--primary-celeste);
  font-size: 1.4rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  display: block;
}

.features {
  background: var(--gray-light);
  padding: 4rem 15px;
}

.feature-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-celeste) 0%, var(--accent-dark) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: var(--primary-white);
  font-size: 2rem;
}

.feature-item {
  text-align: center;
  padding: 2rem 1rem;
}

.feature-item h3 {
  color: var(--accent-dark);
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer {
  background: linear-gradient(135deg, var(--accent-dark) 0%, var(--primary-celeste) 100%);
  color: var(--primary-white);
  padding: 3rem 15px 1rem;
  margin-top: 4rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer h5 {
  font-weight: 700;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.footer a {
  color: var(--primary-white);
  text-decoration: none;
  display: block;
  margin-bottom: 0.5rem;
  transition: opacity 0.3s ease;
}

.footer a:hover {
  opacity: 0.8;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: 2rem;
  padding-top: 1rem;
  text-align: center;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent-dark);
  text-align: center;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--text-dark);
  text-align: center;
  margin-bottom: 2rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}

.col {
  flex: 1;
  padding: 0 15px;
  min-width: 0;
}

.col-4 {
  flex: 0 0 33.333%;
  max-width: 33.333%;
  padding: 0 15px;
}

.col-3 {
  flex: 0 0 25%;
  max-width: 25%;
  padding: 0 15px;
}

.mt-4 {
  margin-top: 2rem;
}

.mb-4 {
  margin-bottom: 2rem;
}

.py-5 {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.text-center {
  text-align: center;
}

@media (max-width: 992px) {
  .col-4 {
    flex: 0 0 50%;
    max-width: 50%;
  }

  .col-3 {
    flex: 0 0 50%;
    max-width: 50%;
  }

  .search-form {
    grid-template-columns: 1fr 1fr;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1.3rem;
  }

  .section-title {
    font-size: 2.2rem;
  }
}

@media (max-width: 768px) {
  /* MENÚ HAMBURGUESA */
  .hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
  }

  .hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-white);
    border-radius: 3px;
    transition: all 0.3s ease;
  }

  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }

  .navbar-menu {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 100%;
    max-width: 300px;
    background: linear-gradient(135deg, var(--primary-celeste) 0%, var(--accent-dark) 100%);
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
    transition: right 0.3s ease;
    height: calc(100vh - 70px);
    overflow-y: auto;
  }

  .navbar-menu.active {
    right: 0;
  }

  .navbar-menu li {
    width: 100%;
    margin-bottom: 1rem;
  }

  .navbar-menu .btn {
    width: 100%;
    text-align: center;
  }

  /* HERO RESPONSIVE */
  .hero {
    min-height: 500px;
    padding: 1.5rem 15px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1.2rem;
  }

  .search-form {
    grid-template-columns: 1fr;
  }

  .search-box {
    padding: 1.5rem;
  }

  /* COLUMNAS RESPONSIVE */
  .col-4, .col-3 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  /* CARDS RESPONSIVE */
  .card-img-top {
    height: 180px;
  }

  .card-body {
    padding: 1rem;
  }

  .card-title {
    font-size: 1.2rem;
  }

  /* FOOTER RESPONSIVE */
  .footer {
    padding: 2rem 15px 1rem;
  }

  .footer .row {
    flex-direction: column;
  }

  .footer .col-3 {
    margin-bottom: 1.5rem;
  }

  /* SECTION TITLES */
  .section-title {
    font-size: 1.8rem;
  }

  .section-subtitle {
    font-size: 1rem;
  }

  /* FEATURE ICONS */
  .feature-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }

  .feature-item {
    padding: 1.5rem 0.5rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.6rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }

  .navbar-brand {
    font-size: 1.4rem;
  }

  .navbar-brand svg {
    width: 35px;
    height: 35px;
  }
}

/* ESTILOS PARA DESKTOP (hamburguesa oculta) */
@media (min-width: 769px) {
  .hamburger {
    display: none;
  }

  .navbar-menu {
    position: static;
    background: transparent;
    flex-direction: row;
    padding: 0;
    box-shadow: none;
    height: auto;
    max-width: none;
  }
}

  .hero p {
    font-size: 1.2rem;
  }

  .navbar-brand {
    font-size: 1.5rem;
  }

  .navbar-brand svg {
    width: 40px;
    height: 40px;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .col-4, .col-3 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .search-form {
    grid-template-columns: 1fr;
  }

  .search-box {
    padding: 1.5rem;
  }

  .card-title {
    font-size: 1.2rem;
  }

  .price {
    font-size: 1.3rem;
  }

  .feature-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }

  .footer {
    padding: 2rem 15px 1rem;
  }

  /* MenÃº hamburguesa para mÃ³vil */
  .navbar-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--primary-celeste) 0%, var(--accent-dark) 100%);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    max-height: calc(100vh - 70px);
    overflow-y: auto;
  }

  .navbar-menu.active {
    display: flex;
  }

  .navbar-menu li {
    width: 100%;
    text-align: center;
    padding: 0.5rem 0;
  }

  .navbar-menu .btn {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }

  .hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
  }

  .hamburger span {
    display: block;
    width: 30px;
    height: 3px;
    background: var(--primary-white);
    border-radius: 3px;
    transition: all 0.3s ease;
  }

  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
  }
}

@media (min-width: 769px) {
  .hamburger {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: 400px;
  }

  .hero h1 {
    font-size: 1.6rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .section-subtitle {
    font-size: 1rem;
  }

  .btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }

  .card-body {
    padding: 1rem;
  }

  .feature-item {
    padding: 1.5rem 0.5rem;
  }

  .navbar-brand span {
    font-size: 1.3rem;
  }

  .search-box {
    padding: 1rem;
  }

  .form-group label {
    font-size: 0.85rem;
  }

  .search-box input,
  .search-box select {
    padding: 0.6rem;
    font-size: 0.9rem;
  }
}

/* Estilos adicionales para tablas y formularios responsive */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.form-control {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--gray-medium);
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-celeste);
  box-shadow: 0 0 0 3px rgba(117, 170, 219, 0.1);
}

.img-responsive {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Utilidades responsive */
.d-none-mobile {
  display: block;
}

.d-block-mobile {
  display: none;
}

@media (max-width: 768px) {
  .d-none-mobile {
    display: none;
  }

  .d-block-mobile {
    display: block;
  }
}

/* Mejoras para el checkout en mÃ³vil */
@media (max-width: 992px) {
  .col-8, .col-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* Padding responsive para secciones */
@media (max-width: 768px) {
  .py-5 {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  .container {
    padding: 0 10px;
  }
}

/* Espaciado responsive */
.mb-3 {
  margin-bottom: 1rem;
}

.mb-4 {
  margin-bottom: 1.5rem;
}

.mt-3 {
  margin-top: 1rem;
}

@media (max-width: 768px) {
  .mb-3 {
    margin-bottom: 0.75rem;
  }

  .mb-4 {
    margin-bottom: 1rem;
  }
}

/* Text utilities responsive */
@media (max-width: 768px) {
  .text-center-mobile {
    text-align: center;
  }
}

/* Grid responsive para checkout y formularios */
@media (max-width: 768px) {
  .row.payment-row {
    flex-direction: column;
  }

  .payment-methods {
    flex-direction: column;
  }

  .payment-method-btn {
    width: 100%;
  }
}

/* ============================================
   ESTILOS ADICIONALES RESPONSIVE
   ============================================ */

/* Clases de ancho */
.w-100 { width: 100%; }
.w-75 { width: 75%; }
.w-50 { width: 50%; }

/* Clases de alineación */
.text-start { text-align: left; }
.text-end { text-align: right; }

/* Mejoras para inputs en móvil */
@media (max-width: 768px) {
  input, select, textarea {
    font-size: 16px !important; /* Prevenir zoom en iOS */
  }
  
  .btn-lg {
    width: 100%;
  }
}

/* Mejoras para cards en móvil */
@media (max-width: 768px) {
  .card {
    margin-bottom: 1rem;
  }
  
  .card-img-top {
    height: 180px;
  }
}

/* Optimización de imágenes */
img {
  max-width: 100%;
  height: auto;
}

/* Mejoras para texto en móvil */
@media (max-width: 768px) {
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }
  h4 { font-size: 1.1rem; }
  h5 { font-size: 1rem; }
  
  p { font-size: 0.95rem; }
}

/* Mejoras para footer en móvil */
@media (max-width: 768px) {
  .footer .col-3 {
    margin-bottom: 1.5rem;
  }
  
  .footer h5 {
    font-size: 1.1rem;
  }
}

/* Scroll horizontal prevention */
body {
  overflow-x: hidden;
}

/* Mejoras de touch para móvil */
@media (hover: none) and (pointer: coarse) {
  .btn,
  .nav-link,
  .card {
    -webkit-tap-highlight-color: rgba(117, 170, 219, 0.3);
  }
}

/* Espaciado para elementos en móvil */
@media (max-width: 768px) {
  .row {
    margin: 0 -10px;
  }
  
  .row > * {
    padding: 0 10px;
  }
}

/* Alert responsive */
.alert {
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.alert-danger {
  background: #ffe0e0;
  color: #c00;
  border: 1px solid #c00;
}

.alert-success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

@media (max-width: 768px) {
  .alert {
    padding: 0.75rem;
    font-size: 0.9rem;
  }
}

/* Lista sin estilos */
.list-unstyled {
  list-style: none;
  padding-left: 0;
}

/* Optimización de enlaces en móvil */
@media (max-width: 768px) {
  a {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
  }
}

/* Columnas responsive adicionales */
.col-6 {
  flex: 0 0 50%;
  max-width: 50%;
  padding: 0 15px;
}

.col-8 {
  flex: 0 0 66.666%;
  max-width: 66.666%;
  padding: 0 15px;
}

@media (max-width: 992px) {
  .col-6, .col-8 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* Mejoras para forms en checkout */
@media (max-width: 768px) {
  .payment-method-btn {
    padding: 0.75rem;
    font-size: 0.9rem;
  }
  
  .payment-icon {
    font-size: 1.5rem;
  }
  
  .card-logos img {
    height: 25px;
  }
}

/* Visibilidad condicional */
.visible-mobile {
  display: none;
}

@media (max-width: 768px) {
  .visible-mobile {
    display: block;
  }
  
  .hidden-mobile {
    display: none;
  }
}

/* Sticky elements en móvil */
@media (max-width: 768px) {
  .navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
  }
  
  main {
    padding-top: 70px;
  }
}

/* Loading spinner (opcional para futuras mejoras) */
.spinner {
  border: 3px solid var(--gray-medium);
  border-top: 3px solid var(--primary-celeste);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 20px auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
