/* Página creada por Rick Martínez */

body {
    font-family: Arial, sans-serif;
    padding: 60px 30px;
    background-color: #212121;
    padding-bottom: 2%;
}

/* ===== NAVBAR PERSONALIZADA ===== */
.navbar {
    background-color: #343a40;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    gap: 20px;
}


/* lenaguege selector styles */
.language-switcher {
    padding: 5px;
    display: flex;
    margin-right: 20px;
    border: 1px solid #6b6b6b;
    border-radius: 5px;
    overflow: hidden;
}

.lang-btn {
    background: #333;
    color: white;
    border: none;
    padding: 8px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: bold;
}

.lang-btn:hover {
    background: #555;
    box-shadow: 0px 0px 20px rgb(216, 112, 0);
    transform: scale(0.9);
}

.lang-btn.active {
    background: #d87000;
    transform: scale(1);
    color: white;
}

/* Borde para el logo del navbar */
.nav-brand img {
    height: 50px;
    border: 1px solid #6b6b6b; /* Borde blanco */
    border-radius: 10px; /* Esquinas redondeadas */
    padding: 3px; /* Espacio entre imagen y borde */
    transition: all 0.3s ease; /* Transición suave */
}

/* Efecto hover opcional */
.nav-brand img:hover {
    border-color: #ffffff; /* Cambia a rojo al hacer hover */
    box-shadow: 0px 0px 20px rgba(216, 112, 0);
    transform: scale(1.05); /* Pequeño aumento */
}

/* Menú hamburguesa */
.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    width: 30px;
    height: 24px;
    justify-content: space-between;
    align-items: center;
}

.hamburger {
    width: 100%;
    height: 3px;
    background-color: white;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

/* Menú de navegación */
.nav-menu {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 5px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #d87000;
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: #d87000;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 80%;
}

.hero-section {
    background-size: cover;
    color: rgb(255, 255, 255);
    padding: 50px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-section h1,
.hero-section h2 {
    text-shadow: 1px 1px 9px rgba(0, 0, 0);
    padding: 20px;
}

.btn-contacto {
    background-color: #d87000;
    color: rgb(255, 255, 255);
    border: 5px solid #d87000;
    border-radius: 10px;
    padding: 12px 24px;
    transition: all 0.3s ease;
    font-size: 20px;
    text-shadow: none;
    text-decoration: none;
    display: inline-block;
}

.btn-contacto:hover {
    background-color: rgb(255, 255, 255);
    box-shadow: 0px 0px 23px rgb(216, 112, 0);
    color: black;
    transform: scale(0.9);
    text-shadow: none;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #9E9E9E;
    z-index: -1;
}

.hero-section .container {
    background: url('img/img0011111.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 20px;
    padding-top: 21%;
    border-radius: 20px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    z-index: 2;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.tittle-about {
    text-align: center;
    padding: 20px;
    padding-bottom: 50px;
    color: #FFFFFF;
    text-shadow: 2px 3px 5px rgb(0, 0, 0);
}

.about-section {
    color: #FFFFFF;
    background: #212121;
    padding: 50px 0;
}

.servicios {
    padding: 10px 0;
    padding-bottom: 50px;
    text-align: center;
    text-shadow: 2px 3px 5px rgb(0, 0, 0);
}

.clicard1 {
    text-decoration: none;
}

.services-section {
    padding: 50px 0;
    color: rgb(255, 255, 255);
    background-color: #9E9E9E;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    align-items: stretch;
}

/* Cards personalizadas */
.service-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateY(20px);
    height: auto;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Importante para la animación */
    cursor: pointer;
}

.service-card-content {
    padding: 30px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 120px; /* Altura mínima para el estado normal */
    transition: all 0.4s ease;
}

.service-title {
    color: #000000;    
    text-shadow: 2px 3px 5px rgba(216, 112, 0, 0.9);
    font-weight: bold;
    font-size: 1.1rem;
    margin: 0 0 15px 0; /* Reducido el margen */
    line-height: 1.3;
    transition: all 0.3s ease;
}

/* Contenedor del contenido expandible */
.service-expand-content {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    width: 100%;
}

.service-subtitle {
    color: #000000; 
    font-weight: normal;
    text-align: justify;
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.4;
    padding: 0 10px;
}

/* Estados hover - Expansión */
.service-card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(216, 112, 0, 0.9);
}

.service-card:hover .service-card-content {
    min-height: 180px; /* Aumenta la altura al hacer hover */
    padding: 2px 2px; /* Ajuste de padding */
}

.service-card:hover .service-expand-content {
    max-height: 100px; /* Altura suficiente para el texto */
    opacity: 1;
}

.service-card:hover .service-title {
    margin-bottom: 10px; /* Menos espacio entre título y subtítulo */
    font-size: 1.05rem; /* Opcional: pequeño aumento */
}

/* Estados de las cards (animación de aparición) */
.service-card.card-visible {
    opacity: 1;
    transform: translateY(0);
}

.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 1000;
}

.whatsapp-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    text-decoration: none;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-link:hover {
    background-color: #128C7E;
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.6);
}

