/* ========================================
   ESTILOS GENERALES
======================================== */
:root{
    --carousel-bg:royalblue;
    --header-top-offset: 0px; /* Default value for desktop */
    --whatsapp-bottom-offset: 20px; /* Adjust this value to move the WhatsApp button up or down */
    --whatsapp-initial-scale: 1.4; /* Scale factor for initial attention animation */
    --whatsapp-scroll-scale: 2.2; /* Scale factor for scroll attention animation */
    --whatsapp-animation-duration: 2.0s; /* Duration of initial animation */
    --whatsapp-scroll-duration: 2s; /* Duration of scroll animation */
    --whatsapp-primary-color: #25D366; /* Primary WhatsApp color */
    --whatsapp-secondary-color: #128C7E; /* Secondary WhatsApp color for attention */
}

/* Mobile-specific values */
@media (max-width: 768px) {
    :root {
        --header-top-offset: 10px; /* Increased value for mobile devices */
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color:royalblue;
    /*background: linear-gradient(135deg, gold 0%, goldenrod 100%);*/
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   BOTÓN FLOTANTE WHATSAPP
======================================== */
.whatsapp-float {
    position: fixed;
    bottom: var(--whatsapp-bottom-offset);
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--whatsapp-primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
    z-index: 10000;
    transition: all 0.3s ease;
    animation: whatsappPulse 2s infinite;
}

/* Initial attention animation */
.whatsapp-float.initial-animation {
    animation: whatsappAttention var(--whatsapp-animation-duration) ease 1s 1 normal forwards;
}

.whatsapp-float.scroll-animation {
    animation: whatsappScrollAttention var(--whatsapp-scroll-duration) ease;
}

.whatsapp-float:hover {
    background: #128C7E;
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

.whatsapp-float svg {
    transition: transform 0.3s ease;
}

.whatsapp-float:hover svg {
    transform: scale(1.1);
}

/* Animación de pulso para llamar la atención */
@keyframes whatsappPulse {
    0% {
        box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
    }
    50% {
        box-shadow: 0 4px 16px rgba(37, 211, 102, 0.6);
        transform: scale(1.05);
    }
    100% {
        box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
    }
}

/* Animación inicial de atención */
@keyframes whatsappAttention {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
    }
    50% {
        transform: scale(var(--whatsapp-initial-scale));
        box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
        background: var(--whatsapp-secondary-color);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
    }
}

/* Animación de atención al hacer scroll */
@keyframes whatsappScrollAttention {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(var(--whatsapp-scroll-scale));
        background: var(--whatsapp-secondary-color);
    }
    100% {
        transform: scale(1);
    }
}

/* Responsive para WhatsApp */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: calc(var(--whatsapp-bottom-offset) + 10px);
        right: 20px;
    }
    
    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 480px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: calc(var(--whatsapp-bottom-offset) + 15px);
        right: 15px;
    }
    
    .whatsapp-float svg {
        width: 26px;
        height: 26px;
    }
}

/* ========================================
   HEADER Y NAVEGACIÓN
======================================== */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: var(--header-top-offset);
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    position: relative;
}

.logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: transform 0.3s ease;
}

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

.logo-img {
   width: 555px;
    height: 45px;
    object-fit: contain;
    border-radius: 8px;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-right: 5px; /* Empujar más a la izquierda */
}

.logo-text {
    font-size: 1.8rem;
    font-weight: bold;
    color: #667eea;
}

.logo:hover .logo-img {
    transform: rotate(5deg);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: #667eea;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #667eea;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Mobile menu styles */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Mobile menu animation */
.menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* ========================================
   SECCIÓN HERO
======================================== */
.hero {
    padding: 120px 0 80px;
    text-align: center;
    color: white;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.2s both;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeInUp 1s ease 0.4s both;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 107, 107, 0.4);
}



/* ========================================
   SECCIÓN SERVICIOS
======================================== */
.services {
    padding: 80px 0;
    background: white;
}

.services h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
}

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

.service-card {
    background: linear-gradient(145deg, #f8f9fa, #e9ecef);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: #667eea;
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.service-card p {
    color: #666;
    line-height: 1.8;
}

.price {
    font-size: 1.2rem;
    font-weight: bold;
    color: #667eea;
    margin-top: 1rem;
}

/* ========================================
   SECCIÓN PRODUCTOS
======================================== */
.products {
    padding: 80px 0;
    background: linear-gradient(135deg, #c0b5f3 0%, #aab0ec 100%);
    color: rgb(19, 18, 18);
}

.products h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

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

.product-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.product-card:hover {
    transform: scale(1.05);
}

.product-card h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

/* ========================================
   SECCIÓN CONTACTO
======================================== */
.contact {
    padding: 80px 0;
    background: #2c3e50;
    color: white;
}

.contact h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.contact-info-inline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
    gap: 2rem;
}

.contact-item-inline {
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
    flex: 1;
}

.contact-item-inline h4 {
    font-size: 1rem;
    margin-bottom: 5px;
    color: #3498db;
}

.contact-item-inline p {
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.4;
}

/* Responsive para contacto */
@media (max-width: 768px) {
    .contact-info-inline {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .contact-item-inline {
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .contact-item-inline h4 {
        font-size: 0.9rem;
    }
    
    .contact-item-inline p {
        font-size: 0.8rem;
    }
}

/* ========================================
   FOOTER
======================================== */
footer {
    background: #1a252f;
    color: white;
    text-align: center;
    padding: 2rem 0;
}

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

/* Animaciones de scroll */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   RESPONSIVE DESIGN
======================================== */
/* Desktop styles for logo positioning */
@media (min-width: 769px) {
    .logo {
        position: static;
        transform: none;
    }
}

/* Mobile menu responsive styles */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .services-grid,
    .products-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        z-index: 1000;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        transform: translateY(-10px);
        padding: 1rem 0;
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-links li {
        width: 100%;
        text-align: left;
    }

    .nav-links a {
        font-size: 1.1rem;
        padding: 0.8rem 1.5rem;
        display: block;
        color: #333;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .nav-links a:hover {
        background: rgba(102, 126, 234, 0.1);
        color: #667eea;
    }

    .nav-links li:last-child a {
        border-bottom: none;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 100px 0 60px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .services,
    .products,
    .contact {
        padding: 60px 0;
    }

    .service-card,
    .product-card {
        padding: 1.5rem;
    }
}
}