* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #8f1e1e; 
    color: #f8fafc;
    overflow-x: hidden;
}

.welcome-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: radial-gradient(circle at top right, rgba(248, 56, 56, 0.15), #ff0000 70%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 0 20px;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.welcome-screen.fade-out {
    opacity: 0;
    transform: scale(1.05); 
    pointer-events: none;
}

.hero-content { text-align: center; max-width: 900px; }

.hero-content h1 {
    font-size: 64px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    background: linear-gradient(to right, #fff, #b89494);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 22px;
    color: #ffb3b3;
    margin-bottom: 40px;
}

.hero-btn {
    display: inline-block;
    padding: 16px 36px;
    font-size: 18px;
    font-weight: 600;
    color: #2a0f0f;
    background-color: #ff7878;
    text-decoration: none;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(255, 76, 76, 0.3);
    transition: all 0.3s ease;
}

.hero-btn:hover {
    transform: translateY(-3px);
    background-color: #ff2a2a;
}

.main-site {
    display: none;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.main-site.show-content {
    display: block;
    opacity: 1;
}

.navbar {
    display: flex;
    flex-direction: column; 
    align-items: center;
    justify-content: center;
    gap: 20px;
    background-color: rgba(145, 32, 32, 0.8);
    backdrop-filter: blur(15px);
    padding: 30px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 200;
}

.logo { font-size: 32px; font-weight: 800; color: #fff; }
.logo span { color: #ff0000; }
.nav-menu { display: flex; gap: 40px; }

.nav-link {
    color: #b89494;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #f83838;
    transition: transform 0.3s ease-out;
}

.nav-link:hover { color: #fff; }
.nav-link:hover::after { transform: scaleX(1); }

.page-section {
    max-width: 1000px;
    margin: 0 auto;
    padding: 60px 20px;
    text-align: center;
}

.section-carousel-hero { padding-top: 30px; }

.page-section h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    background:linear-gradient(to right, #fff, #b89494);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle { color: #b89494; font-size: 1.1rem; margin-bottom: 40px; }

.carousel { 
    position: relative; 
    width: 100vw;          
    height: 100vh;         
    left: 50%;             
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    overflow: hidden; 
}

.carousel-inner { 
    display: flex; 
    width: 100%;           
    height: 100%; 
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); 
    will-change: transform;
}

.carousel-item { 
    min-width: 100vw;      
    height: 100%; 
    position: relative; 
}

.carousel-item img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover;     
    filter: brightness(40%); 
}

.carousel-caption h2 { 
    font-size: 4.5rem;     
    color: #ff0000; 
    margin-bottom: 15px; 
    font-weight: 900; 
    letter-spacing: -2px;
}

.menu-toggle { display: none; flex-direction: column; cursor: pointer; background: transparent; border: none; gap: 6px; position: absolute; right: 30px; top: 32px; }
.bar { width: 30px; height: 3px; background-color: #fff; transition: all 0.4s ease; }

@media (max-width: 768px) {
    .navbar { flex-direction: row; justify-content: space-between; padding: 25px 30px; }
    .menu-toggle { display: flex; }
    .nav-menu {
        position: absolute; top: 85px; left: 0; width: 100%; flex-direction: column;
        background-color: #2a0f0f; opacity: 0; transform: translateY(-20px);
        pointer-events: none; transition: all 0.4s ease; z-index: 300;
    }
    .nav-link { padding: 25px 0; text-align: center; display: block; }
    .nav-menu.active { opacity: 1; transform: translateY(0); pointer-events: auto; }
    .menu-toggle.active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.active .bar:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    .menu-toggle.active .bar:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
    .carousel { height: 100vh; }
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px 0;
    margin-top: 20px;
}

.catalog-card {
    position: relative;        
    border-radius: 15px;
    overflow: hidden;
    background: transparent;  
    transition: transform 0.3s ease;
    text-align: left;
}

.catalog-card:hover {
    transform: translateY(-8px);
}

.catalog-img-wrapper {
    width: 100%;
    height: 350px; 
    overflow: hidden;
    border-radius: 15px;
    background: rgba(59, 30, 30, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.catalog-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.catalog-card:hover img {
   transform: scale(1.05);
} 

.catalog-info {
  position: absolute;       
    bottom: 0;              
    left: 0;
    width: 100%;
    padding: 20px;
    background: transparent;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
}

.catalog-info h3 {
    color: #fff;
    font-size: 1.4rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.catalog-info p {
    color: #b89494;
    font-size: 0.95rem;
    line-height: 1.6;
}

@media (max-width: 480px) {
    .catalog-img-wrapper {
    width: 100%;
    height: 420px;           
    overflow: hidden;
    border-radius: 15px;     
    border: 1px solid rgba(255, 255, 255, 0.1);
    }
}

.catalog-card:hover {
    transform: translateY(-8px);
}

.catalog-card:hover .catalog-img-wrapper {
    border-color: #f83838;
    box-shadow: 0 10px 30px rgba(248, 56, 56, 0.3);
}

.lightbox {
    display: none;             
    position: fixed;
    z-index: 9999;            
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.9); 
    justify-content: center;
    align-items: center;
    cursor: zoom-out;        
}

.lightbox img {
    max-width: 90%;
    max-height: 85vh;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.6);
    animation: zoomSuave 0.25s ease-out;
}

@keyframes zoomSuave {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    padding: 20px 0;
    margin-top: 20px;
}

.portfolio-card {
    position: relative;
    width: 100%;
    height: 380px;
    border-radius: 15px;
    overflow: hidden;
    background: rgba(59, 30, 30, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.portfolio-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(42, 15, 15, 0.95) 0%, rgba(42, 15, 15, 0) 70%);
    display: flex;
    align-items: flex-end;
    padding: 25px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-overlay h3 {
    color: #fff;
    font-size: 1.3rem;
    font-weight: 700;
    transform: translateY(10px);
    transition: transform 0.3s ease;
}

.portfolio-card:hover {
    transform: translateY(-8px);
    border-color: #f83838;
    box-shadow: 0 10px 30px rgba(248, 56, 56, 0.3);
}

.portfolio-card:hover img {
    transform: scale(1.05);
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-card:hover .portfolio-overlay h3 {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 20px;
    }
    .portfolio-card {
        height: 340px;
    }
}

.btn-tienda {
  display: inline-block;
  padding: 12px 25px;
  background-color: rgba(0, 0, 0, 0.7);
  color: #fff;
  text-decoration: none;
  font-family: 'Arial', sans-serif;
  font-weight: bold;
  border: 2px solid #d4af37;
  border-radius: 5px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-tienda:hover {
  background-color: #d4af37;
  color: #000;
  box-shadow: 0px 0px 15px rgba(212, 175, 55, 0.6);
  transform: translateY(-2px);
}

.body-tienda {
  background-color: #111;
  color: #fff;
  font-family: sans-serif;
  margin: 0;
  padding: 20px;
}

.titulo-tienda {
  text-align: center;
  color: #d4af37;
}

.btn-regresar {
  display: inline-block;
  margin-bottom: 20px;
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid #fff;
}

.grid-productos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 20px;
}

.producto-card {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid #333;
  border-radius: 8px;
  padding: 15px;
  text-align: center;
  transition: transform 0.3s, border-color 0.3s;
}

.producto-card:hover {
  transform: scale(1.03);
  border-color: #d4af37;
}

.producto-card img {
  max-width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 4px;
}

.precio {
  color: #d4af37;
  font-size: 1.25rem;
  font-weight: bold;
  margin: 10px 0;
}

body {
    transition: background-color 0.5s ease;
}

body.tienda-activa {
    background-color: #0f172a; 
}

.site-selector {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 8px;
    z-index: 2500;
    background: rgba(0, 0, 0, 0.6);
    padding: 6px;
    border-radius: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.selector-btn {
    padding: 8px 18px;
    font-size: 14px;
    font-weight: 600;
    color: #94a3b8;
    background: transparent;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.selector-btn:hover {
    color: #fff;
}

.selector-btn.active[data-target="barberia"] {
    background-color: #f83838;
    color: #fff;
    box-shadow: 0 4px 15px rgba(248, 56, 56, 0.4);
}

.selector-btn.active[data-target="tienda"] {
    background-color: #3b82f6;
    color: #fff;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.tienda-site {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.tienda-site.show-content {
    display: block;
    opacity: 1;
}

.tienda-site .navbar {
    background-color: rgba(15, 23, 42, 0.8);
}

.tienda-site .logo span {
    color: #3b82f6;
}

.tienda-site .nav-link {
    color: #94a3b8;
}

.tienda-site .nav-link::after {
    background-color: #3b82f6;
}

.tienda-site .page-section h2 {
    background: linear-gradient(to right, #fff, #64748b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tienda-site .section-subtitle {
    color: #94a3b8;
}

.tienda-site .producto-card {
    background-color: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.tienda-site .producto-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.2);
}

.tienda-site .precio {
    color: #3b82f6;
}

@media (max-width: 768px) {
    .tienda-site .nav-menu {
        background-color: #1e293b;
    }
}

body {
    transition: background-color 0.5s ease;
}

body.tienda-activa {
    background-color: #0f172a;
}

.site-selector {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 8px;
    z-index: 2500;
    background: rgba(0, 0, 0, 0.6);
    padding: 6px;
    border-radius: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.selector-btn {
    display: inline-block;
    padding: 8px 18px;
    font-size: 14px;
    font-weight: 600;
    color: #94a3b8;
    text-decoration: none;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.selector-btn:hover {
    color: #fff;
}

.site-selector a.active[href="index.html"] {
    background-color: #f83838;
    color: #fff;
    box-shadow: 0 4px 15px rgba(248, 56, 56, 0.4);
}

.site-selector a.active[href="tienda.html"] {
    background-color: #3b82f6;
    color: #fff;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.tienda-site .navbar {
    background-color: rgba(15, 23, 42, 0.8);
}

.tienda-site .logo span {
    color: #3b82f6;
}

.tienda-site .nav-link {
    color: #94a3b8;
}

.tienda-site .nav-link::after {
    background-color: #3b82f6;
}

.tienda-site .page-section h2 {
    background: linear-gradient(to right, #fff, #64748b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tienda-site .section-subtitle {
    color: #94a3b8;
}

.tienda-site .producto-card {
    background-color: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.tienda-site .producto-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.2);
}

.tienda-site .precio {
    color: #3b82f6;
}

@media (max-width: 768px) {
    .tienda-site .nav-menu {
        background-color: #1e293b;
    }
}