/*
Theme Name: Boys Barber Spa
Theme URI: https://boysbarber.com/
Author: Ricardo MB
Description: creacion de Boys Barber Spa.
Version: 2.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: boys-barber
*/

:root {
  --primary-color: #d4af37; /* Gold */
  --secondary-color: #1a1a1a; /* Dark gray */
  --bg-dark: #0a0a0a; /* Black background */
  --text-light: #f4f4f4;
  --text-muted: #a0a0a0;
  --white: #ffffff;
  --gold-gradient: linear-gradient(
    135deg,
    #d4af37 0%,
    #f9e27d 50%,
    #b8860b 100%
  );
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.5);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Outfit", sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
.title {
  font-family: "Playfair Display", serif;
  letter-spacing: 1px;
}

ul {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- WP Admin Bar Fix --- */
body.admin-bar header {
  top: 32px;
}
@media screen and (max-width: 782px) {
  body.admin-bar header {
    top: 46px;
  }
}

/* --- Buttons --- */
.btn-primary {
  display: inline-block;
  padding: 12px 30px;
  background: var(--gold-gradient);
  color: black;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.9rem;
  border-radius: 2px;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

.btn-secondary {
  display: inline-block;
  padding: 12px 30px;
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.9rem;
  border-radius: 2px;
}

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

/* --- Header --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.1);
  transition: var(--transition);
}

header.scrolled {
  padding: 10px 0;
  background: rgba(0, 0, 0, 0.95);
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
}

.logo img {
  height: 60px;
  width: auto;
  filter: brightness(1.2);
}

nav ul {
  display: flex;
  gap: 30px;
}

nav ul li a {
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
}

nav ul li a:hover {
  color: var(--primary-color);
}

.mobile-menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--primary-color);
}

/* --- Hero --- */
.hero {
  height: 100vh;
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-bg-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-bg-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero-bg-slide.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0.4) 50%,
    rgba(0, 0, 0, 0.9) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 20px;
}

.hero-subtitle {
  color: var(--primary-color);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 5px;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.hero-title {
  font-size: 5rem;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.1;
}

.hero-title span {
  color: transparent;
  -webkit-text-stroke: 1px var(--white);
}

.hero-description {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-btns {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
}

.mouse {
  width: 25px;
  height: 40px;
  border: 2px solid var(--text-muted);
  border-radius: 15px;
  position: relative;
}

.mouse::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--primary-color);
  border-radius: 2px;
  animation: scroll 1.5s infinite;
}

@keyframes scroll {
  0% { transform: translate(-50%, 0); opacity: 1; }
  100% { transform: translate(-50%, 15px); opacity: 0; }
}

/* --- Section Headers --- */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header .subtitle {
  display: block;
  color: var(--primary-color);
  font-weight: 700;
  letter-spacing: 4px;
  margin-bottom: 10px;
}

.section-header .title {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.section-header .underline {
  width: 60px;
  height: 3px;
  background: var(--primary-color);
  margin: 0 auto;
}

/* --- About Section --- */
.about {
    padding: 100px 0;
    background-color: #0c0c0c;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.rating-badge {
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid var(--primary-color);
    padding: 15px 25px;
    border-radius: 5px;
    display: inline-flex;
    flex-direction: column;
    margin-bottom: 30px;
}

.rating-badge .score {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.rating-badge .stars {
    color: var(--primary-color);
    margin: 5px 0;
}

.status-indicator {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-indicator.open { color: #2ecc71; }
.status-indicator.closed { color: #e74c3c; }

.about-text {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.about-text.highlight {
    color: var(--white);
    font-style: italic;
    border-left: 3px solid var(--primary-color);
    padding-left: 20px;
}

.amenities {
    margin-top: 40px;
}

.amenities h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    color: var(--primary-color);
}

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

.amenities-grid span {
    font-size: 0.9rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 10px;
}

.amenities-grid i {
    color: var(--primary-color);
}

.about-image img {
    width: 100%;
    border-radius: 5px;
    box-shadow: var(--shadow-lg);
    filter: sepia(0.2) brightness(0.8);
}

@media (max-width: 992px) {
    .about-grid { grid-template-columns: 1fr; }
}

/* --- Services --- */
.services {
  padding: 100px 0;
  background-color: var(--bg-dark);
}

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

.service-category {
  background: var(--secondary-color);
  padding: 0 0 30px 0;
  border-radius: 5px;
  overflow: hidden;
  transition: var(--transition);
}

.service-category:hover {
  transform: translateY(-10px);
}

.category-img-container {
  position: relative;
  height: 250px;
}

.category-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-overlay h3 {
  color: var(--white);
  font-size: 1.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}


.service-list {
  padding: 20px;
}

.service-item {
  display: flex;
  justify-content: space-between;
  padding: 15px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.service-item .name { font-weight: 600; }
.service-item .price { color: var(--primary-color); font-weight: 700; }

.view-all {
  display: block;
  text-align: center;
  margin-top: 20px;
  color: var(--primary-color);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
}

/* --- Clients Section --- */
.clients {
    padding: 100px 0;
    background-color: #111;
}

.clients-carousel-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
}

.clients-carousel-wrapper {
    overflow: hidden;
    width: 100%;
}

.clients-gallery {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: max-content;
    gap: 20px;
}

.client-card {
    position: relative;
    width: 300px;
    flex: 0 0 300px;
    height: 400px;
    overflow: hidden;
    border-radius: 5px;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
}

.client-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: #000;
    transition: var(--transition);
}

@media (max-width: 768px) {
    .client-card {
        width: 260px;
        flex: 0 0 260px;
        height: 350px;
    }
    .client-card img {
        object-fit: contain;
    }
}


.client-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    transform: translateY(100%);
    transition: var(--transition);
}

.client-card:hover img { transform: scale(1.1); }
.client-card:hover .client-overlay { transform: translateY(0); }

.client-overlay p {
    color: var(--primary-color);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.carousel-btn {
    background: rgba(26, 26, 26, 0.8);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    flex-shrink: 0;
}

.carousel-btn:hover {
    background: var(--primary-color);
    color: black;
    transform: scale(1.1);
}

.upload-cta {
    text-align: center;
    background: var(--secondary-color);
    padding: 40px;
    border-radius: 5px;
    border: 1px dashed var(--primary-color);
}

/* --- Team --- */
.team {
  padding: 100px 0;
  background-color: #111;
}

.team-carousel-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.team-carousel-wrapper {
    overflow: hidden;
    width: 100%;
}

.team-gallery {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: max-content;
    gap: 20px;
}

.team-card-wrapper {
    width: 300px;
    flex: 0 0 300px;
}

.team-card {
  text-align: center;
  transition: var(--transition);
  height: 100%;
}

.team-img {
  width: 100%;
  height: 400px;
  overflow: hidden;
  margin-bottom: 20px;
  border-radius: 5px;
  position: relative;
  object-fit: cover;
  background-color: #000;
}

@media (max-width: 768px) {
    .team-card-wrapper {
        width: 260px;
        flex: 0 0 260px;
    }
    .team-img {
        height: 320px;
        object-fit: contain;
    }
}


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

.team-info {
  padding: 10px;
}

.team-info h4 { font-size: 1.5rem; color: var(--primary-color); margin-bottom: 5px; }
.team-info p { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 2px; color: var(--text-muted); }

/* --- Footer --- */
footer {
  padding: 80px 0 20px 0;
  background: #000;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 60px;
  padding: 0 20px;
}

.footer-about img { height: 80px; margin-bottom: 20px; }
.footer-about p { color: var(--text-muted); margin-bottom: 25px; }

.social-links { display: flex; gap: 15px; }
.social-links a {
  width: 40px; height: 40px;
  background: var(--secondary-color);
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; color: var(--primary-color);
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.social-links a:hover { background: var(--primary-color); color: black; }

.footer-links h3, .footer-contact h3 {
  font-size: 1.2rem; margin-bottom: 25px;
  color: var(--white); text-transform: uppercase;
}

.footer-links ul li { margin-bottom: 12px; }
.footer-links ul li a:hover { color: var(--primary-color); padding-left: 5px; }

.footer-contact p { margin-bottom: 15px; color: var(--text-muted); }
.footer-contact i { color: var(--primary-color); margin-right: 10px; }

.footer-bottom {
  text-align: center; margin-top: 60px; padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-muted); font-size: 0.8rem;
}

/* --- Mobile Nav --- */
.mobile-nav-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: var(--bg-dark); z-index: 2000;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  transform: translateX(100%); transition: var(--transition);
}

.mobile-nav-overlay.active { transform: translateX(0); }
.mobile-nav-overlay .close-btn { position: absolute; top: 30px; right: 30px; font-size: 2rem; color: var(--primary-color); cursor: pointer; }
.mobile-nav-overlay ul { text-align: center; }
.mobile-nav-overlay ul li { margin: 20px 0; }
.mobile-nav-overlay ul li a { font-size: 1.5rem; font-weight: 700; text-transform: uppercase; }

/* --- Entry Popup Styles --- */
.entry-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    backdrop-filter: blur(8px);
}

.entry-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.entry-popup-content {
    background: #1a1a1a;
    border: 1px solid #c5a059;
    max-width: 900px;
    width: 95%;
    max-height: 90vh;
    position: relative;
    border-radius: 12px;
    overflow-y: auto;
    overflow-x: hidden;
    transform: scale(0.8);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 30px 60px rgba(0,0,0,0.8);
}

@media (max-width: 768px) {
    .entry-popup-content {
        width: 90%;
        margin: 20px;
    }
}

.entry-popup-overlay.active .entry-popup-content {
    transform: scale(1);
}

.entry-popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    color: #fff;
    cursor: pointer;
    z-index: 10;
    transition: color 0.3s;
    line-height: 1;
}

.entry-popup-close:hover {
    color: #c5a059;
}

.entry-popup-inner {
    display: flex;
    flex-direction: row;
}

@media (max-width: 768px) {
    .entry-popup-inner {
        flex-direction: column;
    }
}

.entry-popup-image {
    flex: 1.2;
    min-width: 300px;
    height: 500px;
    background: #000;
    position: relative;
    overflow: hidden;
}

@media (max-width: 768px) {
    .entry-popup-image {
        min-width: 100%;
        height: auto;
        aspect-ratio: 4 / 3;
        max-height: 350px;
    }
}

.popup-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

@media (max-width: 768px) {
    .popup-slide {
        background-size: contain;
    }
}

.popup-slide.active {
    opacity: 1;
}

.entry-popup-info {
    flex: 1;
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a1a 0%, #252525 100%);
}

@media (max-width: 768px) {
    .entry-popup-info {
        padding: 30px 20px;
        text-align: center;
    }
}

.entry-popup-info h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.entry-popup-info p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #ccc;
}
.entry-popup-info .btn-primary {
    align-self: flex-start;
    padding: 15px 40px;
}

@media (max-width: 768px) {
    .entry-popup-info .btn-primary {
        align-self: center;
    }
}

@media (max-width: 768px) {
    .entry-popup-inner {
        flex-direction: column;
    }
    .entry-popup-image {
        max-height: 250px;
    }
    .entry-popup-info {
        padding: 30px 20px;
    }
    .entry-popup-info h2 {
        font-size: 1.8rem;
    }
}
/* --- Media Queries --- */
@media (max-width: 1024px) {
  .hero-title { font-size: 4rem; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  #desktop-nav, .cta-header { display: none; }
  .mobile-menu-toggle { display: block; }
  .hero-subtitle { font-size: 1rem; letter-spacing: 3px; }
  .hero-title { font-size: 2.5rem; }
  .hero-description { font-size: 1rem; }
  .footer-container { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .social-links { justify-content: center; }
  .services-grid { grid-template-columns: 1fr; gap: 20px; }
  .category-img-container { height: 180px; }
  .about-grid { gap: 30px; }
  .section-header .title { font-size: 2rem; }
}


/* --- Client Modal --- */
.client-modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.95); z-index: 3000; display: none;
    align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s ease;
}

.client-modal-overlay.active { display: flex; opacity: 1; }
.client-modal-content {
    background: #1a1a1a; max-width: 900px; width: 90%; border-radius: 5px;
    overflow: hidden; display: flex; flex-direction: column; position: relative;
    box-shadow: 0 0 50px rgba(212, 175, 55, 0.3); border: 1px solid var(--primary-color); max-height: 90vh;
}

.client-modal-close { position: absolute; top: 15px; right: 20px; color: var(--white); font-size: 2rem; cursor: pointer; z-index: 10; text-shadow: 0 0 10px black; }
.client-modal-close:hover { color: var(--primary-color); }
.client-modal-body { display: flex; flex-direction: column; overflow-y: auto; }
.client-modal-img { width: 100%; height: auto; max-height: 70vh; object-fit: contain; background: black; }
.client-modal-info { padding: 30px; text-align: center; }
.client-modal-info h3 { color: var(--primary-color); margin-bottom: 15px; font-size: 1.5rem; text-transform: uppercase; }
.client-modal-info p { color: var(--text-light); font-size: 1.1rem; line-height: 1.6; }

@media (min-width: 768px) {
    .client-modal-content { flex-direction: row; align-items: center; max-height: 80vh; }
    .client-modal-img { width: 60%; height: 100%; object-fit: cover; max-height: none; }
    .client-modal-info { width: 40%; text-align: left; padding: 40px; }
}
/* --- Blog Page Styles --- */
.blog-header {
    padding: 120px 20px 60px;
    text-align: center;
    background: #000;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto 100px;
    padding: 0 20px;
}

.blog-card {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 5px;
    cursor: pointer;
}

.blog-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    transition: background 0.3s;
}

