/*
 * HORQUIRENT - Estilos CSS
 * Landing page profesional para arriendo de grúas horquillas
 */

/* ========================================
   VARIABLES CSS
   ======================================== */
:root {
    /* Colores corporativos (ajustados según el logo de HORQUIRENT) */
    --color-primario: #FFB900;        /* Amarillo corporativo del logo */
    --color-secundario: #1d3557;      /* Azul oscuro */
    --color-acento: #f1faee;          /* Blanco suave */
    --color-oscuro: #14213d;          /* Azul muy oscuro */
    --color-claro: #ffffff;           /* Blanco puro */
    --color-gris: #6c757d;            /* Gris medio */
    --color-gris-claro: #f8f9fa;      /* Gris muy claro */
    --color-whatsapp: #25D366;        /* Verde WhatsApp */

    /* Tipografía */
    --fuente-principal: 'Barlow', sans-serif;
    --fuente-titulos: 'Barlow Condensed', sans-serif;

    /* Espaciado */
    --espaciado-seccion: 80px;
    --espaciado-contenedor: 20px;

    /* Transiciones */
    --transicion-rapida: 0.3s ease;
    --transicion-media: 0.5s ease;

    /* Sombras */
    --sombra-suave: 0 2px 10px rgba(0, 0, 0, 0.1);
    --sombra-media: 0 4px 20px rgba(0, 0, 0, 0.15);
    --sombra-fuerte: 0 8px 30px rgba(0, 0, 0, 0.2);
}

/* ========================================
   RESET Y BASE
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--fuente-principal);
    color: var(--color-oscuro);
    background-color: var(--color-claro);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transicion-rapida);
}

ul {
    list-style: none;
}

/* ========================================
   UTILIDADES
   ======================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--espaciado-contenedor);
}

.section {
    padding: var(--espaciado-seccion) 0;
}

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

.section-title {
    font-family: var(--fuente-titulos);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-secundario);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.title-underline {
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--color-primario), var(--color-secundario));
    margin: 0 auto 20px;
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-gris);
    max-width: 700px;
    margin: 0 auto;
}

/* Botones */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 30px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transicion-rapida);
    border: 2px solid transparent;
    text-align: center;
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--color-primario);
    color: var(--color-claro);
    border-color: var(--color-primario);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--color-primario);
    transform: translateY(-2px);
    box-shadow: var(--sombra-media);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-claro);
    border-color: var(--color-claro);
}

.btn-secondary:hover {
    background-color: var(--color-claro);
    color: var(--color-secundario);
    transform: translateY(-2px);
}

.btn-whatsapp {
    background-color: var(--color-whatsapp);
    color: var(--color-claro);
    border-color: var(--color-whatsapp);
    font-size: 1.1rem;
    padding: 16px 35px;
}

.btn-whatsapp:hover {
    background-color: #1ebe57;
    transform: scale(1.05);
    box-shadow: var(--sombra-fuerte);
}

/* ========================================
   NAVBAR
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--color-claro);
    box-shadow: var(--sombra-suave);
    z-index: 1000;
    transition: var(--transicion-media);
}

.navbar.scrolled {
    box-shadow: var(--sombra-media);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px var(--espaciado-contenedor);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--fuente-titulos);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-secundario);
}

.logo img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 8px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    font-weight: 500;
    color: var(--color-oscuro);
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primario);
    transition: var(--transicion-rapida);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.btn-cta-nav {
    background-color: var(--color-primario);
    color: var(--color-claro);
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transicion-rapida);
}

.btn-cta-nav:hover {
    background-color: var(--color-secundario);
    transform: translateY(-2px);
    box-shadow: var(--sombra-media);
}

/* Menú móvil */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    width: 30px;
    height: 3px;
    background-color: var(--color-secundario);
    border-radius: 2px;
    transition: var(--transicion-rapida);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ========================================
   HERO
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 80px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/banner.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

/* Partículas animadas */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.particle {
    position: absolute;
    border-radius: 50%;
    animation: float linear infinite;
    opacity: 0.6;
}

/* Partículas amarillas */
.particle.yellow {
    background-color: #FFB900;
    box-shadow: 0 0 10px #FFB900;
}

