/* Paleta de colores */
:root {
    --primary-red: #d32f2f;
    --light-red: #e64a40;
    --dark-red: #9a0007;
    --white: #ffffff;
    --off-white: #f5f5f5;
    --light-gray: #e0e0e0;
    --medium-gray: #9e9e9e;
    --dark-gray: #424242;
}

/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--white);
    color: var(--dark-gray);
    line-height: 1.6;
}

/* Encabezado */
header {
    position: relative;
    height: 400px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    color: var(--white);
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Contenedor del carrusel de fondo */
.carousel-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

/* Overlay oscuro para mejorar la legibilidad del texto */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

/* Logo - Consolidado y optimizado */
.logo {
    width: 450px;
    max-width: 90%;
    height: auto;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    z-index: 2;
}

.logo img {
    width: 100%;
    height: auto;
    max-height: 120px;
    object-fit: contain;
    filter: drop-shadow(3px 3px 6px rgba(0, 0, 0, 0.8));
}

/* Tagline - Consolidado y optimizado */
.tagline {
    font-family: 'Arial', sans-serif;
    font-size: 1.8rem;
    font-weight: 300;
    font-style: italic;
    text-align: center;
    color: var(--primary-red);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.9), 0px 0px 15px rgba(0, 0, 0, 0.7);
    max-width: 800px;
    line-height: 1.4;
    z-index: 2;
}

/* Navegación */
nav {
    background-color: var(--dark-red);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    list-style: none;
}

nav ul li {
    margin: 0;
}

nav ul li a {
    display: block;
    color: var(--white);
    text-decoration: none;
    padding: 1rem 1.5rem;
    transition: background-color 0.3s ease;
}

nav ul li a:hover {
    background-color: var(--primary-red);
}

/* Contenido principal */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

section {
    margin-bottom: 4rem;
    scroll-margin-top: 70px;
}

h2 {
    color: var(--primary-red);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--light-gray);
}

p {
    margin-bottom: 1rem;
}

strong {
    color: var(--dark-red);
}

/* Sección "¿Qué es?" */
#about p {
    font-size: 1.1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Contenedor principal de la sección "¿Qué es?" */
.about-container {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    align-items: center;
    margin-top: 2rem;
}

.about-text {
    flex: 2;
    min-width: 300px;
}

.about-instagram {
    flex: 1;
    min-width: 280px;
    max-width: 400px;
}

/* Sección "Dónde estamos" */
.location-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.info-container {
    flex: 1;
    min-width: 300px;
}

.map-container {
    flex: 2;
    min-width: 300px;
    height: 400px;
    border: 2px solid var(--light-gray);
    border-radius: 5px;
    overflow: hidden;
}

.map-link {
    display: inline-block;
    background-color: var(--primary-red);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    text-decoration: none;
    margin-top: 1rem;
    transition: background-color 0.3s ease;
}

.map-link:hover {
    background-color: var(--dark-red);
}

/* Sección "Características" */
.features-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
}

.features-text {
    flex: 1;
    min-width: 300px;
}

.features-image {
    flex: 1;
    min-width: 300px;
}

