/* ===========================
   Variables y Reset
   =========================== */

:root {
    --primary-color: #FF6B6B;
    --secondary-color: #4ECDC4;
    --dark-color: #2C3E50;
    --light-color: #ECF0F1;
    --text-color: #333333;
    --border-radius: 8px;
    --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
}

/* ===========================
   Container
   =========================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===========================
   Header y Navegación
   =========================== */

.header {
    background-color: var(--dark-color);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-bottom: 3px solid var(--primary-color);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.header-brand:hover {
    transform: scale(1.05);
}

.logo-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    transition: var(--transition);
}

.header-brand:hover .logo-img {
    filter: drop-shadow(0 4px 12px rgba(255, 107, 107, 0.4));
    transform: rotate(5deg);
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, var(--primary-color), #FF8585);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar {
    flex: 1;
}

.navbar ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    font-size: 1rem;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.btn-header {
    background: linear-gradient(135deg, var(--primary-color), #FF8585);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    border: 2px solid transparent;
    transition: var(--transition);
}

.btn-header:hover {
    border-color: var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.3);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 5px;
    padding: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: white;
    border-radius: 2px;
    transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ===========================
   Hero Section
   =========================== */

.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 100px 20px;
    text-align: center;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* ===========================
   Botones
   =========================== */

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #E85555;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

/* ===========================
   Servicios Section
   =========================== */

.servicios {
    padding: 80px 20px;
    background-color: #f9f9f9;
}

.servicios h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--dark-color);
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.servicio-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    text-align: center;
}

.servicio-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.servicio-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.servicio-card p {
    color: #666;
    line-height: 1.8;
}

/* ===========================
   Galería Section
   =========================== */

.galeria {
    padding: 80px 20px;
}

.galeria h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--dark-color);
}

.galeria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.galeria-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    cursor: pointer;
    aspect-ratio: 4 / 3;
    background-color: #f0f0f0;
}

.galeria-item picture {
    display: block;
    width: 100%;
    height: 100%;
}

.galeria-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.galeria-item:hover .galeria-image {
    transform: scale(1.12);
}

.galeria-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 107, 107, 0);
    transition: background 0.4s ease;
    pointer-events: none;
    z-index: 2;
}

.galeria-item:hover::after {
    background: rgba(255, 107, 107, 0.1);
}

/* ===========================
   Contacto Section
   =========================== */

.contacto {
    padding: 80px 20px;
    background-color: #f9f9f9;
}

.contacto h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.contacto-description {
    text-align: center;
    color: #666;
    margin-bottom: 2.5rem;
    font-size: 1rem;
}

.contacto .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 32px;
    background: linear-gradient(135deg, #25D366, #20BA5A);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
    border: none;
    cursor: pointer;
}

.whatsapp-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4);
}

.whatsapp-btn:active {
    transform: translateY(-1px) scale(1.02);
}

.whatsapp-btn img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.whatsapp-btn svg {
    width: 24px;
    height: 24px;
}

/* ===========================
   Image Modal / Lightbox
   =========================== */

.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.image-modal.active {
    display: flex;
}

.modal-image {
    max-width: 90%;
    max-height: 90%;
    width: auto;
    height: auto;
    object-fit: contain;
    animation: zoomIn 0.3s ease-out;
}

.modal-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    z-index: 1001;
}

.modal-close:hover {
    transform: scale(1.2);
    color: var(--primary-color);
}

@keyframes zoomIn {
    from {
        transform: scale(0.5);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* ===========================
   Testimoniales Section
   =========================== */

.testimoniales {
    padding: 80px 20px;
    background: linear-gradient(135deg, #f9f9f9, #ffffff);
}

.testimoniales h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--dark-color);
}

.testimoniales-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonio-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border-left: 4px solid var(--primary-color);
}

