/* ==========================================
   Reset y Variables
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2ecc71;
    --secondary-color: #3498db;
    --dark-color: #2c3e50;
    --light-gray: #ecf0f1;
    --white: #ffffff;
    --text-dark: #333333;
    --text-light: #7f8c8d;
    --gradient-primary: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    --gradient-secondary: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    --shadow-sm: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-md: 0 5px 20px rgba(0,0,0,0.15);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.2);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================
   Header y Navegación
   ========================================== */
.header {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 1rem 0;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}

.logo img {
    height: 90px;
    width: auto;
    object-fit: contain;
    background: white;
    border-radius: 8px;
    padding: 5px;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--dark-color);
    transition: var(--transition);
}

/* ==========================================
   Hero Slider
   ========================================== */
.hero-slider {
    position: relative;
    height: 600px;
    margin-top: 92px;
    overflow: hidden;
}

.slider-container {
    position: relative;
    height: 100%;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--white);
    width: 90%;
    max-width: 800px;
    z-index: 2;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.slide-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.3);
    animation: slideInDown 1s ease;
}

.slide-content p {
    font-size: 1.5rem;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.3);
    animation: slideInUp 1s ease;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    border: none;
    color: var(--dark-color);
    font-size: 2rem;
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
}

.slider-btn:hover {
    background: rgba(255, 255, 255, 1);
}

.slider-btn.prev {
    left: 20px;
}

.slider-btn.next {
    right: 20px;
}

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.slider-dot.active {
    background: var(--white);
    width: 30px;
    border-radius: 6px;
}

/* ==========================================
   Secciones Generales
   ========================================== */
section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--dark-color);
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    margin: 1rem auto;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 3rem;
}

/* ==========================================
   Líneas de Negocio
   ========================================== */
.business-lines {
    background: var(--light-gray);
}

