
/* Variables */
:root {
    --primary-color: #4a90e2;
    --secondary-color: #87ceeb;
    --dark-color: #1e3a8a;
    --light-color: #f0f7ff;
    --accent-color: #3b82f6;
    --text-color: #333;
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: #fff;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 50px;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.logo-img {
    height: 50px;
    width: auto;
    max-width: 150px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    margin: 5px 0;
    transition: var(--transition);
    border-radius: 2px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.20) 0%, rgba(135, 206, 235, 0.20) 100%), url('oficina.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    padding: 100px 20px;
    text-align: center;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    animation: fadeInDown 0.8s ease;
}

.hero-content .subtitle {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.hero-content .tagline {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    opacity: 0.95;
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

.hero-logo {
    height: 150px;
    width: auto;
    max-width: 350px;
    margin: 1.5rem auto;
    animation: fadeInUp 0.8s ease 0.3s backwards;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.6s backwards;
}

/* Buttons */
.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(--accent-color);
    color: white;
}

.btn-primary:hover {
    background-color: #d9925f;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(232, 168, 124, 0.4);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background-color: white;
    color: var(--primary-color);
}

.btn-whatsapp {
    background-color: #25d366;
    color: white;
}

.btn-whatsapp:hover {
    background-color: #20ba5a;
    transform: translateY(-2px);
}

.btn-email {
    background-color: #ea4335;
    color: white;
}

.btn-email:hover {
    background-color: #d33426;
    transform: translateY(-2px);
}

/* About Section */
.about {
    padding: 80px 20px;
    background-color: var(--light-color);
}

.about h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 3rem;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-content p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: var(--text-color);
}

.about-content strong {
    color: var(--primary-color);
}

/* Services Section */
.services {
    padding: 80px 20px;
}

.services h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 3rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    position: relative;
    height: 320px;
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(74, 144, 226, 0.3);
}

.card-image {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-size: cover;
    background-position: center;
    transition: var(--transition);
    filter: blur(0px);
}

.service-card:hover .card-image {
    transform: scale(1.05);
    filter: blur(5px);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(74, 144, 226, 0.70);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 2;
}

.service-card:hover .card-overlay {
    opacity: 1;
}

.card-overlay h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.card-overlay p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Contact Section */
.contact {
    padding: 80px 20px;
    background: linear-gradient(135deg, var(--light-color) 0%, #f0e6f0 100%);
}

.contact h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 3rem;
}

.contact-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
    text-align: center;
}

.contact-info h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-info p {
    font-size: 1rem;
    color: var(--text-color);
    margin-bottom: 2rem;
}

.contact-buttons {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.btn-icon-link {
    display: inline-block;
    text-decoration: none;
    transition: var(--transition);
}

.contact-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
    transition: var(--transition);
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.1));
}

.btn-icon-link:hover .contact-icon {
    transform: scale(1.15);
    filter: drop-shadow(0 5px 15px rgba(74, 144, 226, 0.4));
}

/* CTA Final */
.cta-final {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
}

.cta-final p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

/* Map Section */
.map-section {
    padding: 80px 20px;
    background-color: var(--light-color);
}

.map-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.map-address {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 2rem;
    font-weight: 500;
}

.map-link {
    display: block;
    margin-bottom: 2rem;
    text-decoration: none;
}

.map-link iframe {
    box-shadow: 0 5px 15px rgba(74, 144, 226, 0.2);
}

.map-button {
    text-align: center;
    margin-top: 2rem;
}

/* Footer */
.footer {
    background-color: var(--dark-color);
    color: white;
    text-align: center;
    padding: 2rem 20px;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.help-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99;
}

.help-button a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    overflow: visible;
    position: relative;
}

.help-button a::before {
    content: '¿Necesitas ayuda? ¡Contáctame!';
    position: absolute;
    right: 130px;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(74, 144, 226, 0.95);
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    white-space: nowrap;
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 1;
    transition: opacity 0.3s ease;
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.help-button a.show::before {
    opacity: 1;
}

.help-button a:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.help-button img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        flex-direction: column;
        background-color: white;
        gap: 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu a {
        display: block;
        padding: 1rem 20px;
        border-bottom: 1px solid #eee;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(10px, 10px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content .subtitle {
        font-size: 1.6rem;
    }

    .hero-logo {
        height: 120px;
        max-width: 280px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .about h2,
    .services h2,
    .contact h2 {
        font-size: 2rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .contact-buttons {
        gap: 1.5rem;
    }

    .contact-icon {
        width: 70px;
        height: 70px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        height: 280px;
    }

    .card-overlay {
        opacity: 1;
        background: rgba(74, 144, 226, 0.70);
    }

    .card-overlay h3 {
        font-size: 1.3rem;
    }

    .card-overlay p {
        font-size: 0.9rem;
    }

    .map-section h2 {
        font-size: 2rem;
    }

    .map-link iframe {
        height: 350px;
    }

    .cta-final p {
        font-size: 1.1rem;
    }

    .help-button {
        bottom: 20px;
        right: 20px;
    }

    .help-button a {
        width: 85px;
        height: 85px;
    }

    .help-button a::before {
        right: 95px;
        font-size: 0.8rem;
        padding: 7px 11px;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.2rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content .subtitle {
        font-size: 1.3rem;
    }

    .hero-content .tagline {
        font-size: 0.95rem;
    }

    .hero-logo {
        height: 100px;
        max-width: 240px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.95rem;
    }

    .about h2,
    .services h2,
    .contact h2 {
        font-size: 1.8rem;
    }

    .service-card {
        height: 250px;
    }

    .card-overlay h3 {
        font-size: 1.2rem;
    }

    .card-overlay p {
        font-size: 0.85rem;
    }

    .map-section h2 {
        font-size: 1.6rem;
    }

    .map-address {
        font-size: 0.95rem;
    }

    .map-link iframe {
        height: 300px;
    }

    .contact-buttons {
        gap: 1rem;
    }

    .contact-icon {
        width: 60px;
        height: 60px;
    }

    .about-content p {
        font-size: 1rem;
    }

    .cta-final p {
        font-size: 1rem;
    }

    .help-button {
        bottom: 15px;
        right: 15px;
    }

    .help-button a {
        width: 65px;
        height: 65px;
    }

    .help-button a::before {
        right: 75px;
        font-size: 0.7rem;
        padding: 5px 8px;
        white-space: normal;
        word-break: break-word;
        width: 80px;
        text-align: center;
    }
}

