/*
Theme Name: Nirmed Full Editable Theme
Theme URI: https://example.com/nirmed
Author: Gemini
Description: Tema de WordPress a medida, 100% editable vía Personalizador (colores, textos, secciones) y compatible con Gutenberg / Elementor.
Version: 3.0
Text Domain: nirmed
*/

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

:root {
    --primary-dark: #0f3057;
    --primary-blue: #1ba0e2;
    --accent-green: #25d366;
    --bg-light: #f5f8fa;
    --text-dark: #333333;
    --text-muted: #666666;
    --white: #ffffff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Montserrat', sans-serif; background-color: var(--bg-light); color: var(--text-dark); line-height: 1.6; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Typography */
h1, h2, h3, h4, h5, h6 { font-weight: 700; color: var(--primary-dark); }
h1 { font-size: 3rem; line-height: 1.2; margin-bottom: 20px; }
h2 { font-size: 2.2rem; margin-bottom: 20px; }

/* Buttons */
.btn { display: inline-block; padding: 12px 24px; border-radius: 30px; font-weight: 600; text-align: center; cursor: pointer; transition: all 0.3s ease; }
.btn-primary { background-color: var(--primary-blue); color: var(--white); border: none; }
.btn-primary:hover { opacity: 0.9; }
.btn-outline { background-color: transparent; border: 1px solid var(--white); color: var(--white); }
.btn-outline:hover { background-color: rgba(255,255,255,0.1); }
.btn-green { background-color: var(--accent-green); color: var(--white); border: none; }

/* Header & Navigation */
.topbar { background-color: var(--primary-dark); color: var(--white); padding: 8px 0; font-size: 0.85rem; }
.topbar-content { display: flex; justify-content: space-between; align-items: center; }
.main-header { background-color: var(--white); padding: 15px 0; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.header-content { display: flex; justify-content: space-between; align-items: center; }
.logo img { max-height: 50px; }
.search-bar { flex: 1; max-width: 400px; margin: 0 20px; position: relative; }
.search-bar input { width: 100%; padding: 10px 40px 10px 20px; border-radius: 30px; border: 1px solid #ddd; background-color: #f9f9f9; }
.search-bar i { position: absolute; right: 15px; top: 50%; transform: translateY(-50%); color: #aaa; }
.main-nav ul { display: flex; gap: 20px; }
.main-nav a { font-weight: 500; font-size: 0.9rem; transition: color 0.3s; }
.main-nav a:hover { color: var(--primary-blue); }

/* Hero Section */
.hero { background-color: var(--primary-dark); color: var(--white); padding: 80px 0 60px; position: relative; overflow: hidden; border-radius: 0 0 0 80px; }
.hero-content { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.hero h1 { color: var(--white); }
.hero-stats { display: flex; gap: 30px; margin-top: 40px; }
.stat h3 { color: var(--white); font-size: 1.8rem; margin: 0; }
.stat p { font-size: 0.85rem; color: #cbd5e1; }
.hero-image img { width: 100%; border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.2); }
.hero-badge { background-color: var(--white); color: var(--primary-dark); padding: 15px 20px; border-radius: 15px; display: inline-flex; align-items: center; gap: 15px; margin-top: -30px; position: relative; z-index: 10; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }

/* Blue Info Bar */
.info-bar { background-color: var(--primary-blue); color: var(--white); padding: 15px 0; font-size: 0.9rem; font-weight: 500; margin-top: -20px; }
.info-bar-content { display: flex; justify-content: space-between; flex-wrap: wrap; }

/* Features Cards */
.features-section { padding: 60px 0; }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature-card { background: var(--white); padding: 30px 20px; border-radius: 15px; text-align: left; box-shadow: 0 4px 15px rgba(0,0,0,0.03); }
.feature-icon { width: 50px; height: 50px; background-color: #f0f7ff; color: var(--primary-dark); display: flex; justify-content: center; align-items: center; border-radius: 12px; margin-bottom: 20px; font-size: 1.5rem; }
.feature-card h4 { margin-bottom: 10px; }
.feature-card p { font-size: 0.85rem; color: var(--text-muted); }

/* Categories & Products */
.products-section { padding: 60px 0; }
.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.product-card { background: var(--white); padding: 20px; border-radius: 15px; box-shadow: 0 4px 15px rgba(0,0,0,0.03); position: relative; }
.product-badge { position: absolute; top: 15px; left: 15px; background: #ff4757; color: #fff; padding: 4px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: 700; }
.product-img { height: 200px; margin-bottom: 15px; text-align: center; }
.product-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.product-cat { font-size: 0.8rem; color: var(--primary-blue); margin-bottom: 5px; }
.product-title { font-size: 1.1rem; margin-bottom: 15px; min-height: 50px; }
.product-footer { display: flex; justify-content: space-between; align-items: center; }

/* Contact Form */
.contact-section { padding: 60px 0; }
.contact-wrapper { background: var(--white); padding: 50px; border-radius: 20px; box-shadow: 0 10px 40px rgba(0,0,0,0.05); display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.contact-info ul li { margin-bottom: 25px; display: flex; gap: 15px; }
.contact-info i { font-size: 1.5rem; color: var(--primary-dark); }
.form-group { margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 500; font-size: 0.9rem; }
.form-group input, .form-group textarea { width: 100%; padding: 15px; border: 1px solid #ddd; border-radius: 10px; font-family: inherit; }
.form-group textarea { height: 120px; resize: none; }
.btn-submit { width: 100%; padding: 15px; font-size: 1.1rem; }

/* Footer */
.site-footer { background-color: var(--primary-dark); color: var(--white); padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; margin-bottom: 40px; }
.footer-about p { margin: 20px 0; font-size: 0.9rem; color: #cbd5e1; }
.social-links a { display: inline-flex; width: 35px; height: 35px; background: rgba(255,255,255,0.1); border-radius: 50%; align-items: center; justify-content: center; margin-right: 10px; transition: 0.3s; }
.social-links a:hover { background: var(--primary-blue); }
.footer-links h4 { color: var(--white); margin-bottom: 20px; }
.footer-links ul li { margin-bottom: 10px; }
.footer-links a { color: #cbd5e1; font-size: 0.9rem; transition: 0.3s; }
.footer-links a:hover { color: var(--white); }
.footer-bottom { background-color: rgba(0,0,0,0.2); padding: 20px 0; text-align: center; font-size: 0.8rem; color: #8fa3b9; display: flex; justify-content: space-between; }

/* WhatsApp Floating Button */
.whatsapp-float { position: fixed; bottom: 30px; right: 30px; background-color: var(--accent-green); color: #fff; padding: 12px 25px; border-radius: 30px; display: flex; align-items: center; gap: 10px; font-weight: 600; box-shadow: 0 5px 15px rgba(37,211,102,0.4); z-index: 100; transition: transform 0.3s; }
.whatsapp-float:hover { transform: translateY(-5px); color: #fff; }

@media (max-width: 992px) {
    .hero-content, .contact-wrapper { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .products-grid, .features-grid, .footer-grid { grid-template-columns: 1fr; }
    .main-nav, .topbar { display: none; }
}