.blog-date {
    color: var(--primary-color);
    font-size: 0.8rem;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}

.blog-title {
    color: #fff;
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    line-height: 1.2;
    margin-bottom: 0;
    transition: color 0.3s;
}

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

.blog-card:hover .blog-title {
    color: var(--primary-color);
}

/* --- Blog Modal --- */
.blog-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.98);
    z-index: 4000;
    display: none;
    overflow-y: auto;
}

.blog-modal.active {
    display: block;
}

.blog-modal-content {
    max-width: 800px;
    margin: 60px auto;
    padding: 20px;
    color: #e0e0e0;
}

.blog-modal-img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 30px;
}

.blog-modal-close {
    position: fixed;
    top: 30px;
    right: 30px;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    z-index: 4001;
}

.blog-modal-close:hover {
    color: var(--primary-color);
}

.blog-content-text {
    font-size: 1.1rem;
    line-height: 1.8;
    white-space: pre-wrap;
}

/* --- Empty State --- */
.empty-blog {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px;
    color: #666;
    border: 1px dashed #333;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .blog-header {
        padding: 100px 20px 40px;
    }
    .blog-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
        margin-bottom: 60px;
    }
    .blog-title {
        font-size: 1.2rem;
    }
    .blog-overlay {
        padding: 20px;
    }
    .blog-modal-content {
        margin: 40px auto;
        padding: 15px;
    }
    .blog-modal-close {
        top: 20px;
        right: 20px;
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
}
/* --- Privacy Modal --- */
.privacy-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.privacy-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.privacy-modal-content {
    background: #111;
    max-width: 800px;
    width: 90%;
    max-height: 85vh;
    border-radius: 12px;
    border: 1px solid var(--primary-color);
    overflow-y: auto;
    position: relative;
    padding: 40px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
}

