/*!
Theme Name: Transportes  Alfaro
Theme URI: http://underscores.me/
Author: Ederish Herrera
Author URI: https://ederish.github.io/Mi-Portafolio/
Description: Landingpage  para sitios de mudanzas
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: alfaro
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.

Transportes  Alfaro is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
*/
:root {
    --color-primario: #1d2440;
    --color-secundario-1: #f69a0b;
    --color-secundario-2: #fdbf5c;
    --color-texto-principal: #333333;
    --color-texto-claro: #ffffff;
    --fuente-principal: "Poppins", sans-serif;
    --fuente-secundaria: "Roboto", sans-serif;
}

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

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

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--fuente-principal);
    font-weight: 700;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
/* TOPBAR*/
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f69a0b;
  padding: 10px 40px;
  flex-wrap: wrap;
  position:sticky;      
  width: 100%;
  top:0;          
  left: 0;
  z-index:-1;
  transition: top 0.4s ease;
}

.header {
  top: 0;
}

.topbar-left, .topbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.topbar .item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 14px;
}

.topbar .item i {
  color: #007bff;
}

.socials {
  display: flex;
  gap: 8px;
}

.socials a {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 4px;
  color: #007bff;
  font-size: 14px;
  transition: all 0.3s ease;
  text-decoration: none;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.socials a:hover {
  background: #007bff;
  color: #fff;
}

/* Navigation */
.navbar {
    background: var(--color-primario);
    padding: 15px 0;
    position:sticky;
    top:0;
    width: 100%;
    z-index: 1000;
    transition: top 0.4s ease;
}

.nav-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    color: var(--color-texto-claro);
    font-family: var(--fuente-principal);
    font-weight: 700;
}

.nav-logo i {
    font-size: 24px;
    color: var(--color-secundario-1);
    margin-right: 10px;
}

.nav-logo span {
    font-size: 24px;
    margin-right: 5px;
}

.nav-logo small {
    font-size: 10px;
    opacity: 0.8;
}

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

.nav-menu a {
    color: var(--color-texto-claro);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: var(--color-secundario-1);
}

.nav-menu a.active {
    text-decoration: underline;
    text-decoration-color: var(--color-secundario-1);
    text-decoration-thickness: 2px;
}

.nav-actions {
    display: flex;
    gap: 15px;
}

.track-btn,
.member-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.track-btn {
    background: var(--color-secundario-1);
    color: var(--color-texto-claro);
}

.member-btn {
    display: none;
    background: transparent;
    color: var(--color-texto-claro);
    border: 1px solid var(--color-texto-claro);
}

.track-btn:hover,
.member-btn:hover {
    transform: translateY(-2px);
}

/* Hero Section */
#hero {
    height: 100vh;
    position: relative;
    background-color: var(--color-primario);
}

.hero-slider {
    height: 100%;
    background: url("");
    background-size: cover;
    background-position: center;
}

.swiper-slide {
    background: linear-gradient(135deg, #1d2440a6, #2a3a5c57);

    position: relative;
    overflow: hidden;
}

.hero-slide-1 {}

.hero-slide-2,
.hero-slide-3 {}

.hero-content {
    height: 100%;
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.hero-text {
    flex: 1;
    color: var(--color-texto-claro);
    max-width: 550px;
}

.hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.text-orange {
    color: var(--color-secundario-1);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 20px;
    opacity: 0.9;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 40px;
    opacity: 0.8;
    max-width: 500px;
}

.hero-stats {
    margin-bottom: 40px;
}

.customer-rating {
    display: flex;
    align-items: center;
    gap: 15px;
}

.rating-avatars {
    display: flex;
    gap: -10px;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--color-texto-claro);
    margin-left: -10px;
}

.avatar:first-child {
    margin-left: 0;
}

.rating-text strong {
    display: block;
    font-size: 1.1rem;
}

.stars {
    color: var(--color-secundario-1);
}

.hero-image {
    flex: 1;
    text-align: center;
}

.truck-image {
    max-width: 100%;
    height: auto;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.cta-button {
    background: var(--color-secundario-1);
    color: var(--color-texto-claro);
    border: none;
    padding: 15px 30px;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.cta-button:hover {
    background: var(--color-secundario-2);
    transform: translateY(-2px);
}

/* Swiper Navigation */
.swiper-button-next,
.swiper-button-prev {
    color: var(--color-secundario-1);
}

.swiper-pagination-bullet {
    background: var(--color-texto-claro);
    opacity: 0.5;
}

.swiper-pagination-bullet-active {
    background: var(--color-secundario-1);
    opacity: 1;
}

/* Services Section */
.services-section {
    padding: 100px 0;
    background: #f8f9fa;
}

.services-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.service-image-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    height: 400px;
}

.service-img-1 {
    grid-row: 1 / 3;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
}


.section-tag {
    color: var(--color-secundario-1);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-left: 30px;
}

.section-tag::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 2px;
    background: var(--color-secundario-1);
}

.services-text h2 {
    font-size: 2.5rem;
    margin: 20px 0;
    line-height: 1.3;
}

.services-text p {
    margin-bottom: 40px;
    opacity: 0.8;
}

.skills-bars {
    margin-bottom: 40px;
}

.skill-item {
    margin-bottom: 25px;
}

.skill-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-weight: 600;
}

