* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f7d6e0; /* Fondo rosa pastel general */
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Mantiene el footer siempre abajo */
}

.main-header {
    background-color: #f2b5d4; /* Encabezado rosa un poco más intenso */
    padding: 15px 20px;
    border-bottom: 1px solid rgba(74, 14, 46, 0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

.header-container h1 {
    color: #4a0e2e;
    font-size: 2.2rem;
    letter-spacing: 2px;
    font-weight: 700;
}

.logo {
    max-height: 70px;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Barra de Navegación Oscura */
.navbar {
    background-color: #1a1a1a;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.navbar ul {
    list-style: none;
    display: flex;
    justify-content: center;
    max-width: 1100px;
    margin: 0 auto;
}

.navbar li a {
    display: block;
    color: #ffffff;
    text-decoration: none;
    padding: 16px 25px;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

/* Estado activo y efecto al pasar el mouse */
.navbar li a:hover, 
.navbar li a.active {
    background-color: #f2b5d4;
    color: #4a0e2e;
    font-weight: bold;
}

/* Título decorativo común para secciones */
.main-title {
    color: #4a0e2e;
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 40px;
}

.main-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: #4a0e2e;
    margin: 10px auto 0 auto;
    border-radius: 2px;
}

.welcome-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
    text-align: center;
    flex: 1;
}

.welcome-text h2 {
    color: #4a0e2e;
    font-size: 2.2rem;
    margin-bottom: 15px;
    font-style: italic;
}

.welcome-text p {
    font-size: 1.15rem;
    line-height: 1.7;
    color: #555;
    max-width: 750px;
    margin: 0 auto 35px auto;
}

.hero-image-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.hero-cake {
    max-width: 100%;
    height: auto;
    width: 650px;
    border-radius: 15px;
    box-shadow: 0 12px 35px rgba(74, 14, 46, 0.15);
    border: 5px solid #ffffff; /* Efecto marco de foto */
    transition: transform 0.3s ease;
}

.hero-cake:hover {
    transform: scale(1.02);
}

.services-container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
    flex: 1;
}

.service-card {
    background-color: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(74, 14, 46, 0.08);
    display: flex;
    align-items: center;
    margin-bottom: 40px;
}

.service-info {
    padding: 40px;
    flex: 1;
}

.service-info h3 {
    color: #4a0e2e;
    font-size: 1.7rem;
    margin-bottom: 15px;
}

.service-info p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 15px;
}

.service-image {
    flex: 1;
    display: flex;
    height: 100%;
}

.service-image img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.products-page-container {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
    flex: 1;
}

.products-intro {
    text-align: center;
    margin-bottom: 40px;
}

.products-intro h2 {
    color: #4a0e2e;
    font-size: 2.2rem;
    margin-bottom: 10px;
}

/* Cuadrícula adaptable para catálogo */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.product-card {
    background-color: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 22px rgba(74, 14, 46, 0.06);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(74, 14, 46, 0.12);
}

.product-image-box {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.product-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-details {
    padding: 20px;
    text-align: center;
    flex-grow: 1;
}

.product-details h3 {
    color: #4a0e2e;
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.product-details p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

.about-container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
    flex: 1;
}

/* Filas alternadas de historia */
.about-row {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 50px;
    background-color: #ffffff; /* Fondo de tarjeta blanca limpia */
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(74, 14, 46, 0.06);
}

/* Esta clase invierte el orden (Imagen primero, texto después) */
.about-row.reverse {
    flex-direction: row-reverse;
}

.about-text {
    flex: 1;
}

.about-text h3 {
    color: #4a0e2e;
    font-size: 1.6rem;
    margin-bottom: 15px;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 15px;
}

.about-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.about-image img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
}

.contact-container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
    display: flex;
    gap: 50px;
    flex: 1;
}

.info-section {
    flex: 1;
    padding-top: 20px;
}

.info-section h2 {
    color: #4a0e2e;
    font-size: 2rem;
    margin-bottom: 20px;
}

.info-section p {
    margin-bottom: 15px;
    font-size: 1.1rem;
    line-height: 1.5;
}

/* Formulario Estilizado */
.form-section {
    flex: 1.2;
    background-color: rgba(232, 165, 200, 0.6); /* Tono lila/rosa suave */
    padding: 35px;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(74, 14, 46, 0.08);
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.form-group label {
    margin-bottom: 8px;
    color: #4a0e2e;
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group input, 
.form-group textarea, 
.form-group select {
    padding: 12px 18px;
    border: 2px solid transparent;
    border-radius: 25px;
    background-color: #ffffff;
    font-size: 1rem;
    color: #333;
    outline: none;
    transition: all 0.3s ease;
}

.form-group input:focus, 
.form-group textarea:focus, 
.form-group select:focus {
    border-color: #4a0e2e;
    box-shadow: 0 0 8px rgba(74, 14, 46, 0.15);
}

.form-group-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 40px;
    padding-left: 5px;
}
   
.form-group textarea {
    border-radius: 15px;
    resize: vertical;
}

.form-group-inline {
    margin-bottom: 25px;
}

.form-group-inline label {
    color: #4a0e2e;
    font-weight: 600;
    display: block;
    margin-bottom: 10px;
}

.radio-options label {
    display: inline-block;
    margin-right: 20px;
    font-weight: normal;
    cursor: pointer;
}

.btn-submit {
    display: block;
    width: 100%;
    padding: 14px;
    background-color: #4a0e2e;
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.1s ease;
}

.btn-submit:hover {
    background-color: #6b1743;
}

.btn-submit:active {
    transform: scale(0.98);
}

.main-footer {
    background-color: #e8a5c8;
    padding: 20px;
    text-align: center;
    border-top: 2px solid #f2b5d4;
    margin-top: auto;
}

.main-footer p {
    color: #4a0e2e;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    .navbar ul {
        flex-direction: column;
        align-items: center;
    }
    .navbar li a {
        padding: 12px 20px;
    }
    .service-card, 
    .about-row, 
    .about-row.reverse {
        flex-direction: column;
        gap: 25px;
        padding: 20px;
    }
    .service-image img, 
    .about-image img {
        height: 250px;
    }
    .contact-container {
        flex-direction: column;
        gap: 30px;
    }
}