/* Partículas blancas */
.particle.white {
    background-color: #ffffff;
    box-shadow: 0 0 8px #ffffff;
}

/* Animación de flotación */
@keyframes float {
    0% {
        transform: translateY(100vh) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-100vh) translateX(var(--drift)) rotate(360deg);
        opacity: 0;
    }
}

/* Ícono de grúa animado */
.forklift-icon {
    position: absolute;
    bottom: 10%;
    right: 5%;
    width: 150px;
    height: 150px;
    opacity: 0.1;
    z-index: 2;
    animation: iconFloat 6s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.75) 100%);
    z-index: 3;
}

.hero-content {
    position: relative;
    z-index: 4;
    text-align: center;
    color: var(--color-claro);
    padding: 40px 20px;
}

.hero-text {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-family: var(--fuente-titulos);
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 25px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.95;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Animación fade-in para hero */
.animate-fade-in {
    animation: fadeInUp 1s ease forwards;
}

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

/* Indicador de scroll */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
}

.scroll-indicator span {
    display: block;
    width: 30px;
    height: 50px;
    border: 2px solid var(--color-claro);
    border-radius: 25px;
    position: relative;
}

.scroll-indicator span::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    width: 6px;
    height: 6px;
    background-color: var(--color-claro);
    border-radius: 50%;
    transform: translateX(-50%);
    animation: scrollDown 2s ease infinite;
}

@keyframes scrollDown {
    0%, 100% {
        top: 10px;
        opacity: 1;
    }
    50% {
        top: 30px;
        opacity: 0.3;
    }
}

/* ========================================
   QUIÉNES SOMOS
   ======================================== */
.nosotros {
    background-color: var(--color-gris-claro);
}

.nosotros-content {
    max-width: 1000px;
    margin: 0 auto;
}

.nosotros-text {
    text-align: center;
    margin-bottom: 60px;
}

.nosotros-text .lead {
    font-size: 1.25rem;
    color: var(--color-secundario);
    margin-bottom: 20px;
    line-height: 1.8;
}

.nosotros-text p {
    font-size: 1.1rem;
    color: var(--color-gris);
    line-height: 1.8;
}

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

.valor-card {
    background-color: var(--color-claro);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--sombra-suave);
    transition: var(--transicion-media);
}

.valor-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--sombra-fuerte);
}

.valor-icon {
    color: var(--color-primario);
    margin-bottom: 20px;
}

.valor-card h3 {
    font-family: var(--fuente-titulos);
    font-size: 1.5rem;
    color: var(--color-secundario);
    margin-bottom: 15px;
}

.valor-card p {
    color: var(--color-gris);
    line-height: 1.6;
}

/* ========================================
   SERVICIOS
   ======================================== */
.servicios {
    background-color: var(--color-claro);
}

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

.servicio-card {
    background-color: var(--color-claro);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--sombra-suave);
    transition: var(--transicion-media);
}

.servicio-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--sombra-fuerte);
}

.servicio-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.servicio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transicion-media);
}

.servicio-card:hover .servicio-image img {
    transform: scale(1.1);
}

.servicio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(29, 53, 87, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transicion-media);
}

.servicio-card:hover .servicio-overlay {
    opacity: 1;
}

.servicio-content {
    padding: 30px;
}

.servicio-content h3 {
    font-family: var(--fuente-titulos);
    font-size: 1.5rem;
    color: var(--color-secundario);
    margin-bottom: 15px;
}

.servicio-content p {
    color: var(--color-gris);
    margin-bottom: 20px;
    line-height: 1.6;
}

.servicio-features {
    list-style: none;
}

.servicio-features li {
    color: var(--color-gris);
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
}

.servicio-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-primario);
    font-weight: bold;
    font-size: 1.2rem;
}

/* ========================================
   MARCAS
   ======================================== */
.marcas {
    background-color: var(--color-gris-claro);
}

.marcas-carousel-container {
    overflow: hidden;
    position: relative;
    width: 100%;
    padding: 20px 0;
}