.skill-percentage {
    color: var(--color-secundario-1);
}

.skill-bar {
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--color-secundario-1), var(--color-secundario-2));
    border-radius: 4px;
    transition: width 2s ease-in-out;
}

/* FAQ Section */
.faq-section {
    padding: 100px 0;
    background: #ffffff;
    color: #000000;
}

.faq-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
    padding: 0 100px;
}

.faq-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.forklift-image img {
    width: 300px;
    height: auto;
}

.faq-text h2 {
    font-size: 2.5rem;
    margin: 20px 0 40px;
    line-height: 1.3;
}

.faq-items {
    margin-top: 20px;
}

.faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 15px 0;
    font-weight: 600;
    color: #000000;
}

.faq-question i {
    color: var(--color-secundario-1);
    transition: transform 0.3s;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 0 15px;
    opacity: 0.8;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    display: none;
    color: #000000;
    width: 100%;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    max-width: 800px;
    display: block;
}

.video-container {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
}

.video-thumbnail {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: var(--color-secundario-1);
    border: none;
    border-radius: 50%;
    color: var(--color-texto-claro);
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s;
}

.play-button:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

/* Contact Section */
.contact-section {
    padding: 100px 0;
    background: var(--color-primario);
    color: var(--color-texto-claro);
}

.contact-section .section-header {
    margin-bottom: 60px;
}

.contact-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #ffffff;
}

.contact-form {
    max-width: 800px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

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

/* Estilo para inputs blancos en el formulario */
.contact-form input,
.contact-form textarea {
    background: #ffffff;
    color: #000000;
    border: 1px solid #cccccc;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #000000;
    outline: none;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ffffff;
}

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

/* Footer */
.footer {
    background: var(--color-primario);
    color: var(--color-texto-claro);
    padding: 80px 50px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    font-family: var(--fuente-principal);
    font-weight: 700;
}

.footer-logo i {
    font-size: 24px;
    color: var(--color-secundario-1);
    margin-right: 10px;
}

.footer-logo span {
    font-size: 24px;
    margin-right: 5px;
}

.footer-logo small {
    font-size: 10px;
    opacity: 0.8;
}

.footer-column p {
    margin-bottom: 30px;
    opacity: 0.8;
}

.footer-column h4 {
    margin-bottom: 25px;
    font-size: 1.2rem;
    position: relative;
    padding-left: 20px;
}

.footer-column h4::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 20px;
    background: var(--color-secundario-1);
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: var(--color-texto-claro);
    text-decoration: none;
    opacity: 0.8;
    transition: all 0.3s;
    position: relative;
    padding-left: 15px;
}

.footer-column ul li a::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--color-secundario-1);
    opacity: 0;
    transition: opacity 0.3s;
}

.footer-column ul li a:hover {
    opacity: 1;
    color: var(--color-secundario-1);
    padding-left: 20px;
}

.footer-column ul li a:hover::before {
    opacity: 1;
}

.contact-details .contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-details .contact-item i {
    color: var(--color-secundario-1);
    font-size: 18px;
    margin-top: 2px;
}

