/* --- Estilos Generales y Variables --- */
:root {
    --primary-color: #ff6600;
    --secondary-color: #007bff;
    --accent-color: #ffd700;
    --text-color: #333;
    --light-text-color: #fff;
    --dark-bg: #004d40;
    --light-bg: #f4f8f7;
    --card-bg: #fff;
    --shadow: 0 8px 32px rgba(0,0,0,0.1);
    --border-radius: 20px;
    --transition: all 0.3s ease;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    padding: 0;
    color: var(--text-color);
    background-color: var(--light-bg);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h2, h3 { 
    font-family: 'Fredoka One', cursive; 
    margin: 0 0 1rem 0;
}

.section-title {
    font-size: 2.8em;
    color: #e65c00;
    text-align: center;
    margin-bottom: 0.5rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.section-intro {
    text-align: center;
    font-size: 1.2em;
    color: #666;
    margin-bottom: 2rem;
}

a { 
    text-decoration: none; 
    color: inherit;
}

/* --- Botones Mejorados --- */
.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), #e65c00);
    color: var(--light-text-color);
    padding: 16px 32px;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1.1em;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: var(--shadow);
    text-align: center;
    width: 100%;
}

.btn-primary:hover { 
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(255,102,0,0.3);
}

.large { padding: 20px 40px; font-size: 1.3em; width: auto; }

