/* ===== CSS ===== */

/* Reset */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: #1a1a1a;
  line-height: 1.6;
  letter-spacing: 0.02em;
  background: #f9fafb;
  padding-top: 70px; /* Espacio para el navbar fijo */
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #202123;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.navbar-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
}

.navbar-logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: opacity 0.3s;
}

.navbar-logo a:hover {
  opacity: 0.8;
}

.navbar-logo img {
  height: 50px;
  width: auto;
  object-fit: contain;
  cursor: pointer;
}

@media (max-width: 768px) {
  .navbar-logo img {
    height: 40px;
  }
}

.navbar-menu {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  margin: 0;
}

.navbar-menu li a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.3s;
  position: relative;
}

.navbar-menu li a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #d4a853;
  transition: width 0.3s;
}

.navbar-menu li a:hover {
  color: #d4a853;
}

.navbar-menu li a:hover::after {
  width: 100%;
}

/* Botón hamburguesa */
.navbar-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  gap: 5px;
}

.navbar-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: #fff;
  transition: all 0.3s;
  border-radius: 3px;
}

/* Navbar Responsive */
@media (max-width: 768px) {
  .navbar-toggle {
    display: flex;
  }

  .navbar-menu {
    position: fixed;
    top: 70px;
    right: -100%;
    flex-direction: column;
    background-color: #202123;
    width: 100%;
    max-width: 300px;
    padding: 2rem;
    gap: 1.5rem;
    transition: right 0.3s ease-in-out;
    box-shadow: -2px 0 10px rgba(0,0,0,0.2);
    height: calc(100vh - 70px);
  }

  .navbar-menu.active {
    right: 0;
  }

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

  .navbar-toggle.active span:nth-child(2) {
    opacity: 0;
  }

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

/* Utilities */
.container { max-width: 1200px; margin: 0 auto; }
.mx-auto { margin-left: auto; margin-right: auto; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.text-center { text-align: center; }
.hidden { display: none; }
.max-w-lg { max-width: 32rem; }
.mt-4 { margin-top: 1rem; }
.mb-8 { margin-bottom: 2rem; }

.grid { display: grid; }
.grid-cols { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-cols-1 { grid-template-columns: 1fr; }
.grid-cols-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.gap-8 { gap: 2rem; }

@media (max-width: 768px) {
  .grid-cols-2 { grid-template-columns: 1fr; }
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  background: linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.55)), url('img/backgroud.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  color: #fff;
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  margin-bottom: 2rem;
  opacity: 0.92;
}

/* Buttons */
.btn {
  display: inline-block;
  background: #d4a853;
  color: #fff;
  padding: 0.75rem 2rem;
  border-radius: 9999px;
  text-decoration: none;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

.btn:hover { background: #b8891f; transform: translateY(-2px); }

/* Sections */
.section { padding: 5rem 0; }
#servicios, #filosofia, #testimonios { background: #212026; }
#servicios .section-title, #testimonios .section-title, #filosofia .section-title { color: #d4a853; }
#filosofia .filosofia-text, #filosofia .filosofia-item-text { color: #fff; }
.section-alt { background: #f3f4f6; }

.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 2.5rem;
  text-transform: uppercase;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: #d4a853;
  margin: 0.5rem auto 0;
}

/* Cards */
.card {
  background: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}

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

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  padding: 1rem 1rem 0.25rem;
  text-transform: uppercase;
}

.card-text {
  padding: 0 1rem 1.25rem;
  color: #6b7280;
}

/* Filosofía Section */
.filosofia-layout {
  display: flex;
  gap: 3rem;
  align-items: start;
}

/* Collage Grid */
.filosofia-collage {
  flex: 0 0 45%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 0.5rem;
}

.collage-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  border-radius: 0.5rem;
  transition: filter 0.3s;
}

.collage-img:hover {
  filter: grayscale(0%);
}

.collage-item.large {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
}

/* Content */
.filosofia-content {
  flex: 1;
}

.filosofia-text {
  font-size: 1.125rem;
  color: #4b5563;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.filosofia-items {
  display: flex;
  gap: 1.5rem;
}

.filosofia-item {
  text-align: center;
  padding: 1.5rem;
}

.filosofia-item-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #d4a853;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.filosofia-item-text {
  color: #6b7280;
  font-size: 1rem;
  line-height: 1.6;
}

.mt-8 { margin-top: 2rem; }

@media (max-width: 768px) {
  .filosofia-layout {
    flex-direction: column;
  }
  .filosofia-collage {
    flex: 0 0 auto;
    width: 100%;
  }
  .filosofia-items {
    flex-direction: column;
  }
}

/* Testimonials */
.testimonial-card {
  background: #2d2c33;
  border-radius: 0.75rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.15);
  padding: 2rem;
  text-align: center;
  transition: transform 0.3s;
}

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

