@import url('https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css');
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600;700&family=Playfair+Display:wght@400;700&display=swap');

:root{
    /* Paleta moderna profesional para panadería */
    --primary: #2C1810; /* Marrón oscuro elegante */
    --secondary: #C9915C; /* Oro/cobre cálido */
    --accent: #E8C4A0; /* Beige crema */
    --light: #F5F1ED; /* Blanco roto muy claro */
    --dark: #1a0f0a; /* Negro cálido */
    --success: #A8714C; /* Marrón tierra */
    --gold: #D4A574; /* Oro suave */
}

/* Tipografía global y colores base */
body{
    font-family: 'Open Sans', Arial, sans-serif;
    color: #2C1810;
    background: var(--light);
    line-height: 1.6;
}

/* Navbar tweaks */
.navbar{
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(20px);
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgba(44, 24, 16, 0.1);
    position: sticky;
    top: 0;
    z-index: 999;
}

/* Footer tweaks */
footer.bg-dark {
    background-color: var(--primary) !important;
}

footer.bg-dark h5 {
    color: var(--secondary) !important;
}

footer.bg-dark p {
    color: #e8e8e8 !important;
}

.navbar-brand{
    font-size: 1.5rem;
    letter-spacing: 2px;
    font-weight: 700;
    color: var(--primary) !important;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.navbar-brand:hover{
    transform: scale(1.05);
}

.nav-link{
    color: var(--primary) !important;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after{
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: width 0.3s ease;
}

.nav-link:hover::after{
    width: 100%;
}

h1,h2,h3,h4,h5,h6{
    font-family: 'Playfair Display', serif;
    color: var(--primary) !important;
    font-weight: 700;
}

/* Textos secundarios y leads ajustados al tema */
.lead, p{
    color: #ffffff;
    font-size: 1.1rem;
}

.text-muted{
    color: #443e3e !important;
}

/* Botones: rounded, shadow, transitions */
.btn-primary{
    background-color: var(--primary);
    border-color: var(--primary);
    border-radius: 50px;
    padding: 0.75rem 1.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(44, 24, 16, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary::before{
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--secondary);
    transition: left 0.3s ease;
    z-index: -1;
}

.btn-primary:hover{
    background-color: var(--secondary);
    border-color: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(44, 24, 16, 0.3);
}

.btn-primary:focus{
    box-shadow: 0 0 0 0.25rem rgba(201, 145, 92, 0.25);
}

.btn-danger{
    border-radius: 50px;
    padding: 0.5rem 1.2rem;
    transition: transform .14s ease, box-shadow .14s ease;
    background-color: var(--secondary);
    border-color: var(--secondary);
}

.btn-danger:hover{
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(201, 145, 92, 0.3);
    background-color: var(--primary);
    border-color: var(--primary);
}

/* Clase .bg-primary debe coincidir con el tono de marca aquí */
.bg-primary{
    background: linear-gradient(135deg, var(--primary) 0%, var(--success) 100%) !important;
}

/* Asegurar que los textos que usaban text-primary tomen el color de marca */
.text-primary{
    color: var(--primary) !important;
}

/* Card visual improvements */
.card{
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    position: relative;
}

.card::before{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary), var(--accent));
}

.card:hover{
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(44, 24, 16, 0.15);
}

.card-body{
    padding: 2rem !important;
}

/* Icon gradients: use secondary -> primary for a modern look */
.icon-circle-lg{
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%) !important;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius: 50%;
    box-shadow: 0 8px 20px rgba(201, 145, 92, 0.3);
    transition: transform 0.3s ease;
}

.icon-circle-lg:hover{
    transform: scale(1.1);
}

.icon-circle-sm{
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%) !important;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius: 50%;
    box-shadow: 0 8px 20px rgba(201, 145, 92, 0.3);
    transition: transform 0.3s ease;
}

.icon-circle-sm:hover{
    transform: scale(1.1);
}

.card .icon-lg{font-size: 2rem;}
.card .icon-sm{font-size: 1.8rem;}

/* Hero tweaks */
.hero .display-4{
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    letter-spacing: -1px;
}

