/* Página creada por Rick Martínez */
/* Versión 2.0 Rick Martínez */

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

/* Botón Volver Arriba */
.back-to-top {
    position: fixed;
    bottom: 25px;
    left: 25px;
    width: 50px;
    height: 50px;
    background-color: #d87000;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgb(216, 112, 0);
    z-index: 999;
}

.back-to-top:hover {
    background-color: #b35a00;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(216, 112, 0, 0.5);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

/* ===== 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: 60px;
    gap: 20px;
}

/* Borde para el logo del navbar */
.nav-brand img {
    height: 50px;
    border: 2px 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 */
}

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

.lang-btn {
    background: #333;
    color: white;
    border: none;
    padding: 8px 15px;
    cursor: pointer;
    border-radius: 5px;
    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;
}

/* Menú hamburguesa */
.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 1px 0px;
    width: 30px;
    height: 30px;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.nav-toggle:hover .hamburger{
    transform: scale(0.9);
    box-shadow: 0px 0px 10px rgb(216, 112, 0);
}

.hamburger {
    width: 100%;
    height: 4px;
    background-color: rgb(255, 255, 255);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger:nth-child(1) {
    width: 80%;
}

.hamburger:nth-child(2) {
    width: 100%;
    background-color: #EC731A;
}

.hamburger:nth-child(3) {
    width: 80%;
}

/* 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;
}

.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: 40vh;
    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;
}

.btn-contacto {
    background-color: #d87000;
    color: rgb(255, 255, 255);
    border: 5px solid #d87000;
    box-shadow: 0px 0px 5px rgb(0, 0, 0);
    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;
}

.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);
}

.clicard {
    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(350px, 1fr));
    gap: 30px;
    align-items: stretch;
}

/* Cards personalizadas */
.service-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 5px rgba(0, 0, 0, 0.5);
    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: 150px; /* 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.9s 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: 200px; /* Aumenta la altura al hacer hover */
}

.service-card:hover .service-expand-content {
    max-height: 22vh; /* 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);
}

.more-info1 {
    margin-top: 15px;
    text-decoration: underline;
    color: #000000;
    text-shadow: 2px 3px 10px rgb(216, 112, 0.5);
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.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);
}

.form {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    margin-top: 30px;
    max-width: 900px; /* Ancho máximo para no extenderse demasiado */
    margin-left: auto;
    margin-right: auto;
}

.form h3 {
    color: #ffffff;
    margin-bottom: 25px;
    text-align: center;
    text-shadow: 2px 3px 5px rgb(0, 0, 0);
}

/* Layout de dos columnas */
.form-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

.form-column {
    display: flex;
    flex-direction: column;
}

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

/* Grupo de mensaje ocupa toda la altura */
.message-group {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.message-group textarea {
    flex: 1; /* Ocupa todo el espacio disponible */
    min-height: 400px;
    resize: vertical;
}

.form-group label {
    display: block;
    color: #ffffff;
    margin-bottom: 8px;
    font-weight: bold;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    transition: all 0.3s ease;
    color: #333;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #d87000;
    background: white;
    box-shadow: 0 0 0 3px rgba(216, 112, 0, 0.2);
}

/* Botón de enviar */
.form-submit {
    grid-column: 1 / -1; /* Ocupa ambas columnas */
    margin-top: 20px;
    text-align: center;
}

.form .btn-contacto {
    width: auto;
    min-width: 200px;
    margin-top: 10px;
    font-size: 18px;
    padding: 15px 40px;
}

/* Mensaje de confirmación */
.form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
}

.form-message.success {
    background: rgba(46, 125, 50, 0.2);
    color: #a5d6a7;
    border: 1px solid #4caf50;
}

.form-message.error {
    background: rgba(211, 47, 47, 0.2);
    color: #ef9a9a;
    border: 1px solid #f44336;
}

.ee {
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
}

.ee:hover {
    color: #EC731A; /* Naranja en lugar de negro */
    transform: scale(5) translateY(-4px); /* Agrega rotación */
    text-shadow: 0px 0px 15px rgb(0, 0, 0);
}

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;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

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

    .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: translateX(100%); /* Sale completamente por la izquierda */
    opacity: 0;
    visibility: hidden;
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55), 
                opacity 0.3s ease,
                visibility 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
    }

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

    .nav-list {
        flex-direction: column;
        gap: 12px;
        padding: 40px 20px;
        width: 100%;
        max-width: 400px;
        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(7px, 10px);
        background-color: #EC731A;
    }

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

    .nav-toggle.active .hamburger:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -10px);
        background-color: #EC731A;
    }

    .nav-toggle.active:hover .hamburger:nth-child(1) {
    transform: rotate(45deg) translate(7px, 10px) scale(1.2); /* Combina rotate + translate + scale */
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
    }

    .nav-toggle.active:hover .hamburger:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -10px) scale(1.2); /* Combina rotate + translate + scale */
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
    }
    
    .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;
    }

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

    .form {
        padding: 20px;
        margin-top: 20px;
        max-width: 100%;
    }
    
    .form-desc {
        text-shadow: 10px 10px 10px rgb(0, 0, 0);
    }

    .form-columns {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .message-group textarea {
        min-height: 150px;
    }
    
    .form .btn-contacto {
        width: 100%;
        min-width: auto;
    }

    .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;
    }
}