.marcas-carousel {
    display: flex;
    gap: 60px;
    animation: scroll-infinite 25s linear infinite;
}

.marcas-carousel:hover {
    animation-play-state: paused;
}

@keyframes scroll-infinite {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.marca-slide {
    flex: 0 0 auto;
    width: 200px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-claro);
    border-radius: 15px;
    padding: 20px;
    box-shadow: var(--sombra-suave);
    transition: var(--transicion-rapida);
}

.marca-slide:hover {
    transform: scale(1.05);
    box-shadow: var(--sombra-media);
}

.marca-slide img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: var(--transicion-rapida);
}

.marca-slide:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* ========================================
   CONTACTO
   ======================================== */
.contacto {
    background-color: var(--color-claro);
}

.contacto-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.contacto-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contacto-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 25px;
    background-color: var(--color-gris-claro);
    border-radius: 15px;
    transition: var(--transicion-rapida);
}

.contacto-item:hover {
    transform: translateX(10px);
    box-shadow: var(--sombra-suave);
}

.contacto-icon {
    color: var(--color-primario);
    flex-shrink: 0;
}

.contacto-item h4 {
    font-family: var(--fuente-titulos);
    font-size: 1.2rem;
    color: var(--color-secundario);
    margin-bottom: 8px;
}

.contacto-item p {
    color: var(--color-gris);
    line-height: 1.6;
}

.contacto-item a {
    color: var(--color-primario);
    font-weight: 600;
}

.contacto-item a:hover {
    text-decoration: underline;
}

.contacto-cta {
    display: flex;
    align-items: center;
}

.cta-box {
    background: linear-gradient(135deg, var(--color-secundario) 0%, var(--color-oscuro) 100%);
    padding: 50px 40px;
    border-radius: 15px;
    text-align: center;
    color: var(--color-claro);
    box-shadow: var(--sombra-media);
}

.cta-box h3 {
    font-family: var(--fuente-titulos);
    font-size: 2rem;
    margin-bottom: 15px;
}

.cta-box p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background-color: var(--color-oscuro);
    color: var(--color-claro);
    padding: 40px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.footer-logo img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

.footer-text {
    text-align: center;
    opacity: 0.9;
}

.footer-text p {
    margin: 5px 0;
    font-size: 0.95rem;
}

.footer-contact {
    text-align: right;
}

.footer-contact p {
    margin: 5px 0;
}

.footer-contact a {
    color: var(--color-primario);
    font-weight: 600;
}

.footer-contact a:hover {
    text-decoration: underline;
}

/* ========================================
   WHATSAPP FLOTANTE
   ======================================== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--color-whatsapp);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--sombra-fuerte);
    z-index: 999;
    animation: pulse 2s ease infinite;
    transition: var(--transicion-rapida);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    animation: none;
}

.whatsapp-float svg {
    color: var(--color-claro);
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
}

/* ========================================
   ANIMACIONES AL SCROLL
   ======================================== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   RESPONSIVE
   ======================================== */

/* Tablets y menores */
@media (max-width: 992px) {
    .section-title {
        font-size: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 300px;
        height: calc(100vh - 80px);
        background-color: var(--color-claro);
        flex-direction: column;
        align-items: flex-start;
        padding: 30px;
        box-shadow: var(--sombra-media);
        transition: var(--transicion-media);
        gap: 20px;
    }

    .nav-menu.active {
        right: 0;
    }

    .menu-toggle {
        display: flex;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-contact {
        text-align: center;
    }
}

/* Móviles */
@media (max-width: 768px) {
    :root {
        --espaciado-seccion: 60px;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

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

    .btn {
        padding: 12px 25px;
        font-size: 0.95rem;
    }

    .servicios-grid,
    .valores-grid {
        grid-template-columns: 1fr;
    }

    .contacto-grid {
        grid-template-columns: 1fr;
    }

    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
    }

    .marca-slide {
        width: 200px;
        height: 120px;
    }
}

/* Móviles pequeños */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .logo span {
        font-size: 1.2rem;
    }

    .cta-box {
        padding: 40px 25px;
    }

    .cta-box h3 {
        font-size: 1.5rem;
    }
}