.hero .lead{
    font-size: 1.2rem;
    line-height: 1.8;
}

/* Hero section enhancement */
.hero{
    background: linear-gradient(rgba(245, 241, 237, 0.85), rgba(255, 255, 255, 0.9)), 
                url('/images/fondo-hero-principal.jpg') center/cover no-repeat;
    padding-top: 100px;
    position: relative;
    overflow: hidden;
}

.hero::before{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(201, 145, 92, 0.08) 0%, transparent 60%);
    z-index: 0;
}

.hero .container{
    position: relative;
    z-index: 1;
}

/* Sección Nosotros */
#about{
    background: linear-gradient(rgba(255, 255, 255, 0.92), rgba(245, 241, 237, 0.88)), 
                url('/images/fondo-sobre-nosotros.jpg') center/cover no-repeat;
    padding: 5rem 0 !important;x
    position: relative;
}

#about::before{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 70% 30%, rgba(232, 196, 160, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

#about h2{
    position: relative;
    padding-bottom: 2rem;
}

#about h2::after{
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary), var(--accent));
    border-radius: 2px;
}

/* Sección Productos */
#productos{
    background: linear-gradient(rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.9)), 
                url('/images/fondo-productos.jpg') center/cover no-repeat;
    padding: 5rem 0 !important;
    position: relative;
}

/* Secciones alternadas mejoradas - Catering */
section.py-5.bg-light{
    background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(245, 241, 237, 0.88)), 
                url('/images/fondo-catering.jpg') center/cover no-repeat !important;
    padding: 5rem 0 !important;
    position: relative;
}

section.py-5.bg-light::before{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.3) 0%, transparent 60%);
    pointer-events: none;
}

/* Galería */
#portfolio{
    background: linear-gradient(180deg, #ffffff 0%, var(--light) 100%);
    padding: 5rem 0 !important;
}

/* Contacto */
#contact{
    background: linear-gradient(rgba(245, 241, 237, 0.95), rgba(255, 255, 255, 0.92)), 
                url('/images/fondo-contacto.jpg') center/cover no-repeat;
    padding: 5rem 0 !important;
    position: relative;
}

/* Gallery hover */
.gallery-thumb{
    transition: all 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
    height: 280px;
    width: 100%;
    object-fit: cover;
    display: block;
}

.gallery-thumb:hover{
    transform: scale(1.05);
    filter: brightness(1.05);
    box-shadow: 0 12px 35px rgba(44, 24, 16, 0.2);
}

/* Carousel images smoothing */
.carousel-cover-400{
    transition: transform 0.5s ease;
    border-radius: 15px;
    overflow: hidden;
}

.carousel-cover-400:hover{
    transform: scale(1.03);
}

/* Banner */
.banner-soft-bg{
    padding: 2rem;
    background: linear-gradient(135deg, #ffffff 0%, var(--light) 100%) !important;
    border: 2px solid var(--secondary);
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(44, 24, 16, 0.08);
    transition: all 0.3s ease;
}

.banner-soft-bg:hover{
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(44, 24, 16, 0.12);
}

.banner-soft-bg h5{
    color: var(--primary);
    font-weight: 700;
}

/* Footer */
footer{
    background: linear-gradient(180deg, #1a0f0a 0%, #0d0705 100%);
    border-top: 4px solid var(--secondary);
    position: relative;
    overflow: hidden;
}

footer::before{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--secondary), transparent);
}

footer h5{
    color: var(--secondary);
}

footer p{
    color: #ddd;
    opacity: 0.95;
}