.features-image img {
    width: 100%;
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.features-image img:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

/* Sección "Ejemplos de configuraciones" */
.carousel-container {
    position: relative;
    max-width: 800px;
    margin: 2rem auto;
}

.carousel {
    overflow: hidden;
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.carousel-item {
    display: none;
    position: relative;
}

.carousel-item.active {
    display: block;
}

.carousel-item img {
    width: 100%;
    height: auto;
}

.carousel-control {
    position: absolute;
    top: 50%;
    background-color: rgba(211, 47, 47, 0.7);
    color: var(--white);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.carousel-control:hover {
    background-color: var(--primary-red);
}

.carousel-control.prev {
    left: 10px;
}

.carousel-control.next {
    right: 10px;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.indicator {
    width: 12px;
    height: 12px;
    background-color: var(--medium-gray);
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.indicator.active {
    background-color: var(--primary-red);
}

/* SECCIÓN TARIFAS MEJORADA - VERSION 2 */
.pricing-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 3px solid var(--primary-red);
    border-radius: 15px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    max-width: 600px;
    margin: 0 auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.18);
}

.pricing-card h3 {
    color: var(--dark-red);
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.price-highlight {
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary-red);
    display: block;
    margin: 1.5rem 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.price-note {
    color: var(--medium-gray);
    font-size: 1rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.pricing-cta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: var(--primary-red);
    color: var(--white);
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(211, 47, 47, 0.3);
}

.cta-button:hover {
    background-color: var(--dark-red);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(211, 47, 47, 0.4);
}

.cta-whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
}

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

/* SECCIÓN CONTACTO MEJORADA - VERSION 2 */
.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.contact-form, .contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-form h3, .contact-info h3 {
    color: var(--dark-red);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

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

label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--dark-gray);
    font-weight: 500;
}

input, textarea {
    width: 100%;
    padding: 0.9rem;
    border: 2px solid var(--light-gray);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
    resize: none;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-red);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(211, 47, 47, 0.2);
}

.submit-btn {
    background-color: var(--primary-red);
    color: var(--white);
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    width: 100%;
    box-shadow: 0 4px 10px rgba(211, 47, 47, 0.3);
}

.submit-btn:hover {
    background-color: var(--dark-red);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(211, 47, 47, 0.4);
}

.contact-info p {
    margin-bottom: 1rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--off-white);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: var(--light-gray);
    transform: translateX(5px);
}

.contact-item i {
    color: var(--primary-red);
    font-size: 1.3rem;
    margin-top: 0.2rem;
}

.contact-item div {
    flex: 1;
}

.contact-item strong {
    display: block;
    margin-bottom: 0.3rem;
    color: var(--dark-red);
}

.contact-item a {
    color: var(--primary-red);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--dark-red);
    text-decoration: underline;
}

/* Pie de página */
footer {
    background-color: var(--dark-gray);
    color: var(--white);
    padding: 2rem 1rem;
    margin-top: 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.copyright p {
    margin-bottom: 0.5rem;
}

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

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--primary-red);
    color: var(--white);
    border-radius: 50%;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.social-icon:hover {
    background-color: var(--light-red);
    transform: translateY(-3px);
}

/* Carrusel de Instagram compacto */
.instagram-carousel-compact {
    position: relative;
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    height: 450px;
    background: #fff;
}

.instagram-carousel-compact::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    border-radius: 17px;
    z-index: -1;
}

.instagram-carousel-compact .instagram-carousel-container {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    width: 500%;
    height: 100%;
}

.instagram-carousel-compact .instagram-slide {
    flex: 0 0 20%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    position: relative;
}

.instagram-carousel-compact .instagram-slide iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 13px;
}

/* Controles del carrusel compacto */
.instagram-carousel-compact .instagram-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-red);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1rem;
    z-index: 10;
    backdrop-filter: blur(10px);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
}

.instagram-carousel-compact .instagram-controls:hover {
    background: var(--primary-red);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.instagram-carousel-compact .instagram-prev {
    left: 10px;
}

.instagram-carousel-compact .instagram-next {
    right: 10px;
}

/* Indicadores compactos */
.instagram-carousel-compact .instagram-indicators {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    gap: 6px;
}

.instagram-carousel-compact .instagram-indicator {
    width: 8px;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.instagram-carousel-compact .instagram-indicator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    background: white;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.instagram-carousel-compact .instagram-indicator.active::before {
    width: 100%;
    height: 100%;
}

.instagram-carousel-compact .instagram-indicator:hover {
    transform: scale(1.2);
}

/* Enlace de seguir compacto */
.instagram-follow-compact {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
}

.instagram-follow-btn-compact {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: var(--white);
    text-decoration: none;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(211, 47, 47, 0.3);
    position: relative;
    overflow: hidden;
}

.instagram-follow-btn-compact::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.instagram-follow-btn-compact:hover::before {
    left: 100%;
}

.instagram-follow-btn-compact:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(211, 47, 47, 0.4);
}

.instagram-follow-btn-compact i {
    font-size: 1.1rem;
}

/* BOTÓN BACK TO TOP - VERSION 2 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--primary-red);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--dark-red);
    transform: translateY(-5px);
}

/* Sistema de notificaciones - VERSION 2 */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 1rem;
    transform: translateX(400px);
    transition: transform 0.4s ease;
}

