/* =============================================
   ESTILOS GENERALES - PULS TECHNOLOGIES LLC
   Paleta: #3ea1d0 | #d4fcfc | #97eeb2
   ============================================= */
:root {
    --primary: #3ea1d0;
    --primary-dark: #2f8bb0;
    --secondary: #97eeb2;
    --secondary-dark: #7ddb9a;
    --light-bg: #d4fcfc;
    --white: #ffffff;
    --dark: #1a1a1a;
    --gray: #555555;
    --border: #cccccc;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    color: var(--dark);
    background: var(--white);
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* =============================================
   HEADER / NAVEGACIÓN
   ============================================= */
.main-header {
    background: var(--white);
    border-bottom: 2px solid var(--primary);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

.logo img {
    height: 50px;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 1.8rem;
}

.main-nav a {
    font-weight: 600;
    color: var(--dark);
}

.main-nav a:hover {
    color: var(--primary);
    text-decoration: none;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--dark);
}

/* =============================================
   HERO SLIDER
   ============================================= */
.hero-slider {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-align: center;
}

.slide.active {
    opacity: 1;
}

.hero-overlay {
    background: rgba(62, 161, 208, 0.6);
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.hero-overlay h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-overlay p {
    font-size: 1.3rem;
    max-width: 600px;
    margin-bottom: 1.5rem;
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active {
    background: var(--white);
}

/* =============================================
   BOTONES GLOBALES
   ============================================= */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: bold;
    margin: 10px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: white;
}

.btn-secondary {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.btn-secondary:hover {
    background: var(--secondary);
    color: var(--dark);
    border-color: var(--secondary);
}

/* =============================================
   FEATURES
   ============================================= */
.features {
    padding: 60px 0;
    text-align: center;
}

.features h2 {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 2rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.feature-item {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid var(--primary);
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(62,161,208,0.2);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-item h3 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

/* =============================================
   ESTADÍSTICAS
   ============================================= */
.stats {
    background: var(--light-bg);
    padding: 50px 0;
    border-top: 2px solid var(--primary);
    border-bottom: 2px solid var(--primary);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item {
    padding: 20px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    display: block;
}

/* =============================================
   GALERÍA DE TRABAJOS
   ============================================= */
.gallery {
    padding: 60px 0;
    text-align: center;
}

.gallery h2 {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.subtitle {
    color: var(--gray);
    margin-bottom: 2rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(62,161,208,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.9);
    z-index: 200;
    justify-content: center;
    align-items: center;
}

.lightbox.open {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 10px;
}

.close-lightbox {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 2.5rem;
    color: white;
    cursor: pointer;
    z-index: 201;
}

/* =============================================
   TESTIMONIOS
   ============================================= */
.testimonials {
    padding: 60px 0;
    text-align: center;
    background: var(--white);
}

.testimonials h2 {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 2rem;
}

.testimonial-carousel {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
    overflow: hidden;
}

.testimonial-track {
    display: flex;
    transition: transform 0.4s ease;
}

.testimonial-card {
    min-width: 100%;
    padding: 2rem 3rem;
    background: var(--light-bg);
    border-radius: 15px;
    border: 1px solid var(--primary);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.testimonial-card p {
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.author {
    font-weight: 700;
    color: var(--primary);
}

.testimonial-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary);
    color: white;
    border: none;
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.testimonial-btn:hover {
    opacity: 1;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

/* =============================================
   CTA CON TARJETA BLANCA
   ============================================= */
.cta {
    background-size: cover;
    background-position: center;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.cta-overlay {
    background: rgba(0, 0, 0, 0.5);
    width: 100%;
    padding: 60px 20px;
    display: flex;
    justify-content: center;
}

.cta-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    padding: 50px 40px;
    max-width: 600px;
    text-align: center;
    color: var(--dark);
}

.cta-card h2 {
    font-size: 2.3rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.cta-card p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #444;
}

.cta-card .btn-primary {
    padding: 14px 40px;
    font-size: 1.1rem;
}

/* =============================================
   PÁGINAS DE CONTENIDO (SERVICIOS, PRECIOS, CONTACTO, LEGALES)
   ============================================= */
.page-content {
    padding: 60px 0;
}

.page-content h1 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.2rem;
    color: var(--primary);
}

/* Servicios */
.services-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
}

.service {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 15px;
    border-left: 6px solid var(--primary);
}

.service h2 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

/* Precios */
.currency-note {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--gray);
}

.pricing-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    margin-top: 2rem;
}

.pricing-card {
    background: var(--light-bg);
    border-radius: 15px;
    padding: 2rem;
    flex: 1 1 250px;
    max-width: 320px;
    text-align: center;
    border: 2px solid var(--border);
    transition: transform 0.3s;
}

.pricing-card:hover {
    transform: translateY(-5px);
}

.pricing-card.destacado {
    border-color: var(--primary);
    transform: scale(1.03);
    background: var(--white);
    box-shadow: 0 8px 20px rgba(62,161,208,0.2);
}

.pricing-card.destacado:hover {
    transform: scale(1.05);
}

.price {
    font-size: 2.5rem;
    font-weight: bold;
    margin: 1rem 0;
    color: var(--primary);
}

.price span {
    font-size: 1rem;
    color: var(--gray);
}

.pricing-card ul {
    list-style: none;
    text-align: left;
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.pricing-card li::before {
    content: "✓ ";
    color: var(--secondary);
    font-weight: bold;
}

/* Contacto */
.contact-details {
    margin: 2rem 0;
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid var(--primary);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 500px;
}

.contact-form label {
    font-weight: bold;
}

.contact-form input,
.contact-form textarea {
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
}

.contact-form button {
    align-self: flex-start;
}

/* Páginas legales */
.legal {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* =============================================
   FOOTER
   ============================================= */
.main-footer {
    background: var(--light-bg);
    color: var(--dark);
    padding: 40px 0 20px;
    border-top: 3px solid var(--primary);
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-legal {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-legal a {
    font-weight: 600;
    color: var(--primary);
}

.footer-contact p {
    margin: 5px 0;
    color: var(--gray);
}

.footer-contact a {
    color: var(--primary);
}

.footer-copy {
    color: var(--gray);
    font-size: 0.9rem;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
    .main-nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        background: white;
        width: 100%;
        border-bottom: 2px solid var(--primary);
    }

    .main-nav ul.active {
        display: flex;
    }

    .mobile-toggle {
        display: block;
    }

    .hero-slider {
        height: 400px;
    }

    .hero-overlay h1 {
        font-size: 2rem;
    }

    .pricing-card.destacado {
        transform: none;
    }

    .pricing-card.destacado:hover {
        transform: translateY(-5px);
    }

    .cta-card {
        padding: 30px 20px;
    }

    .cta-card h2 {
        font-size: 1.8rem;
    }
}