/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;800&family=Poppins:wght@300;400;500;600;700&display=swap');

/* Variables CSS - Paleta de colores tierra/piedra para CALIPEDRA */
:root {
  --primary-color: #A0926B;
  --primary-dark: #8B7355;
  --primary-light: #C4B896;
  --secondary-color: #2C2416;
  --accent-color: #D4A574;
  --light-bg: #f8f6f2;
  --text-color: #333;
  --border-radius: 12px;
  --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.15);
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  color: var(--text-color);
  line-height: 1.6;
  background-color: #fff;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  color: var(--secondary-color);
  font-weight: 700;
  line-height: 1.2;
}

h2 {
  font-size: 3rem;
  margin-bottom: 30px;
}

h3 {
  font-size: 2.2rem;
  margin-bottom: 20px;
}

p {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 15px;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

/* Buttons */
.btn-primary {
  display: inline-block;
  padding: 14px 40px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  font-weight: 600;
  text-transform: uppercase;
  border: 2px solid var(--primary-color);
  border-radius: 50px;
  font-size: 0.9rem;
  transition: var(--transition);
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(160, 146, 107, 0.3);
}

.btn-primary:hover {
  background: white;
  color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(160, 146, 107, 0.4);
}

.btn-secondary {
  background: var(--secondary-color);
  border-color: var(--secondary-color);
  box-shadow: 0 4px 10px rgba(44, 36, 22, 0.2);
}

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

/* Header Mejorado */
header {
  background: linear-gradient(135deg, #8B7355, #A0926B);
  position: relative;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

header.scroll-header {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-brand h1 {
  color: white;
  font-size: 1.8rem;
  margin: 0;
  font-weight: 800;
  letter-spacing: -1px;
}

.nav-brand span {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.8);
  font-weight: 600;
  display: block;
}

/* Navegación */
nav ul {
  list-style: none;
  display: flex;
  gap: 0;
}

nav ul li a {
  display: block;
  padding: 25px 20px;
  color: white;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
  position: relative;
  transition: var(--transition);
}

nav ul li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: white;
  transition: var(--transition);
}

nav ul li a:hover::after,
nav ul li a.active::after {
  width: 100%;
}

nav ul li a:hover {
  background: rgba(255,255,255,0.1);
}

/* Hero Section */
.hero {
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  color: white;
  text-align: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.hero > * {
  position: relative;
  z-index: 2;
}

.hero h2 {
  color: white;
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 20px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  letter-spacing: -1px;
}

.hero p {
  color: rgba(255,255,255,0.95);
  font-size: 1.3rem;
  max-width: 600px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.btn-group {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 30px;
}

.btn-group .btn-primary,
.btn-group .btn-secondary {
  padding: 15px 35px;
  font-size: 1rem;
}

/* Secciones */
section {
  padding: 80px 0;
  position: relative;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  position: relative;
  display: inline-block;
  font-size: 3rem;
  margin-bottom: 15px;
}

.section-title h2 span {
  color: var(--primary-color);
}

.section-title p {
  font-size: 1.1rem;
  color: #666;
  margin: 0;
  max-width: 600px;
  margin: 0 auto;
}

/* Cards */
.card {
  background: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

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

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

.card-img img {
  width: 100%;
  height: 100%;
  transition: var(--transition);
}

.card:hover .card-img img {
  transform: scale(1.08);
}

.card-body {
  padding: 25px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-title {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: 700;
}

.card-text {
  color: #666;
  font-size: 0.95rem;
  margin-bottom: auto;
  line-height: 1.6;
}

.card-list {
  list-style: none;
  margin-top: 15px;
}

.card-list li {
  padding: 8px 0;
  color: #666;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-list li::before {
  content: '✓';
  color: var(--primary-color);
  font-weight: 700;
}

/* Beneficios */
.benefits {
  background: linear-gradient(135deg, #f8f6f2, #e8e4dc);
  border-radius: var(--border-radius);
  padding: 40px;
  border-left: 5px solid var(--primary-color);
}

.benefit-item {
  display: flex;
  gap: 20px;
  margin-bottom: 25px;
}

.benefit-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  min-width: 50px;
  text-align: center;
}

.benefit-content h4 {
  font-size: 1.2rem;
  color: var(--secondary-color);
  margin-bottom: 8px;
  margin-top: 0;
}

.benefit-content p {
  color: #666;
  margin: 0;
  font-size: 0.95rem;
}

/* Galería */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.gallery-item:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-8px);
}

.gallery-item img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: var(--transition);
  display: block;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(160, 146, 107, 0.9);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: var(--transition);
  padding: 20px;
  text-align: center;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay h4 {
  color: white;
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.gallery-overlay p {
  color: rgba(255,255,255,0.9);
  font-size: 0.9rem;
  margin: 0;
}

/* Testimonios */
.testimonial {
  background: white;
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
  border-left: 4px solid var(--primary-color);
}

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

.rating {
  color: #ffc107;
  font-size: 1.1rem;
  margin-bottom: 15px;
}

.testimonial p {
  font-style: italic;
  color: #666;
  margin-bottom: 20px;
  line-height: 1.8;
}

.author {
  display: flex;
  align-items: center;
  gap: 15px;
}

.author-avatar {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.3rem;
}

.author-name {
  font-weight: 700;
  color: var(--secondary-color);
  margin: 0;
}

.author-location {
  color: #999;
  font-size: 0.9rem;
  margin: 0;
}

/* Formulario */
.form-group {
  margin-bottom: 20px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px;
  border: 2px solid #e0e0e0;
  border-radius: var(--border-radius);
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(160, 146, 107, 0.1);
}

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

/* FAQ */
.faq-item {
  background: white;
  padding: 25px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  transition: var(--transition);
}

.faq-item:hover {
  box-shadow: var(--shadow-lg);
}

.faq-item summary {
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--secondary-color);
  transition: var(--transition);
  user-select: none;
}

.faq-item summary:hover {
  color: var(--primary-color);
}

.faq-item p {
  margin-top: 15px;
  margin-bottom: 0;
  color: #666;
  font-size: 0.95rem;
  line-height: 1.8;
}

/* Footer */
footer {
  background: linear-gradient(135deg, #5C4A32, #8B7355);
  color: white;
  padding: 40px 0 20px;
}

footer h4 {
  color: white;
  font-size: 1.2rem;
  margin-bottom: 20px;
}

footer p {
  color: rgba(255,255,255,0.8);
  margin-bottom: 10px;
  font-size: 0.95rem;
}

footer a {
  color: var(--primary-light);
  font-weight: 600;
}

footer a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 25px;
  text-align: center;
  margin-top: 25px;
  color: rgba(255,255,255,0.6);
}

/* Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

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

.mb-4 {
  margin-bottom: 20px;
}

.mb-6 {
  margin-bottom: 30px;
}

.mb-12 {
  margin-bottom: 60px;
}

/* Grid */
.grid {
  display: grid;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* Responsive */
@media (max-width: 768px) {
  h2 {
    font-size: 2rem;
  }

  h3 {
    font-size: 1.6rem;
  }

  .hero h2 {
    font-size: 2.2rem;
  }

  .section-title h2 {
    font-size: 2rem;
  }

  nav ul {
    flex-wrap: wrap;
    gap: 5px;
  }

  nav ul li a {
    padding: 15px 12px;
    font-size: 0.8rem;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  section {
    padding: 60px 0;
  }

  .benefit-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .btn-group {
    flex-direction: column;
    align-items: center;
  }

  .btn-group .btn-primary,
  .btn-group .btn-secondary {
    width: 100%;
    max-width: 300px;
  }
}

@media (max-width: 480px) {
  .hero h2 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  nav ul {
    flex-direction: column;
  }

  nav ul li a {
    padding: 12px 10px;
  }

  section {
    padding: 40px 0;
  }
}

/* Animaciones */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeInUp 0.6s ease-out;
}

/* Estilos especiales */
.highlight {
  color: var(--primary-color);
  font-weight: 700;
}

.badge {
  display: inline-block;
  background: var(--primary-color);
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}