.testimonio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.stars {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.testimonio-text {
    font-style: italic;
    color: #555;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.testimonio-autor {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.testimonio-evento {
    color: var(--secondary-color);
    font-size: 0.9rem;
    font-weight: 500;
}

/* ===========================
   Footer
   =========================== */

.footer {
    background-color: var(--dark-color);
    color: white;
    padding: 3rem 2rem 2rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-info h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.footer-info p {
    margin: 0.5rem 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

.contact-info {
    margin-top: 1rem;
}

.contact-info a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition);
}

.contact-info a:hover {
    color: white;
    text-decoration: underline;
}

.footer-links h4,
.footer-legal h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-links ul,
.footer-legal ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li,
.footer-legal li {
    margin-bottom: 0.7rem;
}

.footer-links a,
.footer-legal a {
    color: #ddd;
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.95rem;
}

.footer-links a:hover,
.footer-legal a:hover {
    color: var(--primary-color);
    padding-left: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 2rem;
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-bottom p {
    margin: 0;
    text-align: center;
    font-size: 0.9rem;
}

.footer p {
    margin: 0;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    transition: var(--transition);
    text-decoration: none;
}

.social-btn.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-btn.instagram:hover {
    transform: scale(1.15) rotate(5deg);
}

.social-btn.tiktok {
    background: linear-gradient(135deg, #000000, #25f4ee);
}

.social-btn.tiktok:hover {
    transform: scale(1.15) rotate(-5deg);
}

.social-btn svg {
    width: 22px;
    height: 22px;
}

/* ===========================
   Floating WhatsApp Button
   =========================== */

.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #25D366, #20BA5A);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    text-decoration: none;
    transition: var(--transition);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.5);
}

.floating-whatsapp.show {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.floating-whatsapp:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
}

.floating-whatsapp:active {
    transform: scale(0.95);
}

.floating-whatsapp svg {
    width: 32px;
    height: 32px;
}

.floating-whatsapp img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

/* ===========================
   Floating Instagram Button
   =========================== */

.floating-instagram {
    position: fixed;
    bottom: 30px;
    right: 100px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(220, 39, 67, 0.4);
    text-decoration: none;
    transition: var(--transition);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.5);
}

.floating-instagram.show {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.floating-instagram:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(220, 39, 67, 0.5);
}

.floating-instagram:active {
    transform: scale(0.95);
}

.floating-instagram svg {
    width: 32px;
    height: 32px;
}

/* Tablets (768px and up) */
@media (max-width: 768px) {
    .navbar ul {
        flex-direction: column;
        gap: 1rem;
    }

    .menu-toggle {
        display: flex;
    }

    .header-actions {
        gap: 1rem;
    }

    .btn-header {
        display: none;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .servicios h2,
    .galeria h2,
    .contacto h2 {
        font-size: 2rem;
    }

    .servicios-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
    }

    .galeria-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
    }

    .galeria-item {
        aspect-ratio: 4 / 3;
    }

    .testimoniales h2 {
        font-size: 2rem;
    }

    .testimoniales-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
}

/* Mobile (480px and down) */
@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    .header-content {
        flex-direction: row;
        gap: 0.5rem;
    }

    .header-brand {
        gap: 0.5rem;
    }

    .logo-img {
        width: 40px;
        height: 40px;
    }

    .logo-text {
        font-size: 1.4rem;
    }

    .navbar {
        display: none;
    }

    .navbar.active {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--dark-color);
        flex-direction: column;
        padding: 1rem;
    }

    .navbar ul {
        flex-direction: column;
        gap: 0.5rem;
    }

    .nav-link {
        font-size: 0.95rem;
    }

    .header-actions {
        gap: 0.5rem;
    }

    .menu-toggle {
        display: flex;
    }

    .hero {
        padding: 50px 20px;
        min-height: 400px;
    }

    .hero h2 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .servicios,
    .galeria,
    .contacto {
        padding: 50px 20px;
    }

    .servicios h2,
    .galeria h2,
    .contacto h2 {
        font-size: 1.6rem;
        margin-bottom: 2rem;
    }

    .servicios-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .galeria-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }

    .galeria-item {
        aspect-ratio: 4 / 3;
    }

    .whatsapp-btn {
        padding: 14px 24px;
        font-size: 14px;
    }

    .testimoniales {
        padding: 50px 20px;
    }

    .testimoniales h2 {
        font-size: 1.6rem;
    }

    .testimoniales-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .testimonio-card {
        padding: 1.5rem;
    }

    .floating-whatsapp {
        bottom: 100px;
        right: 20px;
        width: 50px;
        height: 50px;
    }

    .floating-instagram {
        bottom: 30px;
        right: 20px;
        width: 50px;
        height: 50px;
    }

    .floating-whatsapp svg,
    .floating-instagram svg {
        width: 26px;
        height: 26px;
    }

    .social-links {
        gap: 1rem;
    }

    .social-btn {
        width: 36px;
        height: 36px;
    }

    .social-btn svg {
        width: 20px;
        height: 20px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.95rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-info h3,
    .footer-links h4,
    .footer-legal h4 {
        text-align: center;
    }

    .footer-links a,
    .footer-legal a {
        font-size: 0.9rem;
    }
}

/* Extra small devices (below 320px) */
@media (max-width: 320px) {
    .hero h2 {
        font-size: 1.5rem;
    }

    .servicios h2,
    .galeria h2,
    .contacto h2 {
        font-size: 1.4rem;
    }
}