.privacy-modal-content h2 {
    color: var(--primary-color);
    margin-bottom: 25px;
    font-size: 2rem;
    text-align: center;
    text-transform: uppercase;
    font-family: 'Playfair Display', serif;
}

.privacy-text-content {
    color: #ccc;
    line-height: 1.8;
    font-size: 1rem;
    white-space: pre-wrap;
}

.privacy-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.5rem;
    color: #fff;
    cursor: pointer;
    transition: var(--transition);
}

.privacy-modal-close:hover {
    color: var(--primary-color);
    transform: rotate(90deg);
}

@media (max-width: 768px) {
    .privacy-modal-content {
        padding: 30px 20px;
    }
}

/* --- Floating Contact Button & Modal --- */
.floating-contact-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    cursor: pointer;
    z-index: 9999;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.floating-contact-btn:hover {
    transform: scale(1.1);
}

.contact-form-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    backdrop-filter: blur(8px);
}

.contact-form-modal.active {
    opacity: 1;
    visibility: visible;
}

.contact-form-content {
    background: #1a1a1a;
    border: 1px solid var(--primary-color);
    width: 90%;
    max-width: 450px;
    padding: 40px;
    border-radius: 12px;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.contact-form-modal.active .contact-form-content {
    transform: translateY(0);
}

.contact-form-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    color: #fff;
    cursor: pointer;
}

