/* ============================================================
   ESTILOS MODERNOS - MIGRADOS DESDE ANGULAR
   ============================================================ */

/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: linear-gradient(135deg, #1e1e2e 0%, #0f0f1e 100%);
  color: #fff;
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: #1e1e2e;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 6px;
  border: 2px solid #1e1e2e;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #764ba2, #667eea);
}

/* Selection Style */
::selection {
  background: rgba(102, 126, 234, 0.5);
  color: white;
}

::-moz-selection {
  background: rgba(102, 126, 234, 0.5);
  color: white;
}

/* Smooth Scroll */
html {
  scroll-behavior: smooth;
}

/* Focus Visible */
*:focus-visible {
  outline: 2px solid #667eea;
  outline-offset: 2px;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Utility Classes */
.text-gradient {
  background: linear-gradient(45deg, #fff, #667eea);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glass-effect {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.shadow-glow {
  box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
}

/* Loading Animation */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 0.8s linear infinite;
}

/* ============================================================
   NAVBAR STYLES
   ============================================================ */

.navbar {
  font-size: 0.95rem;
  background: rgba(15, 15, 30, 0.95) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.8rem 1.5rem;
}

.navbar-brand {
  font-size: 1.6rem !important;
  font-weight: 800 !important;
  background: linear-gradient(45deg, #fff, #667eea);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.navbar-brand::before {
  content: '📸';
  font-size: 2rem;
  filter: grayscale(0);
}

.navbar-brand:hover {
  transform: scale(1.05);
  filter: brightness(1.2);
}

.navbar-nav {
  gap: 10px;
}

.navbar-nav .nav-link {
  position: relative;
  padding: 8px 18px !important;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 500;
  transition: all 0.3s;
  color: rgba(255, 255, 255, 0.85) !important;
}

.navbar-nav .nav-link::after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #667eea, #764ba2);
  transition: width 0.3s;
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  background: rgba(102, 126, 234, 0.15);
  color: white !important;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  width: 60%;
}

.navbar-toggler {
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 8px 12px;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
}

/* ============================================================
   HOME PAGE STYLES
   ============================================================ */

.home-container {
  display: block;
  position: relative;
  min-height: calc(100vh - 56px);
  margin-top: 56px;
  overflow: hidden;
}

#carouselBackground {
  position: fixed;
  top: 56px;
  left: 0;
  width: 100%;
  height: calc(100vh - 56px);
  z-index: -2;
  overflow: hidden;
}

#carouselBackground .carousel-inner,
#carouselBackground .carousel-item {
  height: 100%;
  width: 100%;
}

#carouselBackground .carousel-item img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  filter: brightness(0.9) contrast(1.1);
  transition: transform 8s ease-in-out;
}

/* Efecto Ken Burns - zoom suave en las imágenes */
#carouselBackground .carousel-item.active img {
  animation: kenBurns 14s ease-in-out infinite alternate;
}

@keyframes kenBurns {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.43);
  }
}

/* Transición fade entre imágenes */
#carouselBackground.carousel-fade .carousel-item {
  opacity: 0;
  transition: opacity 2s ease-in-out;
}

#carouselBackground.carousel-fade .carousel-item.active {
  opacity: 1;
}

.hero-overlay {
  position: fixed;
  top: 56px;
  left: 0;
  width: 100%;
  height: calc(100vh - 56px);
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.2) 100%);
  z-index: -1;
}

