/* =========================================================================
   STYLES.CSS OPTIMIZADO - ZINZINO PERÚ
   ========================================================================= */

/* Variables CSS */
:root {
    --primary: #421495;
    --primary-dark: #2D1B5B;
    --secondary: #6A3BB5;
    --accent: #FF7A00;
    --accent-dark: #E06A00;
    --light: #F5F3FF;
    --dark: #2D1B5B;
    --text: #333333;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
    --border-radius: 12px;
}

/* Reset y estilos base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--light);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Optimización de imágenes */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Container */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.highlight {
    color: var(--accent);
}

/* =========================================================================
   HEADER
   ========================================================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--white);
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: var(--transition);
    will-change: box-shadow;
}

.header.scrolled {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    color: var(--primary);

}

.logo:hover {
    transform: scale(1.05);
}

.logo i {
    font-size: 1.8rem;
    color: var(--accent);
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    color: var(--dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-buttons {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* =========================================================================
   BOTONES
   ========================================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    will-change: transform;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: var(--white);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 122, 0, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-full {
    width: 100%;
}

.whatsapp-btn {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: var(--white);
    border: none;
}

.whatsapp-btn:hover {
    background: linear-gradient(135deg, #128C7E 0%, #0a6b5f 100%);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark);
    cursor: pointer;
    padding: 0.5rem;
}

/* =========================================================================
   HERO SLIDER
   ========================================================================= */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

.hero-slider {
    position: relative;
    height: 100%;
    width: 100%;
    overflow: hidden;
}

.slider-track {
    display: flex;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
}

.slide .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    width: 100%;
    gap: 3rem;
}

.hero-content {
    flex: 1;
    animation: slideInFromLeft 1s ease-out;
    color: var(--white);
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    font-family: 'Poppins', sans-serif;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image {
    flex: 1;
    animation: slideInFromRight 1s ease-out;
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-image img {
	width: 100%;
	max-width: 533px;
	height: auto;
	object-fit: cover;
	border-radius: var(--border-radius);
	box-shadow: var(--shadow-lg);
	animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Controles slider */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
    z-index: 10;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    background: var(--accent);
    color: var(--white);
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: 30px;
}

.next-btn {
    right: 30px;
}

.slider-indicators {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.indicator {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: scale(1.2);
}

.indicator.active {
    background: var(--accent);
    transform: scale(1.3);
    border-color: var(--white);
}

.slider-counter {
    position: absolute;
    bottom: 40px;
    right: 40px;
    background: rgba(0, 0, 0, 0.5);
    color: var(--white);
    padding: 10px 20px;
    border-radius: var(--border-radius);
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.current-slide {
    color: var(--accent);
    font-size: 1.3rem;
}

/* =========================================================================
   SECCIONES COMUNES
   ========================================================================= */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
    font-family: 'Poppins', sans-serif;
    color: var(--primary);
}

.section-subtitle {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    color: var(--dark);
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.8;
}

/* =========================================================================
   ABOUT (NOSOTROS)
   ========================================================================= */
.about {
    padding: 5rem 0;
    background: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h3 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-family: 'Poppins', sans-serif;
}

.about-text p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: var(--text);
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 2.5rem 0;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--light);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.stat-number {
    font-size: 2.5rem;
    color: var(--accent);
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--dark);
    font-size: 0.9rem;
    font-weight: 500;
}

.about-image img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease;
}

.about-image img:hover {
    transform: scale(1.02);
}

/* =========================================================================
   SERVICES (PRODUCTOS)
   ========================================================================= */