.notification.show {
    transform: translateX(0);
}

.notification.hiding {
    transform: translateX(400px);
}

.notification-success {
    background-color: #4CAF50;
    color: white;
}

.notification-error {
    background-color: var(--primary-red);
    color: white;
}

.notification-info {
    background-color: #2196F3;
    color: white;
}

.notification-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.notification-close:hover {
    transform: scale(1.2);
}

/* Diseño responsivo */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
    }
    
    nav ul li a {
        text-align: center;
    }
    
    header {
        height: 300px;
        padding: 15px;
    }
    
    .logo {
        width: 280px;
        margin-bottom: 15px;
        padding: 12px;
    }
    
    .logo img {
        max-height: 80px;
    }
    
    .tagline {
        font-size: 1.4rem;
        padding: 12px 20px;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .carousel-control {
        width: 30px;
        height: 30px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .social-links {
        margin-top: 1rem;
        justify-content: center;
    }

    .about-container {
        flex-direction: column;
        gap: 2rem;
    }
    
    .about-text {
        order: 1;
    }
    
    .about-instagram {
        order: 2;
        max-width: 100%;
    }
    
    .instagram-carousel-compact {
        max-width: 300px;
        height: 400px;
    }
    
    .instagram-carousel-compact .instagram-controls {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .instagram-carousel-compact .instagram-prev {
        left: 8px;
    }
    
    .instagram-carousel-compact .instagram-next {
        right: 8px;
    }
    
    .instagram-follow-btn-compact {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    .pricing-card {
        padding: 1.5rem;
    }

    .price-highlight {
        font-size: 2.2rem;
    }

    .cta-button {
        padding: 0.8rem 1.5rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    header {
        height: 250px;
        padding: 10px;
    }
    
    .logo {
        width: 220px;
        margin-bottom: 10px;
        padding: 10px;
    }
    
    .logo img {
        max-height: 60px;
    }
    
    .tagline {
        font-size: 1.2rem;
        padding: 10px 15px;
    }

    .about-container {
        gap: 1.5rem;
    }
    
    .instagram-carousel-compact {
        max-width: 280px;
        height: 350px;
    }
    
    .instagram-carousel-compact .instagram-indicators {
        bottom: 50px;
    }
    
    .instagram-follow-compact {
        bottom: 10px;
    }
}

/* Animaciones y efectos */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

section {
    animation: fadeIn 0.8s ease-in-out;
}

section h2 {
    animation: slideInFromLeft 0.6s ease-in-out;
}

/* Efecto de entrada para formulario */
.contact-form .form-group {
    opacity: 0;
    animation: slideInFromRight 0.5s ease-in-out forwards;
}

.contact-form .form-group:nth-child(1) {
    animation-delay: 0.1s;
}

.contact-form .form-group:nth-child(2) {
    animation-delay: 0.2s;
}

.contact-form .form-group:nth-child(3) {
    animation-delay: 0.3s;
}

.contact-form .form-group:nth-child(4) {
    animation-delay: 0.4s;
}

/* Efectos adicionales */
nav ul li a {
    position: relative;
    overflow: hidden;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--white);
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
}

.social-icon i {
    transition: transform 0.3s ease;
}

.social-icon:hover i {
    transform: rotate(360deg);
}

section:target {
    animation: pulse 1s ease-in-out;
}

section:target h2 {
    color: var(--light-red);
}

.features-container ul li {
    position: relative;
    list-style: none;
    padding-left: 1.5rem;
    margin-bottom: 0.7rem;
}

.features-container ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-red);
    font-size: 1.5rem;
    line-height: 1;
}

footer {
    background: linear-gradient(to right, var(--dark-gray), var(--dark-red), var(--dark-gray));
}