/* ========== BOTÓN FLOTANTE WHATSAPP ========== */
.whatsapp-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    background-color: #25D366;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.45);
    z-index: 9999;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

/* ========== VARIABLES Y RESET V2 ========== */
:root {
    --verde-oscuro-v2: #0d4a2a;
    --verde-claro-v2: #2d7a4a;
    --azul-v2: #4a7ba7;
    --gris-claro-v2: #f8f7f5;
    --gris-medio-v2: #e8e6e1;
    --blanco-v2: #ffffff;
    --texto-v2: #1a1a1a;
    --texto-gris-v2: #666666;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--texto-v2);
    line-height: 1.7;
    background-color: var(--gris-claro-v2);
}

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

/* ========== NAVBAR V2 ========== */
.navbar-v2 {
    background-color: var(--blanco-v2);
    padding: 18px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.navbar-v2 .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-v2 img {
    height: 55px;
    width: auto;
    display: block;
}

.nav-links-v2 {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-links-v2 a {
    text-decoration: none;
    color: var(--texto-v2);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links-v2 a:hover {
    color: var(--verde-claro-v2);
}

.nav-links-v2 a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--verde-claro-v2);
    transition: width 0.3s ease;
}

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

/* ========== HERO V2 ========== */
.hero-v2 {
    padding: 120px 20px;
    background: linear-gradient(135deg, var(--gris-claro-v2) 0%, var(--blanco-v2) 100%);
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero-v2 .container {
    display: flex;
    gap: 80px;
    align-items: center;
}

.hero-v2-content {
    flex: 1;
    animation: fadeInUp 0.8s ease-out;
}

.hero-v2-subtitle {
    color: var(--verde-claro-v2);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.hero-v2-content h1 {
    font-size: 48px;
    line-height: 1.2;
    color: var(--texto-v2);
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-v2-description {
    font-size: 16px;
    color: var(--texto-gris-v2);
    margin-bottom: 35px;
    line-height: 1.8;
    max-width: 500px;
}

.hero-v2-buttons {
    display: flex;
    gap: 15px;
}

.btn-v2 {
    padding: 13px 30px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
}

.btn-v2-dark {
    background-color: var(--verde-oscuro-v2);
    color: var(--blanco-v2);
    box-shadow: 0 4px 15px rgba(13, 74, 42, 0.2);
}

.btn-v2-dark:hover {
    background-color: var(--verde-claro-v2);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 74, 42, 0.3);
}

.btn-v2-outline {
    background-color: transparent;
    color: var(--verde-oscuro-v2);
    border: 2px solid var(--verde-oscuro-v2);
}

.btn-v2-outline:hover {
    background-color: var(--verde-oscuro-v2);
    color: var(--blanco-v2);
    transform: translateY(-2px);
}

.hero-v2-visual {
    flex: 1;
    position: relative;
    height: 400px;
}

.floating-card {
    position: absolute;
    background: var(--blanco-v2);
    padding: 25px 20px;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    text-align: center;
    animation: float 3s ease-in-out infinite;
    border-left: 4px solid var(--verde-claro-v2);
}

.card-1 {
    top: 20px;
    right: 20px;
    animation-delay: 0s;
}

.card-2 {
    top: 180px;
    left: 10px;
    animation-delay: 0.5s;
}

.card-3 {
    top: 280px;
    right: 50px;
    animation-delay: 1s;
}

.card-icon {
    font-size: 32px;
    margin-bottom: 10px;
}

.floating-card p {
    font-size: 14px;
    color: var(--texto-v2);
    font-weight: 600;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* ========== ABOUT V2 ========== */
.about-v2 {
    padding: 100px 20px;
    background-color: var(--blanco-v2);
}

.about-v2-header {
    text-align: center;
    margin-bottom: 60px;
}

.about-v2-header h2 {
    font-size: 40px;
    color: var(--texto-v2);
    margin-bottom: 12px;
}

.about-v2-subtitle {
    font-size: 16px;
    color: var(--texto-gris-v2);
}

.about-v2-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-bottom: 80px;
}

.about-v2-item {
    padding: 40px;
    background: var(--gris-claro-v2);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.about-v2-item:hover {
    background: var(--gris-medio-v2);
    transform: translateY(-5px);
}

.about-v2-item h3 {
    font-size: 18px;
    color: var(--verde-oscuro-v2);
    margin-bottom: 12px;
    font-weight: 700;
}

.about-v2-item p {
    color: var(--texto-gris-v2);
    line-height: 1.8;
}

.values-v2 {
    padding-top: 40px;
    border-top: 2px solid var(--gris-medio-v2);
}

.values-v2 h3 {
    text-align: center;
    font-size: 28px;
    color: var(--texto-v2);
    margin-bottom: 40px;
}

.values-v2-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 25px;
}

.value-v2-card {
    background: linear-gradient(135deg, var(--verde-oscuro-v2) 0%, var(--verde-claro-v2) 100%);
    color: var(--blanco-v2);
    padding: 35px 20px;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.value-v2-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(13, 74, 42, 0.2);
}

.value-v2-number {
    display: block;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
    opacity: 0.8;
}

.value-v2-card h4 {
    font-size: 16px;
    font-weight: 700;
}

/* ========== SERVICES V2 ========== */
.services-v2 {
    padding: 100px 20px;
    background-color: var(--gris-claro-v2);
}

.services-v2-header {
    text-align: center;
    margin-bottom: 70px;
}

.services-v2-header h2 {
    font-size: 40px;
    color: var(--texto-v2);
    margin-bottom: 12px;
}

.services-v2-subtitle {
    font-size: 16px;
    color: var(--texto-gris-v2);
}

.services-v2-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.service-v2-card {
    background: var(--blanco-v2);
    padding: 40px 30px;
    border-radius: 8px;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border-top: 4px solid var(--verde-claro-v2);
    position: relative;
    overflow: hidden;
}

.service-v2-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(45, 122, 74, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-v2-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.service-v2-card:hover::before {
    opacity: 1;
}

.service-v2-number {
    display: inline-block;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--verde-oscuro-v2) 0%, var(--verde-claro-v2) 100%);
    color: var(--blanco-v2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.service-v2-card h3 {
    font-size: 18px;
    color: var(--texto-v2);
    margin-bottom: 12px;
    font-weight: 700;
    position: relative;
    z-index: 2;
}

.service-v2-card p {
    font-size: 14px;
    color: var(--texto-gris-v2);
    line-height: 1.8;
    position: relative;
    z-index: 2;
}

/* ========== CONTACT V2 ========== */
.contact-v2 {
    padding: 100px 20px;
    background-color: var(--blanco-v2);
}

.contact-v2-header {
    text-align: center;
    margin-bottom: 60px;
}

.contact-v2-header h2 {
    font-size: 40px;
    color: var(--texto-v2);
    margin-bottom: 12px;
}

.contact-v2-subtitle {
    font-size: 16px;
    color: var(--texto-gris-v2);
}

.contact-v2-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: start;
}

.contact-v2-info {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

.info-v2-box {
    padding: 30px;
    background: var(--gris-claro-v2);
    border-radius: 8px;
    border-left: 4px solid var(--verde-claro-v2);
}

.info-v2-box h3 {
    color: var(--verde-oscuro-v2);
    font-size: 16px;
    margin-bottom: 12px;
}

.info-v2-box p {
    color: var(--texto-gris-v2);
    font-size: 14px;
    margin-bottom: 6px;
}

.info-v2-box a {
    color: var(--verde-claro-v2);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.info-v2-box a:hover {
    color: var(--verde-oscuro-v2);
}

.contact-v2-form {
    background: var(--gris-claro-v2);
    padding: 40px;
    border-radius: 8px;
}

.form-group-v2 {
    margin-bottom: 20px;
}

.form-group-v2 input,
.form-group-v2 textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--gris-medio-v2);
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    color: var(--texto-v2);
    transition: all 0.3s ease;
    background-color: var(--blanco-v2);
}

.form-group-v2 input:focus,
.form-group-v2 textarea:focus {
    outline: none;
    border-color: var(--verde-claro-v2);
    box-shadow: 0 0 0 3px rgba(45, 122, 74, 0.1);
}

.form-group-v2 textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-v2-submit {
    width: 100%;
    background: linear-gradient(135deg, var(--verde-oscuro-v2) 0%, var(--verde-claro-v2) 100%);
    color: var(--blanco-v2);
    padding: 13px;
}

.btn-v2-submit:hover {
    box-shadow: 0 6px 20px rgba(13, 74, 42, 0.3);
}

/* ========== FOOTER V2 ========== */
.footer-v2 {
    background-color: var(--texto-v2);
    color: var(--blanco-v2);
    padding: 40px 20px;
    text-align: center;
    font-size: 14px;
}

.footer-v2 p a {
    color: var(--verde-claro-v2);
    transition: color 0.3s ease;
}

.footer-v2 p a:hover {
    color: var(--blanco-v2);
}

/* ========== RESPONSIVE V2 ========== */
@media (max-width: 768px) {
    .navbar-v2 .container {
        flex-direction: column;
        gap: 12px;
    }

    .nav-links-v2 {
        gap: 16px;
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-v2 .container {
        flex-direction: column;
        gap: 20px;
    }

    .hero-v2-content {
        text-align: center;
    }

    .hero-v2-content h1 {
        font-size: 32px;
    }

    .hero-v2-buttons {
        flex-wrap: wrap;
        justify-content: center;
    }

    /* Cards flotantes en fila en tablet y mobile */
    .hero-v2-visual {
        display: flex;
        flex-direction: row;
        justify-content: center;
        gap: 12px;
        flex-wrap: wrap;
        height: auto;
        position: static;
        margin-top: 80px;
    }

    .floating-card {
        position: static !important;
        animation: none !important;
        transform: none !important;
        padding: 16px 12px;
        flex: 1;
        min-width: 85px;
        max-width: 120px;
    }

    .card-icon {
        font-size: 24px;
    }

    .about-v2-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .value-v2-card {
        padding: 25px 15px;
    }

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

    .contact-v2-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-v2-form {
        padding: 25px;
    }

    .hero-v2-content h1,
    .about-v2-header h2,
    .services-v2-header h2,
    .contact-v2-header h2 {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .hero-v2-content h1 {
        font-size: 24px;
    }

    .btn-v2 {
        padding: 11px 20px;
        font-size: 13px;
    }

    .hero-v2-buttons {
        flex-direction: column;
    }

    .nav-links-v2 {
        gap: 15px;
        font-size: 12px;
    }

    .about-v2-item {
        padding: 25px;
    }

    .values-v2-grid {
        grid-template-columns: 1fr 1fr;
    }

    .contact-v2-form {
        padding: 20px;
    }

    .info-v2-box {
        padding: 20px;
    }

    .service-v2-card {
        padding: 25px 20px;
    }
}