.services {
    padding: 5rem 0;
    background: var(--light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--primary));
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent), var(--primary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    color: var(--white);
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-title {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
    font-family: 'Poppins', sans-serif;
}

.service-description {
    color: var(--text);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-features {
    text-align: left;
    margin: 1.5rem 0;
    width: 100%;
    list-style: none;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.service-features i {
    color: var(--accent);
    font-size: 0.9rem;
}

.product-price {
    font-size: 1.8rem;
    color: var(--accent);
    font-weight: 700;
    margin: 1.5rem 0;
    font-family: 'Poppins', sans-serif;
}

/* =========================================================================
   PORTFOLIO (BENEFICIOS)
   ========================================================================= */
.portfolio {
    padding: 5rem 0;
    background: var(--white);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.portfolio-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    height: 300px;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-item:hover img {
    transform: scale(1.05);
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 2rem;
    color: var(--white);
    transform: translateY(100%);
    transition: transform 0.5s ease;
}

.portfolio-item:hover .portfolio-overlay {
    transform: translateY(0);
}

.portfolio-overlay h3 {
    font-family: 'Poppins', sans-serif;
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
}

.portfolio-overlay p {
    opacity: 0.9;
    font-size: 0.95rem;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.benefit-card {
    background: var(--light);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.benefit-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent), var(--primary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
    color: var(--white);
    transition: transform 0.3s ease;
}

.benefit-card:hover .benefit-icon {
    transform: scale(1.1) rotate(5deg);
}

.benefit-card h4 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-family: 'Poppins', sans-serif;
}

.benefit-card p {
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* =========================================================================
   TESTIMONIOS
   ========================================================================= */
.testimonials {
    padding: 5rem 0;
    background: var(--light);
}

.testimonials-slider {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
    border-left: 5px solid var(--accent);
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.testimonial-content {
    font-style: italic;
    margin-bottom: 1.5rem;
    color: var(--text);
    line-height: 1.8;
    position: relative;
    padding-left: 1.5rem;
}

.testimonial-content::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -10px;
    font-size: 3rem;
    color: var(--accent);
    opacity: 0.3;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h4 {
    font-family: 'Poppins', sans-serif;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.author-info p {
    color: var(--dark);
    font-size: 0.9rem;
    opacity: 0.8;
}

/* =========================================================================
   CONTACTO
   ========================================================================= */
.contact {
    padding: 5rem 0;
    background: var(--white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.contact-info {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--light);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.contact-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent), var(--primary));
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-details h3 {
    font-family: 'Poppins', sans-serif;
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.contact-details p {
    color: var(--text);
    line-height: 1.6;
}

.contact-social {
    padding: 1.5rem;
    background: var(--light);
    border-radius: var(--border-radius);
}

.contact-social h3 {
    font-family: 'Poppins', sans-serif;
    color: var(--primary);
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 45px;
    height: 45px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
    transition: var(--transition);
    text-decoration: none;
}

.social-link:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

.social-link.whatsapp:hover {
    background: #25D366;
    color: var(--white);
}

.contact-form {
    background: var(--light);
    padding: 2.5rem;
    border-radius: var(--border-radius);
}

.contact-form h3 {
    font-family: 'Poppins', sans-serif;
    color: var(--primary);
    margin-bottom: 1rem;
}

.contact-form > p {
    color: var(--text);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255, 122, 0, 0.1);
}

.whatsapp-direct {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(37, 211, 102, 0.1);
    border-radius: var(--border-radius);
    text-align: center;
}

.whatsapp-direct p {
    margin-bottom: 1rem;
    color: var(--dark);
}

.map-container {
    width: 100%;
    height: 450px;
    overflow: hidden;
    margin-top: 4rem;
    margin-bottom: -5rem; /* compensa el padding inferior de .contact para quedar pegado al footer */
    line-height: 0;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* =========================================================================
   FOOTER
   ========================================================================= */
.footer {
    background: linear-gradient(135deg, var(--dark) 0%, #1a0f3d 100%);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-content {
    grid-template-columns: 1.4fr 1fr 1fr 1.4fr;
}

.footer-brand img {
    width: 110px;
    height: auto;
    margin-bottom: 1rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
    margin-bottom: 1rem;
}

.footer-logo i {
    color: var(--accent);
}

.footer-section p {
    opacity: 0.8;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.footer-section h3 {
    font-family: 'Poppins', sans-serif;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    color: var(--white);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.footer-contact {
    list-style: none;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

.footer-contact li {
    align-items: flex-start;
}

.footer-contact i {
    color: var(--accent);
    width: 20px;
    flex-shrink: 0;
    margin-top: 4px;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-contact a:hover {
    color: var(--accent);
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-size: 1.1rem;
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--accent);
    transform: translateY(-3px);
}

.social-links a.whatsapp:hover {
    background: #25D366;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.5rem;
}

.footer-terms a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin: 0 0.5rem;
    transition: var(--transition);
}

.footer-terms a:hover {
    color: var(--accent);
}

/* =========================================================================
   WHATSAPP FLOTANTE
   ========================================================================= */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: var(--transition);
    text-decoration: none;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 6px 30px rgba(37, 211, 102, 0.8);
        transform: scale(1.05);
    }
}

.whatsapp-float:hover {
    background: linear-gradient(135deg, #128C7E 0%, #0a6b5f 100%);
    transform: scale(1.1);
    animation: none;
}

/* =========================================================================
   WHATSAPP POPUP
   ========================================================================= */
.whatsapp-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.whatsapp-popup.active {
    display: flex;
}

.popup-content {
    background: white;
    border-radius: 20px;
    width: 90%;
    max-width: 400px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    animation: popupIn 0.3s ease-out;
}

@keyframes popupIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.popup-header {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    padding: 20px;
    text-align: center;
}

.popup-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-family: 'Poppins', sans-serif;
}

.popup-header p {
    margin: 5px 0 0 0;
    opacity: 0.9;
    font-size: 0.9rem;
}

.popup-body {
    padding: 25px;
}

.whatsapp-option {
    display: block;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    cursor: pointer;
}

.whatsapp-option:last-child {
    margin-bottom: 0;
}

.whatsapp-option:hover {
    background: #e9ecef;
    border-color: #25D366;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.2);
}

.option-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.option-header i {
    color: #25D366;
    font-size: 1.2rem;
}

.option-header h4 {
    margin: 0;
    font-size: 1.1rem;
    color: #128C7E;
    font-family: 'Poppins', sans-serif;
}

.option-description {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
    line-height: 1.4;
}

.popup-footer {
    padding: 15px 25px 25px;
    text-align: center;
}

.popup-footer p {
    margin: 0 0 15px 0;
    color: #666;
    font-size: 0.9rem;
}

.btn-close-popup {
    background: #6c757d;
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-family: 'Poppins', sans-serif;
    width: 100%;
}

.btn-close-popup:hover {
    background: #5a6268;
}

/* =========================================================================
   ANIMACIONES DE ENTRADA
   ========================================================================= */
.animate-in {
    animation: fadeInUp 0.6s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================================================
   RESPONSIVE DESIGN
   ========================================================================= */

/* Tablets y pantallas medianas */
@media (max-width: 1024px) {
    /* El hero crece con el contenido para no cortar los botones */
    .hero {
        height: auto;
        min-height: 100vh;
    }
    
    .hero-slider,
    .slider-track,
    .slide {
        height: auto;
    }
    
    .slide .container {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding-top: 120px;
        padding-bottom: 90px; /* espacio para indicadores y botón flotante */
        gap: 2rem;
    }
    
    .hero-image img {
        height: auto; /* evita distorsión en pantallas angostas */
    }
    
    .hero-content {
        animation: none;
    }
    
    .hero-image {
        order: -1;
        max-width: 500px;
        margin: 0 auto;
        animation: none;
    }
    
    .hero-image img {
        animation: none;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .stats {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Móviles */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow-lg);
        transition: left 0.3s ease;
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .hero {
        min-height: 600px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .slider-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .prev-btn {
        left: 15px;
    }
    
    .next-btn {
        right: 15px;
    }
    
    .slider-counter {
        font-size: 1rem;
        padding: 8px 15px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-slider {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }
    
    .footer-brand img {
        margin-left: auto;
        margin-right: auto;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-contact li {
        justify-content: center;
        text-align: left;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* Móviles pequeños */
@media (max-width: 480px) {
    .container {
        width: 95%;
    }
    
    .hero {
        min-height: 550px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-subtitle {
        font-size: 0.9rem;
    }
    
    .slider-btn {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    
    .prev-btn {
        left: 10px;
    }
    
    .next-btn {
        right: 10px;
    }
    
    .slider-indicators {
        bottom: 25px;
    }
    
    .indicator {
        width: 10px;
        height: 10px;
        gap: 8px;
    }
    
    .slider-counter {
        bottom: 25px;
        right: 15px;
        padding: 6px 12px;
        font-size: 0.85rem;
    }
    
    .whatsapp-float {
        width: 55px;
        height: 55px;
        font-size: 1.5rem;
        bottom: 20px;
        right: 20px;
    }
    
    .popup-content {
        width: 95%;
        margin: 20px;
    }
    
    .popup-header h3 {
        font-size: 1.3rem;
    }
    
    .popup-body {
        padding: 20px;
    }
    
    .whatsapp-option {
        padding: 12px;
    }
    
    .option-header h4 {
        font-size: 1rem;
    }
    
    .option-description {
        font-size: 0.85rem;
    }
}

/* =========================================================================
   OPTIMIZACIONES DE RENDIMIENTO
   ========================================================================= */

/* Reducir animaciones en dispositivos de bajo rendimiento */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Modo oscuro (opcional) */
/* Modo oscuro deshabilitado: el sitio mantiene siempre el tema claro de la marca */

/* Print styles */
@media print {
    .header,
    .hero,
    .whatsapp-float,
    .whatsapp-popup,
    .slider-btn,
    .slider-indicators,
    .slider-counter {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .section-title,
    .service-title,
    h1, h2, h3, h4 {
        color: black;
    }
}