.business-line {
    background: var(--white);
    border-radius: 15px;
    padding: 3rem;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.business-line:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.line-content {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 2rem;
}

.line-icon {
    font-size: 3rem;
    color: var(--primary-color);
    min-width: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.line-content h3 {
    font-size: 2rem;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.line-content p {
    color: var(--text-light);
    font-size: 1.1rem;
}

.brands-slider {
    margin-top: 2rem;
    overflow: hidden;
    padding: 2.5rem 0;
    width: 100%;
    position: relative;
    background: linear-gradient(90deg, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 10%, rgba(255,255,255,0) 90%, rgba(255,255,255,1) 100%);
}

.brands-slider h4 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--dark-color);
    font-size: 1.3rem;
}

.brands-track {
    display: flex;
    gap: 5rem;
    align-items: center;
    justify-content: flex-start;
    animation: scroll 40s linear infinite;
    will-change: transform;
}

.brands-track:hover {
    animation-play-state: paused;
}

.brands-track img {
    height: 90px;
    width: auto;
    min-width: 100px;
    max-width: 200px;
    object-fit: contain;
    filter: none;
    transition: var(--transition);
    flex-shrink: 0;
}

.brands-track img:hover {
    transform: scale(1.15);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.brands-track.farmaceutica {
    animation-duration: 50s;
}

.brands-track.estetica {
    animation-duration: 35s;
}

/* ==========================================
   Equipo de Ventas
   ========================================== */
.sales-team {
    background: var(--white);
}

.sales-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.sales-card {
    background: var(--white);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.sales-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.sales-photo {
    width: 150px;
    height: 150px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid var(--primary-color);
}

.sales-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sales-card h3 {
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.sales-role {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.contact-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-phone,
.btn-whatsapp {
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-phone {
    background: var(--secondary-color);
    color: var(--white);
}

.btn-phone:hover {
    background: #2980b9;
    transform: scale(1.05);
}

.btn-whatsapp {
    background: #25D366;
    color: var(--white);
}

.btn-whatsapp:hover {
    background: #20ba5a;
    transform: scale(1.05);
}

/* ==========================================
   Redes Sociales
   ========================================== */
.social-media {
    background: var(--light-gray);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
}

.social-card {
    background: var(--white);
    padding: 3rem 4rem;
    border-radius: 15px;
    text-align: center;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.social-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.social-card.instagram {
    background: linear-gradient(135deg, #833ab4 0%, #fd1d1d 50%, #fcb045 100%);
    color: var(--white);
}

.social-card.facebook {
    background: #1877f2;
    color: var(--white);
}

.social-card i {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: block;
}

.social-card span {
    font-size: 1.5rem;
    font-weight: bold;
    display: block;
    margin-bottom: 0.5rem;
}

.social-card p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* ==========================================
   Ubicación
   ========================================== */
.location {
    background: var(--white);
}

.location-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.location-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.info-item i {
    font-size: 2rem;
    color: var(--primary-color);
    min-width: 40px;
}

.info-item h3 {
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.info-item p {
    color: var(--text-light);
}

.map-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    max-height: 350px;
}

.map-container iframe {
    display: block;
}

/* ==========================================
   Footer
   ========================================== */
.footer {
    background: var(--dark-color);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-logo {
    max-width: 150px;
    margin-bottom: 1rem;
    background: white;
    padding: 0.8rem;
    border-radius: 10px;
}

.footer-col h4 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col ul li a {
    color: var(--light-gray);
    text-decoration: none;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--primary-color);
}

.footer-col ul li i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    color: var(--light-gray);
}

/* ==========================================
   Página Hero (páginas internas)
   ========================================== */
.page-hero {
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    margin-top: 92px;
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    background: rgba(0, 0, 0, 0.6);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-hero h1 {
    color: var(--white);
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.page-hero p {
    color: var(--white);
    font-size: 1.5rem;
}

/* ==========================================
   Quiénes Somos
   ========================================== */
.about-intro {
    background: var(--white);
    text-align: center;
}

.intro-content h2 {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.lead {
    font-size: 1.3rem;
    line-height: 1.8;
    color: var(--text-light);
    max-width: 900px;
    margin: 0 auto;
}

.mission-vision {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.mv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.mv-card {
    background: var(--white);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border-left: 5px solid var(--primary-color);
}

.mv-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-left-color: var(--secondary-color);
}

.mv-icon {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.mv-card h3 {
    font-size: 2rem;
    color: var(--dark-color);
    margin-bottom: 1.5rem;
}

.mv-content p {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.values {
    background: linear-gradient(135deg, #ffffff 0%, #e3f2fd 100%);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.value-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
    border: 3px solid transparent;
    box-shadow: var(--shadow-sm);
}

.value-card:hover {
    background: var(--white);
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.value-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.value-card h3 {
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.value-card p {
    color: var(--text-light);
    line-height: 1.7;
}

/* ==========================================
   CTA Section
   ========================================== */
.cta-section {
    background: var(--gradient-primary);
    color: var(--white);
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    display: inline-block;
}

.btn-primary {
    background: var(--white);
    color: var(--primary-color);
}

.btn-primary:hover {
    background: var(--dark-color);
    color: var(--white);
    transform: scale(1.05);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: scale(1.05);
}

/* ==========================================
   Blog
   ========================================== */
.blog-section {
    background: var(--white);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.blog-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.blog-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.blog-card:hover .blog-image img {
    transform: scale(1.1);
}

.blog-category {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--primary-color);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
}

.blog-content {
    padding: 2rem;
}

.blog-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-content h3 {
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-size: 1.4rem;
    line-height: 1.4;
}

.blog-content p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.read-more:hover {
    gap: 1rem;
}

/* ==========================================
   Páginas Individuales de Blog
   ========================================== */
.blog-post-content {
    background: var(--white);
    padding: 4rem 0;
}

.post-single {
    max-width: 900px;
    margin: 0 auto;
    background: var(--white);
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #f0f0f0;
    color: var(--text-light);
    font-size: 0.95rem;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.post-image {
    max-width: 600px;
    margin: 0 auto 3rem;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.post-image img {
    width: 100%;
    height: auto;
    display: block;
}

.post-body {
    color: var(--dark-color);
    line-height: 1.8;
}

.post-body h2 {
    color: var(--dark-color);
    font-size: 2rem;
    margin: 2.5rem 0 1.5rem;
}

.post-body h3 {
    color: var(--dark-color);
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
}

.post-body h4 {
    color: var(--dark-color);
    font-size: 1.2rem;
    margin: 1.5rem 0 0.8rem;
}

.post-body p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.post-body ul {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.post-body li {
    color: var(--text-light);
    margin-bottom: 0.8rem;
    line-height: 1.7;
}

.post-body strong {
    color: var(--dark-color);
    font-weight: 600;
}

/* Instagram CTA en posts */
.instagram-cta {
    background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    text-align: left;
    margin: 1.5rem 0;
    color: var(--white);
    max-width: 600px;
    display: inline-block;
    width: fit-content;
}

.instagram-cta h3 {
    color: var(--white) !important;
    font-size: 0.95rem;
    margin-bottom: 0.5rem !important;
}

.instagram-cta p {
    color: rgba(255, 255, 255, 0.95) !important;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
}

.instagram-embed-wrapper {
    background: white;
    border-radius: 8px;
    padding: 0.5rem;
    margin-top: 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    max-width: 400px;
}

.instagram-embed-wrapper .instagram-media {
    margin: 0 !important;
    max-width: 100% !important;
}

.btn-instagram {
    display: inline-block;
    background: var(--white);
    color: #bc1888;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-instagram:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
}

.btn-instagram i {
    margin-right: 0.5rem;
}

/* Contact CTA en posts */
.contact-cta {
    background: var(--light-bg);
    padding: 2.5rem;
    border-radius: 15px;
    margin: 3rem 0;
    text-align: center;
}

.contact-cta h3 {
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.contact-cta p {
    color: var(--text-light);
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: var(--white);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.4);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
}

.post-footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 2px solid #f0f0f0;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.btn-back:hover {
    gap: 1rem;
}

.btn-back i {
    transition: var(--transition);
}

.btn-back:hover i {
    transform: translateX(-5px);
}

/* ==========================================
   Newsletter
   ========================================== */
.newsletter {
    background: var(--gradient-secondary);
    color: var(--white);
}

.newsletter-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 3rem;
}

.newsletter-text h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    min-width: 400px;
}

.newsletter-form input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
}

.newsletter-form button {
    padding: 1rem 2rem;
    background: var(--dark-color);
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background: var(--white);
    color: var(--secondary-color);
    transform: scale(1.05);
}

/* ==========================================
   Equipo de Trabajo
   ========================================== */
.team-section {
    background: var(--white);
}

.team-section.team-alt {
    background: var(--light-gray);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.team-card {
    background: var(--white);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.team-photo {
    width: 180px;
    height: 180px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid var(--primary-color);
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-info h3 {
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.team-role {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.team-contacts {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

.team-contacts a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.3rem;
    transition: var(--transition);
}

.team-contacts a:nth-child(1) {
    background: var(--secondary-color);
}

.team-contacts a:nth-child(2) {
    background: #25D366;
}

.team-contacts a:hover {
    transform: scale(1.15);
}

/* Áreas del Equipo */
.team-areas {
    padding: 4rem 0;
    background: var(--light-gray);
}

.areas-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 2rem;
    margin-top: 2.5rem;
}

.area-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

/* Primeras 3 tarjetas ocupan 2 columnas cada una */
.area-card:nth-child(-n+3) {
    grid-column: span 2;
}

/* Últimas 2 tarjetas centradas */
.area-card:nth-child(4) {
    grid-column: 2 / span 2;
}

.area-card:nth-child(5) {
    grid-column: 4 / span 2;
}

.area-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.area-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.area-icon i {
    font-size: 2.5rem;
    color: var(--white);
}

.area-card h3 {
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.area-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Fotos del Equipo */
.team-photos {
    padding: 4rem 0;
    background: var(--white);
}

.photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.photo-item {
    position: relative;
    height: 300px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: var(--transition);
}

.photo-item:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-md);
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.photo-item:hover img {
    transform: scale(1.1);
}

.photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 2rem 1.5rem 1.5rem;
    transform: translateY(100%);
    transition: var(--transition);
}

.photo-item:hover .photo-overlay {
    transform: translateY(0);
}

.photo-overlay p {
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

/* ==========================================
   Animaciones
   ========================================== */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================
   Responsive Design
   ========================================== */

/* Tablets y pantallas medianas */
@media (max-width: 1024px) {
    .areas-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .area-card {
        grid-column: auto !important;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 92px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-md);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hero-slider {
        height: 400px;
    }

    .slide-content h1 {
        font-size: 2rem;
    }

    .slide-content p {
        font-size: 1.2rem;
    }

    .slider-btn {
        padding: 0.5rem 1rem;
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .business-line {
        padding: 2rem;
    }

    .line-content {
        flex-direction: column;
        text-align: center;
    }

    .line-content h3 {
        font-size: 1.5rem;
    }

    .brands-track img {
        height: 70px;
        min-width: 80px;
        gap: 3rem;
    }
    
    .brands-slider {
        padding: 1.5rem 0;
    }

    .sales-grid {
        grid-template-columns: 1fr;
    }

    .social-links {
        flex-direction: column;
        gap: 1.5rem;
    }

    .location-content {
        grid-template-columns: 1fr;
    }

    .page-hero {
        height: 300px;
    }

    .page-hero h1 {
        font-size: 2rem;
    }

    .page-hero p {
        font-size: 1.2rem;
    }

    .mv-grid {
        grid-template-columns: 1fr;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .cta-content h2 {
        font-size: 1.8rem;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .post-single {
        padding: 0 1rem;
    }

    .post-body h2 {
        font-size: 1.6rem;
    }

    .post-body h3 {
        font-size: 1.3rem;
    }

    .post-body p {
        font-size: 1rem;
    }

    .instagram-cta {
        padding: 1.5rem;
    }

    .contact-cta {
        padding: 1.5rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
        text-align: center;
    }

    .newsletter-content {
        flex-direction: column;
        text-align: center;
    }

    .newsletter-form {
        flex-direction: column;
        min-width: 100%;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .areas-grid {
        grid-template-columns: 1fr;
    }

    .areas-grid .area-card {
        grid-column: auto;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .logo img {
        height: 50px;
    }

    .logo-text {
        font-size: 1.2rem;
    }

    .contact-buttons {
        flex-direction: column;
    }

    .btn-phone,
    .btn-whatsapp {
        width: 100%;
        justify-content: center;
    }
    
    .whatsapp-float span {
        display: none;
    }
    
    .whatsapp-float {
        width: 60px;
        height: 60px;
        padding: 0;
        border-radius: 50%;
        justify-content: center;
    }
    
    .whatsapp-float i {
        font-size: 2rem;
    }
}

/* ==========================================
   Redes Sociales Compactas
   ========================================== */
.social-compact {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e0e0e0;
}

.social-compact h4 {
    color: var(--dark-color);
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.social-icons-compact {
    display: flex;
    gap: 0.8rem;
}

.social-icons-compact a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.1rem;
    transition: var(--transition);
    text-decoration: none;
}

.social-icons-compact a:nth-child(1) {
    background: linear-gradient(135deg, #833ab4 0%, #fd1d1d 50%, #fcb045 100%);
}

.social-icons-compact a:nth-child(2) {
    background: #1877f2;
}

.social-icons-compact a:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: var(--shadow-sm);
}

/* ==========================================
   WhatsApp Flotante y Selector
   ========================================== */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: var(--white);
    padding: 1rem 1.5rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5);
    z-index: 999;
    transition: var(--transition);
    animation: float 3s ease-in-out infinite;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
}

.whatsapp-float i {
    font-size: 1.8rem;
}

.whatsapp-float span {
    white-space: nowrap;
}

.whatsapp-float:hover {
    background: linear-gradient(135deg, #128C7E 0%, #075E54 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 35px rgba(37, 211, 102, 0.7);
}

/* Panel de Selección */
.whatsapp-selector {
    position: fixed;
    bottom: 90px;
    right: 25px;
    width: 380px;
    max-height: 550px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.2);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    overflow: hidden;
}

.whatsapp-selector.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.selector-header {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.selector-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.close-selector {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    transition: transform 0.3s ease;
    line-height: 1;
    padding: 0;
}

.close-selector:hover {
    transform: rotate(90deg);
}

.selector-body {
    padding: 1rem;
    max-height: 450px;
    overflow-y: auto;
}

.rep-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #f0f0f0;
}

.rep-option:hover {
    background: #f8f9fa;
    border-color: #25D366;
    transform: translateX(5px);
}

.rep-avatar {
    position: relative;
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}

.rep-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #25D366;
}

.rep-status {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 14px;
    height: 14px;
    background: #25D366;
    border: 2px solid white;
    border-radius: 50%;
    animation: pulse-status 2s infinite;
}

@keyframes pulse-status {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

.rep-info {
    flex: 1;
}

.rep-info h4 {
    margin: 0 0 0.2rem 0;
    font-size: 1rem;
    color: #2c3e50;
}

.rep-info p {
    margin: 0 0 0.3rem 0;
    font-size: 0.85rem;
    color: #7f8c8d;
}

.rep-number {
    display: inline-block;
    font-size: 0.9rem;
    color: #25D366;
    font-weight: 600;
}

.rep-option > i {
    font-size: 1.8rem;
    color: #25D366;
    transition: transform 0.3s ease;
}

.rep-option:hover > i {
    transform: scale(1.2);
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 30px rgba(37, 211, 102, 0.7);
    }
}

@media (max-width: 768px) {
    .whatsapp-float {
        padding: 0.8rem 1.2rem;
        bottom: 20px;
        right: 20px;
        font-size: 0.85rem;
    }
    
    .whatsapp-float i {
        font-size: 1.5rem;
    }
    
    .whatsapp-float span {
        font-size: 0.85rem;
    }
    
    .whatsapp-selector {
        width: 90%;
        max-width: 350px;
        right: 5%;
        bottom: 80px;
    }
    
    .selector-header h3 {
        font-size: 1rem;
    }
    
    .rep-avatar {
        width: 50px;
        height: 50px;
    }
    
    .rep-info h4 {
        font-size: 0.9rem;
    }
    
    .rep-info p {
        font-size: 0.8rem;
    }
    
    .rep-number {
        font-size: 0.85rem;
    }
    
    .logo img {
        height: 70px;
    }

    .logo-text {
        font-size: 1.4rem;
    }
}