.contact-form-header {
    text-align: center;
    margin-bottom: 30px;
}

.contact-form-header h2 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.contact-form-header p {
    color: #ccc;
    font-size: 0.9rem;
}

.contact-form-modal .form-group {
    margin-bottom: 20px;
}

.contact-form-modal label {
    display: block;
    color: #fff;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.contact-form-modal input,
.contact-form-modal textarea {
    width: 100%;
    padding: 12px;
    background: #222;
    border: 1px solid #333;
    color: #fff;
    border-radius: 5px;
    outline: none;
    font-family: inherit;
}

.contact-form-modal textarea {
    height: 100px;
    resize: vertical;
}

.contact-form-modal input:focus,
.contact-form-modal textarea:focus {
    border-color: var(--primary-color);
}


.form-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 30px;
}

.btn-whatsapp, .btn-email {
    padding: 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    transition: opacity 0.3s;
}

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

.btn-whatsapp:hover, .btn-email:hover { opacity: 0.9; }

@media (max-width: 480px) {
    .contact-form-content { padding: 30px 20px; }
    .floating-contact-btn { bottom: 20px; right: 20px; }
}

/* Botón Ver Más en Paquetes */
.service-vermas {
    margin-top: 20px;
    text-align: center;
    padding: 0 20px;
}