.testimonial-img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  display: block;
  filter: grayscale(100%);
  transition: filter 0.3s;
}

.testimonial-img:hover { filter: grayscale(0%); }

.testimonial-text {
  font-style: italic;
  color: #d1d5db;
  margin-bottom: 1rem;
}

.testimonial-author {
  font-weight: 600;
  color: #d4a853;
  text-align: center;
}

/* Contact Form */
.contact-section {
  background: linear-gradient(135deg, #1a191e 0%, #212026 50%, #1c1b22 100%);
  position: relative;
  overflow: hidden;
}

.contact-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(212, 168, 83, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.contact-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(212, 168, 83, 0.05) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.section-title-gold {
  color: #d4a853 !important;
}

.contact-subtitle {
  text-align: center;
  color: #9ca3af;
  font-size: 1.1rem;
  margin-bottom: 2rem;
  letter-spacing: 0.02em;
}

.contact-wrapper {
  max-width: 560px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(212, 168, 83, 0.15);
  border-radius: 1.25rem;
  padding: 2.5rem 2rem;
  position: relative;
  backdrop-filter: blur(10px);
}

.contact-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #d4a853, transparent);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  position: relative;
}

.form-group .form-label {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #6b7280;
  font-size: 1rem;
  pointer-events: none;
  transition: all 0.25s ease;
  background: transparent;
  padding: 0 0.25rem;
}

.form-group .form-textarea + .form-label,
.form-group .form-select-label {
  top: 1.25rem;
}

.form-group .form-input:focus + .form-label,
.form-group .form-input:not(:placeholder-shown) + .form-label,
.form-group .form-select + .form-label {
  top: 0;
  font-size: 0.75rem;
  color: #d4a853;
  background: #212026;
}

.form-input {
  padding: 0.85rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 2px solid rgba(212, 168, 83, 0.3);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-size: 1rem;
  transition: all 0.3s ease;
  font-family: inherit;
  width: 100%;
}

.form-input::placeholder { color: transparent; }

.form-input:focus {
  outline: none;
  border-color: #d4a853;
  background: rgba(212, 168, 83, 0.06);
  box-shadow: 0 4px 16px rgba(212, 168, 83, 0.1);
}

.form-select { cursor: pointer; color: #fff; }
.form-select option { background: #2d2c33; color: #fff; }

.form-textarea {
  min-height: 120px;
  resize: vertical;
  padding-top: 1.25rem;
}

.form-group .form-textarea + .form-label {
  top: 1.25rem;
}

.form-group .form-textarea:focus + .form-label,
.form-group .form-textarea:not(:placeholder-shown) + .form-label {
  top: 0;
  transform: translateY(0.25rem);
}

.btn-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  padding: 1rem 2rem;
  font-size: 1.05rem;
  border: none;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, #d4a853 0%, #b8891f 100%);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.03em;
  margin-top: 0.5rem;
}

.btn-submit:hover {
  background: linear-gradient(135deg, #e5c07b 0%, #d4a853 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212, 168, 83, 0.3);
}

.btn-submit:active {
  transform: translateY(0);
}

.btn-icon {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.btn-submit:hover .btn-icon {
  transform: translateX(4px);
}

.success-message {
  text-align: center;
  margin-top: 1rem;
  padding: 1rem;
  color: #10b981;
  font-weight: 600;
  font-size: 1rem;
  background: rgba(16, 185, 129, 0.08);
  border-radius: 0.5rem;
}

.error-message {
  text-align: center;
  margin-top: 1rem;
  padding: 1rem;
  color: #ef4444;
  font-weight: 600;
  font-size: 1rem;
  background: rgba(239, 68, 68, 0.08);
  border-radius: 0.5rem;
}

@media (max-width: 768px) {
  .contact-wrapper {
    padding: 2rem 1.25rem;
  }
}

/* Footer */
.footer {
  background: #1a191e;
  color: #fff;
  padding: 3rem 0 1.5rem;
  text-align: center;
}

.footer-logo {
  margin-bottom: 2rem;
}

.footer-logo img {
  height: 60px;
  width: auto;
  object-fit: contain;
  margin: 0 auto;
  display: block;
}

.footer-content {
  display: flex;
  justify-content: center;
  gap: 4rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

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

.footer-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #d4a853;
  letter-spacing: 0.05em;
}

.footer-link {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-link:hover { color: #d4a853; }

/* Social Icons */
.footer-social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(212, 168, 83, 0.3);
  color: #fff;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background: #d4a853;
  border-color: #d4a853;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(212, 168, 83, 0.3);
}

.footer-divider {
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 168, 83, 0.5), transparent);
  margin: 1.5rem auto;
}

@media (max-width: 768px) {
  .footer-content {
    gap: 2rem;
    flex-direction: column;
    align-items: center;
  }
}