.carousel-caption-container {
  position: relative;
  z-index: 1;
  padding: 40px 40px 60px;
  color: white;
  max-width: 1200px;
  margin: 0 auto;
  min-height: calc(100vh - 156px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.animate-fade-in {
  animation: fadeInUp 1s ease-out;
}

.hero-badge {
  display: inline-block;
  padding: 8px 20px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  font-size: 1.05rem;
  font-weight: 500;
  margin-bottom: 30px;
  backdrop-filter: blur(10px);
  letter-spacing: 0.5px;
}

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
  letter-spacing: -1px;
}

.hero-subtitle {
  display: block;
  font-size: 3rem;
  background: linear-gradient(45deg, #fff, #ffd700);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.4rem;
  line-height: 1.8;
  margin-bottom: 40px;
  max-width: 700px;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
  font-weight: 300;
}

.hero-features {
  display: flex;
  gap: 30px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s;
}

.feature-item:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.feature-icon {
  font-size: 1.8rem;
}

.feature-text {
  font-size: 1.15rem;
  font-weight: 500;
}

.hero-actions {
  display: flex;
  gap: 20px;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

.hero-actions .btn {
  padding: 18px 40px;
  font-size: 1.2rem;
  font-weight: 600;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.hero-actions .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.btn-primary-custom {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.btn-primary-custom:hover {
  color: white;
}

.btn-primary-custom .arrow {
  transition: transform 0.3s;
}

.btn-primary-custom:hover .arrow {
  transform: translateX(5px);
}

.btn-secondary-custom {
  background: rgba(255, 255, 255, 0.95);
  color: #333;
}

.btn-secondary-custom:hover {
  background: white;
  color: #000;
}

.hero-stats {
  display: flex;
  gap: 60px;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  flex-wrap: wrap;
}

.stat-item {
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: #ffd700;
  line-height: 1;
  margin-bottom: 8px;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8);
}

.stat-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.scroll-indicator {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  z-index: 10;
  animation: bounce 2s infinite;
}

.scroll-arrow {
  font-size: 1.5rem;
  margin-top: 5px;
}

.glosa {
  position: fixed;
  bottom: 10px;
  right: 10px;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 10px;
  border-radius: 5px;
  color: white;
  font-size: 10px;
  z-index: 1000;
}

.glosa p {
  margin: 0;
}

/* ============================================================
   GALLERY PAGE STYLES
   ============================================================ */

.gallery-page {
  display: block;
  background: linear-gradient(135deg, #1e1e2e 0%, #0f0f1e 100%);
  color: white;
  min-height: 100vh;
  padding-top: 56px;
}

.gallery-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 60px 40px;
}

.gallery-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 60px;
  flex-wrap: wrap;
  gap: 20px;
}

.gallery-title {
  font-size: 3rem;
  font-weight: 800;
  margin: 0 0 10px 0;
  background: linear-gradient(45deg, #fff, #667eea);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gallery-subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  font-weight: 300;
}

.back-button {
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(10px);
  text-decoration: none;
}

.back-button:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateX(-5px);
  box-shadow: 0 5px 20px rgba(102, 126, 234, 0.3);
  color: white;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
}

.category-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.4s;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.category-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(102, 126, 234, 0.4);
  border-color: rgba(102, 126, 234, 0.5);
}

.category-card:hover .category-image {
  transform: scale(1.1);
}

.category-card:hover .category-overlay {
  opacity: 1;
}

.category-link {
  text-decoration: none;
  color: white;
  display: block;
}

.category-image-wrapper {
  position: relative;
  width: 100%;
  height: 280px;
  overflow: hidden;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.category-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
}

.category-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s;
}

.view-more {
  font-size: 1.2rem;
  font-weight: 600;
  padding: 15px 30px;
  background: white;
  color: #333;
  border-radius: 50px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.category-info {
  padding: 25px;
}

.category-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 8px 0;
  color: white;
}

.category-count {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 400;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.category-count::before {
  content: '📸';
}

/* ============================================================
   CONTACT PAGE STYLES
   ============================================================ */

.contact-page {
  max-width: 1400px;
  margin: 0 auto;
  background: linear-gradient(135deg, #1e1e2e 0%, #0f0f1e 100%);
  color: white;
  min-height: 100vh;
  padding-top: 56px;
}

.contact-hero {
  text-align: center;
  padding: 60px 40px 40px;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

.contact-hero .back-button {
  position: absolute;
  top: 20px;
  left: 20px;
}

.icon-wrapper {
  margin-bottom: 20px;
}

.contact-icon {
  font-size: 3rem;
  display: inline-block;
  animation: float 3s ease-in-out infinite;
}

.contact-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin: 0 0 15px 0;
  background: linear-gradient(45deg, #fff, #667eea);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contact-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  font-weight: 300;
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 40px;
  padding: 60px 40px;
  align-items: start;
}

.form-section {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 40px;
  backdrop-filter: blur(10px);
}

.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.contact-form .form-group {
  margin-bottom: 20px;
}

.contact-form .form-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-weight: 600;
  font-size: 0.9rem;
}

.label-icon {
  font-size: 1rem;
}

.label-text {
  flex: 1;
}

.required {
  color: #ff6b6b;
  font-size: 0.9rem;
}

.contact-form .form-control {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  transition: all 0.3s;
  font-family: inherit;
}

.contact-form .form-control::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.contact-form .form-control:focus {
  outline: none;
  border-color: #667eea;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.contact-form .form-control:hover {
  border-color: rgba(255, 255, 255, 0.3);
}

.contact-form select.form-control {
  cursor: pointer;
  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='%23ffffff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  padding-right: 40px;
}

.contact-form select.form-control option {
  background: #1e1e2e;
  color: white;
  padding: 10px;
}

.contact-form textarea.form-control {
  resize: vertical;
  min-height: 120px;
  font-family: inherit;
}

.error-message {
  color: #ff6b6b;
  font-size: 0.875rem;
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 5px;
  animation: shake 0.5s;
}

.btn-submit {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.btn-submit .send-icon {
  transition: transform 0.3s;
}

.btn-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(102, 126, 234, 0.4);
}

.btn-submit:hover:not(:disabled) .send-icon {
  transform: translateX(5px);
}

.btn-submit:disabled {
  background: rgba(108, 117, 125, 0.5);
  cursor: not-allowed;
  box-shadow: none;
}

.spinner {
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.alert {
  margin-top: 25px;
  padding: 18px 24px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  animation: slideIn 0.4s;
}

.alert-icon {
  font-size: 1.5rem;
}

.alert-success {
  background: rgba(72, 187, 120, 0.15);
  color: #68d391;
  border: 2px solid rgba(72, 187, 120, 0.3);
}

.alert-danger {
  background: rgba(245, 101, 101, 0.15);
  color: #fc8181;
  border: 2px solid rgba(245, 101, 101, 0.3);
}

.info-section {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.info-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.info-header {
  padding: 25px;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.info-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
}

.info-content {
  padding: 25px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.info-item {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.info-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.info-details {
  flex: 1;
}

.info-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.info-value {
  font-size: 1.05rem;
  font-weight: 500;
  color: white;
}

.cta-card {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
  border: 1px solid rgba(102, 126, 234, 0.3);
  border-radius: 20px;
  padding: 30px;
  text-align: center;
  backdrop-filter: blur(10px);
}

.cta-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 10px 0;
  background: linear-gradient(45deg, #fff, #667eea);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cta-card p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 20px 0;
  line-height: 1.6;
}

.features {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature {
  padding: 12px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  font-size: 0.95rem;
  text-align: left;
  color: rgba(255, 255, 255, 0.9);
}

/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */

@media (max-width: 1024px) {
  .contact-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 14px;
  }

  .hero-title {
    font-size: 3rem;
  }

  .hero-subtitle {
    font-size: 2.2rem;
  }

  .contact-form .form-row {
    grid-template-columns: 1fr;
  }

  .categories-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 13px;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 2rem;
  }

  .carousel-caption-container {
    padding: 20px;
  }
}