.contact-details .contact-item div {
    display: flex;
    flex-direction: column;
}

.contact-info .contact-item {
    background: rgba(246, 154, 11, 0.1);
    padding: 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-info .contact-item i {
    background: var(--color-secundario-1);
    color: var(--color-texto-claro);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.newsletter {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.newsletter input {
    flex: 1;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-texto-claro);
}

.newsletter input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.subscribe-btn {
    background: var(--color-secundario-1);
    color: var(--color-texto-claro);
    border: none;
    padding: 12px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.subscribe-btn:hover {
    background: var(--color-secundario-2);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-texto-claro);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--color-secundario-1);
    transform: translateY(-2px);
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s;
}

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

/* Sobre mí Section */
.sobre-mi-section {
    padding: 100px 0px;
    background: var(--color-primario);
}

.sobre-mi-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.sobre-mi-text {
    font-size: 1.3rem;
    line-height: 1.8;
    color: var(--color-texto-claro);
    text-align: left;
    margin: 0 auto;
    max-width: 700px;
}

.sobre-mi-text h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-align: left;
    color: var(--color-secundario-1);
}

.sobre-mi-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

/* Estilo global para todas las secciones */
section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Animación para el modal del menú móvil */
@keyframes slideIn {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(-100%);
        opacity: 0;
    }
}

.mobile-menu-modal {
    animation: slideOut 0.3s ease-in-out;
}

.mobile-menu-modal.active {
    animation: slideIn 0.3s ease-in-out;
}

/* Estilos para el modal del menú móvil */
.mobile-menu-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-primario);
    opacity: 0.98;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.mobile-menu-modal.active {
    display: flex;
}

.mobile-menu-content {
    text-align: center;
    width: 100%;
    max-width: 600px;
    color: var(--color-texto-claro);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.mobile-nav a {
    display: block;
    color: var(--color-texto-claro);
    text-decoration: none;
    margin: 15px 0;
    font-size: 1.5rem;
    text-align: start;
}

.close-modal-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: var(--color-texto-claro);
    margin: 0 10px;
    font-size: 1.5rem;
    text-decoration: none;
}

.social-links a:hover {
    color: var(--color-secundario-1);
}

/* Responsive Design */
@media (max-width: 768px) {

    /* Ocultar el botón del menú móvil cuando el modal está activo */
    .mobile-menu-modal.active~.mobile-menu-btn {
        display: none;
        opacity: 0;
    }

    .mobile-menu-btn {
        display: block;
        position: fixed;
        top: 15px;
        right: 20px;
        background: none;
        color: var(--color-secundario-1);
        border: none;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        display: flex;
        justify-content: center;
        align-items: center;
        cursor: pointer;
        z-index: 1001;
        visibility: visible;
        opacity: 1;
        font-size: 1.5rem;
    }


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

    .nav-menu,
    .nav-actions {
        display: none;
    }

    .hero-slide-1,
    .hero-slide-2,
    .hero-slide-3 {
        padding-top: 100px;
        gap: 20px;
    }

    .cta-button {
        margin-top: 20px;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

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

    .services-content,
    .faq-content,
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }


    .form-row {
        grid-template-columns: 1fr;
    }

    .partners-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .faq-left {
        flex-direction: column;
    }

    .service-image-grid {
        grid-template-columns: 1fr;
        height: auto;
    }

    .service-img-1 {
        grid-row: auto;
    }

    .sobre-mi-content {
        grid-template-columns: 1fr;
    }

    .sobre-mi-text p {
        font-size: 1rem;
    }

    .footer {
        background: var(--color-primario);
        color: var(--color-texto-claro);
        padding: 1rem;
    }

    .footer-bottom {
        flex-direction: column-reverse;
        align-items: center;
        text-align: center;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 2rem;
    }

    .services-text h2,
    .faq-text h2,
    .contact-section h2 {
        font-size: 2rem;
    }

    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.animate__delay-1s {
    animation-delay: 1s;
}

.animate__delay-2s {
    animation-delay: 2s;
}

.animate__delay-3s {
    animation-delay: 3s;
}

.animate__delay-4s {
    animation-delay: 4s;
}