/* --- Hero Section Mejorada --- */
.hero {
    background: linear-gradient(135deg, #007bff 0%, #00c6ff 50%, #ff6600 100%);
    color: var(--light-text-color);
    text-align: center;
    padding: 80px 20px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('hero-pattern.svg') repeat;
    opacity: 0.1;
}

.hero-content { 
    max-width: 1000px; 
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 4.2em;
    margin: 0 0 1rem 0;
    color: var(--accent-color);
    text-shadow: 4px 4px 0px rgba(0,0,0,0.2);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { text-shadow: 4px 4px 0px rgba(0,0,0,0.2), 0 0 20px var(--accent-color); }
    to { text-shadow: 4px 4px 0px rgba(0,0,0,0.2), 0 0 30px var(--accent-color); }
}

.hero-subtitle { 
    font-size: 1.6em; 
    margin: 0 0 2rem 0;
    font-weight: 600;
}

/* ========= SECCIÓN MODIFICADA PARA AMPLIAR LOS CUADROS ========= */
.badges { 
    display: flex; 
    justify-content: center; 
    /* CAMBIO: Aumentamos el espacio entre los cuadros */
    gap: 50px; 
    margin: 0 auto 2.5rem auto; 
    flex-wrap: wrap;
}

.badge-item { 
    background: rgba(255,255,255,0.2);
    padding: 20px; /* Aumentado para más aire */
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
    /* CAMBIO: Aumentamos el ancho total del cuadro */
    width: 220px;
    animation: slideInUp 0.8s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

.badge-item img { 
    /* CAMBIO: Aumentamos el tamaño de la imagen interna */
    width: 100px; 
    height: auto; 
    margin-bottom: 12px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}
/* =================== FIN DE LA SECCIÓN MODIFICADA =================== */


.badge-item.animate-in {
    opacity: 1;
    transform: translateY(0);
}

@keyframes slideInUp {
    to { opacity: 1; transform: translateY(0); }
}

.badge-item:hover {
    transform: scale(1.05);
    background: rgba(255,255,255,0.3);
}

.badge-label {
    font-size: 0.9em;
    font-weight: 600;
    color: var(--light-text-color);
}

.hero-btn { font-size: 1.3em; padding: 20px 40px; }

/* --- Video Section --- */
.video-section { 
    padding: 80px 20px; 
    background: linear-gradient(to bottom, var(--light-bg), #e3f2fd);
    text-align: center;
}

.video-wrapper {
    max-width: 900px;
    margin: 0 auto;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.video-section video {
    width: 100%;
    display: block;
}

/* --- Products Section --- */
.products-section {
    background-color: #e0f2f7;
    padding: 80px 20px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 2rem;
}

.product-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: var(--transition);
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0,0,0,0.15);
}

.image-wrapper {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.product-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
    transition: var(--transition);
}

.product-card:hover img {
    transform: scale(1.05);
}

.quick-add {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-color);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 600;
}

.bestseller { background: var(--accent-color); color: #333; }

.card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-card h3 {
    font-size: 1.4em;
    margin: 0 0 10px 0;
    color: var(--dark-bg);
}

.product-card p {
    color: #666;
    margin: 0 0 15px 0;
    font-size: 1em;
}

.price {
    font-size: 1.3em;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
    text-align: center;
}

/* --- Testimonials --- */
.testimonials {
    padding: 80px 20px;
    background: linear-gradient(to bottom, #f8f9fa, var(--light-bg));
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 2rem;
}

blockquote {
    background: var(--card-bg);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    font-style: italic;
    position: relative;
}

blockquote::before {
    content: '"';
    font-size: 4em;
    color: var(--primary-color);
    position: absolute;
    top: -10px;
    left: 20px;
}

cite {
    display: block;
    margin-top: 15px;
    font-weight: 600;
    color: var(--dark-bg);
    font-style: normal;
}

/* --- Formulario de Contacto (Integrado con el nuevo CSS) --- */
.contact-section {
    padding: 80px 20px;
    background: linear-gradient(to top, var(--light-bg), #e3f2fd);
}

.contact-form {
    max-width: 700px;
    margin: 2rem auto 0 auto;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark-bg);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 12px;
    font-family: 'Open Sans', sans-serif;
    font-size: 1em;
    box-sizing: border-box;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(255,102,0,0.2);
}

.contact-form .btn-primary {
    align-self: flex-start;
    width: auto;
}

/* --- Footer --- */
.footer {
    background: linear-gradient(to top, var(--dark-bg), #00695c);
    color: var(--light-text-color);
    text-align: center;
    padding: 60px 20px 30px;
}

.footer-slogan {
    font-size: 1.8em;
    font-family: 'Fredoka One', cursive;
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--accent-color);
    font-weight: 600;
    transition: var(--transition);
}

.footer-links a:hover { color: var(--primary-color); }

.social-links {
    margin-top: 1rem;
}

.social-links a {
    margin: 0 15px;
    color: var(--light-text-color);
    font-weight: 600;
}

.social-links a:hover { color: var(--accent-color); }

/* --- Diseño Responsivo Avanzado --- */
@media (max-width: 1024px) {
    .hero-title { font-size: 3.5em; }
    .section-title { font-size: 2.4em; }
    .product-grid { grid-template-columns: 1fr; }
    .image-wrapper { height: 320px; }
}

@media (max-width: 768px) {
    .hero { padding: 60px 20px; }
    .hero-title { font-size: 2.8em; }
    .hero-subtitle { font-size: 1.3em; }
    .badges { gap: 20px; flex-direction: column; align-items: center; }
    .badge-item { width: 220px; } /* Mantenemos el tamaño grande en tablet */
    .section-title { font-size: 2.2em; }
    .product-grid { grid-template-columns: 1fr; }
    .image-wrapper { height: auto; aspect-ratio: 4 / 5; }
    .footer-links { flex-direction: column; gap: 10px; }
}

@media (max-width: 480px) {
    .container { padding: 0 15px; }
    .btn-primary { padding: 14px 28px; font-size: 1em; }
    .hero-title { font-size: 2.4em; }
    .badge-item { width: 200px; } /* Tamaño ligeramente reducido para móvil */
}

/* Accesibilidad */
@media (prefers-reduced-motion: reduce) {
    * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* Optimizaciones SEO/Performance */
img { max-width: 100%; height: auto; loading: lazy; }
video { max-width: 100%; }