.whatsapp-link i {
    font-size: 32px;
    color: white;
}

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

.contact-section {
    text-align: center;
    padding: 60px 0;
    background-color: #212121;
    color: rgb(255, 255, 255);
}

.tittle-contact {
    text-align: center;
    color: #FFFFFF;
    text-shadow: 2px 3px 5px rgb(0, 0, 0);
}

.contact-content {
    text-align: left;
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.contact-info {
    flex: 1;
    min-width: 0
}

.map-container {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.btn-num {
    color: rgb(255, 255, 255);
    padding: 2px 12px;
    transition: all 0.3s ease;
    text-shadow: 0px 0px 10px rgb(216, 112, 0);
    text-decoration: none;
}

.btn-num:hover {
    transform: scale(0.2);
}


footer {
    background-color: #9E9E9E;
    color: rgb(255, 255, 255);
    text-shadow: 2px 3px 5px rgb(0, 0, 0);
    padding: 2%;
    padding-top: 30px;
    text-align: center;
}

/* Responsividad mejorada */
@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 768px) {
    body {
        padding: 0;
    }

    .nav-container {
        padding: 0 15px;
        gap: 50px;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #343a40;
        box-shadow: 0 5px 15px rgb(216, 112, 0);
        transform: translateY(-10px);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        display: flex;
        justify-content: center;
        align-items: center;
        min-height: 300px;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-list {
        flex-direction: column;
        gap: 12px;
        padding: 40px 20px;
        width: 100%;
        max-width: 280px;
        text-align: center;
    }

    .nav-item {
        width: 100%;
    }

    .nav-link {
        display: block;
        padding: 16px 24px;
        border: 2px solid rgba(255, 255, 255, 0.1);
        border-radius: 10px;
        text-align: center;
        font-weight: 600;
        font-size: 1.1rem;
        transition: all 0.3s ease;
        background: rgba(255, 255, 255, 0.05);
    }

    .nav-link:hover {
        background-color: rgba(216, 112, 0, 0.3);
        color: white;
        border-color: #d87000;
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(216, 112, 0, 0.4);
    }

    /* Animación hamburguesa a X */
    .nav-toggle.active .hamburger:nth-child(1) {
        transform: rotate(45deg) translate(2px, 6px);
    }

    .nav-toggle.active .hamburger:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .hamburger:nth-child(3) {
        transform: rotate(-45deg) translate(2px, -6px);
    }
    
    .hero-section {
        padding: 0px;
    }
    
    .hero-section .container{
        padding: 20px 0;
        padding-top: 110%;
        border-radius: 0px;
    }

    .about-section {
        padding: 5%;
        text-align: justify;
    }

    .services-section {
        padding: 5%;
        padding-top: 40px;
        padding-bottom: 50px;
    } 
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .service-card-content {
        padding: 25px 15px;
        min-height: 110px;
    }
    
    .service-title {
        font-size: 1rem;
    }

    .service-card:hover .service-card-content {
        min-height: 160px;
    }

    .whatsapp-float {
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-link {
        width: 50px;
        height: 50px;
    }
    
    .whatsapp-link i {
        font-size: 28px;
    }

    .contact-section {
        padding: 5%;
        padding-top: 60px;
    }

    .contact-content {
        flex-direction: column;
    }
    
    .contact-info,
    .map-container {
        width: 100%;
        flex: none;
    }
    
    .map-container iframe {
        height: 300px;
    }
    
    .contact-info p {
        font-size: 1rem;
        line-height: 1.5;
        margin-bottom: 15px;
    }

    .map-container {
        padding: 1%;
        padding-top: 30px;
        padding-bottom: 30px;
    }

    footer {
        padding: 5%;
        padding-top: 50px;
        padding-bottom: 40px;

    }
}

    @media (max-width: 480px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .service-card-content {
        padding: 20px 15px;
        min-height: 100px;
    }
    
    .service-card:hover .service-card-content {
        min-height: 150px;
    }

    .nav-brand img {
        height: 40px;
    }

    .language-switcher {
        margin-right: 10px;
    }

    .lang-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
}