/* Add text gradient effect for headings */
.text-gradient{
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

/* Enhanced CTA Section */
.cta-section{
    background: linear-gradient(135deg, var(--primary) 0%, var(--success) 100%) !important;
    box-shadow: 0 15px 50px rgba(44, 24, 16, 0.25);
    border-radius: 20px;
    margin: 3rem 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before{
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(201, 145, 92, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.cta-section > .container{
    position: relative;
    z-index: 1;
}

.cta-section h2{
    color: #fff !important;
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Enhanced form controls */
.form-control-lg{
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.form-control-lg:focus{
    border-color: var(--secondary);
    box-shadow: 0 0 0 0.3rem rgba(201, 145, 92, 0.15);
    transform: scale(1.02);
}

/* Section titles - más prominentes */
.section-title{
    font-size: 3rem;
    letter-spacing: 3px;
    color: var(--primary) !important;
    text-transform: uppercase;
    font-weight: 700;
    position: relative;
    padding-bottom: 1.5rem;
}

.section-title::after{
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary), var(--accent));
    border-radius: 2px;
}

.muted-italic-accent{
    font-style: italic;
    color: var(--secondary) !important;
    font-size: 1.1rem;
}

.muted-italic-gold{
    font-style: italic;
    color: var(--accent) !important;
    font-size: 1.1rem;
}

.cover-500{
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.card-soft-bg{
    background: linear-gradient(135deg, #FFFAF0 0%, #FEF5E7 100%);
    border: 2px solid var(--accent);
}

/* Product lists inside cards */
.product-list{
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.35rem;
}

.product-list li{
    position: relative;
    padding-left: 28px;
    color: #5a5a5a;
    font-size: 0.95rem;
    line-height: 1.4;
    transition: all 0.3s ease;
}

.product-list li::before{
    content: "";
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 12px;
    height: 12px;
    background: var(--secondary);
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(201, 145, 92, 0.2);
}

@media(min-width:768px){
    .product-list{grid-template-columns: repeat(2, minmax(0,1fr));}
}

.product-list li span.badge-item{
    display:inline-block;
    font-size:0.75rem;
    background: rgba(44, 24, 16, 0.04);
    padding: 2px 6px;
    border-radius: 6px;
    margin-left:8px;
    color: var(--primary);
}

.product-list li:hover{
    color: var(--primary);
    padding-left: 32px;
}

.para-normal{
    font-size: 1rem;
    line-height: 1.8;
    color: #6a6a6a !important;
}

.accent-strong{
    color: var(--secondary) !important;
    font-weight: 600;
    font-size: 1.1rem;
}

#modalImage{
    max-height: 70vh;
    object-fit: contain;
}
/* Estilos para logo en navbar */
.navbar-logo {
    height: 80px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.navbar-text {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.3rem;
    letter-spacing: 1px;
}

.navbar-brand:hover .navbar-logo {
    transform: scale(1.05);
}

/* Estilos para botones de redes sociales */
.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.whatsapp-btn {
    background-color: #25D366;
    color: white;
}

.whatsapp-btn:hover {
    background-color: #1ead54;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.instagram-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.instagram-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* Estilos para footer social links */
.footer-social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--secondary);
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.5rem;
    font-weight: 600;
}

.social-link:hover {
    background-color: var(--primary);
    transform: translateY(-5px);
    color: white;
    box-shadow: 0 8px 20px rgba(201, 145, 92, 0.4);
}

/* Estilos para el formulario de contacto */
.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(44, 24, 16, 0.1);
}

.contact-form .form-label {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.contact-form .form-control {
    border: 2px solid #e8c4a0;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.contact-form .form-control:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 0.2rem rgba(201, 145, 92, 0.1);
    outline: none;
}

/* Estilos para sección de Catering */
.catering-section {
    padding: 2.5rem 0 !important;
}

.catering-section .container {
    max-width: 75%;
}

.catering-section h2 {
    font-size: 1.75rem;
}

.catering-section p {
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Uniformar altura de secciones de servicios */
.service-section {
    padding: 4rem 0;
    min-height: 450px;
    display: flex;
    align-items: center;
}

.service-section .row {
    width: 100%;
}

.service-section img {
    height: 350px;
    object-fit: cover;
}

/* Imágenes uniformes de servicios */
.service-img {
    height: 400px;
    width: 100%;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-img:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 25px rgba(44, 24, 16, 0.15);
}

#whatsappBtn {
    background-color: #25D366;
    border-color: #25D366;
}

#whatsappBtn:hover {
    background-color: #1ead54;
    border-color: #1ead54;
}

.social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Kodaweb logo en footer */
.kodaweb-logo {
    height: 80px;
    width: auto;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    margin-left: 0.5rem;
    vertical-align: middle;
}