.btn-vermas {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary-color);
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: var(--transition);
    text-transform: uppercase;
    font-size: 0.9em;
    letter-spacing: 1px;
}

.btn-vermas:hover {
    background: #b39156;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

/* ========================================
   SISTEMA DE ANIMACIONES AL SCROLL
   ======================================== */

/* Clase base para elementos animables */
.scroll-animate {
    opacity: 0;
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, opacity;
}

/*Estado visible */
.scroll-animate.animated {
    opacity: 1;
}

/* Animación: Aparecer desde abajo */
.scroll-animate.fade-up {
    transform: translateY(50px);
}
.scroll-animate.fade-up.animated {
    transform: translateY(0);
}

/* Animación: Aparecer desde arriba */
.scroll-animate.fade-down {
    transform: translateY(-50px);
}
.scroll-animate.fade-down.animated {
    transform: translateY(0);
}

/* Animación: Aparecer desde izquierda */
.scroll-animate.fade-left {
    transform: translateX(-50px);
}
.scroll-animate.fade-left.animated {
    transform: translateX(0);
}

/* Animación: Aparecer desde derecha */
.scroll-animate.fade-right {
    transform: translateX(50px);
}
.scroll-animate.fade-right.animated {
    transform: translateX(0);
}

/* Animación: Zoom entrante */
.scroll-animate.zoom-in {
    transform: scale(0.8);
}
.scroll-animate.zoom-in.animated {
    transform: scale(1);
}

/* Animación: Zoom saliente */
.scroll-animate.zoom-out {
    transform: scale(1.2);
}
.scroll-animate.zoom-out.animated {
    transform: scale(1);
}

/* Animación: Voltear desde izquierda */
.scroll-animate.flip-left {
    transform: perspective(1000px) rotateY(-45deg);
    transform-origin: center;
}
.scroll-animate.flip-left.animated {
    transform: perspective(1000px) rotateY(0);
}

/* Animación: Voltear desde derecha */
.scroll-animate.flip-right {
    transform: perspective(1000px) rotateY(45deg);
    transform-origin: center;
}
.scroll-animate.flip-right.animated {
    transform: perspective(1000px) rotateY(0);
}

/* Animación: Deslizar hacia arriba */
.scroll-animate.slide-up {
    transform: translateY(100px);
}
.scroll-animate.slide-up.animated {
    transform: translateY(0);
}

/* Animación: Deslizar hacia abajo */
.scroll-animate.slide-down {
    transform: translateY(-100px);
}
.scroll-animate.slide-down.animated {
    transform: translateY(0);
}

/* Reducir movimiento para usuarios con preferencia de accesibilidad */
@media (prefers-reduced-motion: reduce) {
    .scroll-animate {
        transition: none !important;
        transform: none !important;
        opacity: 1 !important;
    }
}
/* --- Estilos para Sliders Dinámicos (Nosotros y Servicios) --- */
.about-image-slider {
    position: relative;
    overflow: hidden;
}

.about-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.about-slide.active {
    opacity: 1;
    z-index: 2;
}

.service-category-slider {
    position: relative;
    overflow: hidden;
}

.service-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    object-fit: cover;
    z-index: 1;
}

.service-slide.active {
    opacity: 1;
    z-index: 2;
}

/* Ajustes adicionales para que el menú de escritorio acepte más ítems */
#desktop-nav ul {
    display: flex;
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
}

#desktop-nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: var(--transition);
}

#desktop-nav ul li a:hover {
    color: var(--primary-color);
}
