/*
Theme Name: Macazahua
Theme URI: https://macazahua.com/
Author: Macazahua
Author URI: https://macazahua.com/
Description: Tema personalizado para Macazahua - Especialistas en termoformados y empaques a la medida
Version: 1.0.0
License: GPL v2 or later
Text Domain: macazahua
*/

/* =Reset y Normalizaci贸n
-------------------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
}

/* =Header con Video
-------------------------------------------------------------- */

/* Header con altura fija */
.divHeader {
    position: relative;
    width: 100%;
    height: 250px; /* Altura fija */
    overflow: hidden;
    background: #000;
}

#background-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
    z-index: 1;
}

.divHeaderLogo {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 20px 20px;
}


.divHeaderLogo img {
    max-width: 300px; /* Aumentado de 180px a 400px */
    width: 100%; /* Para que sea responsive */
    height: auto;
    filter: drop-shadow(0 2px 10px rgba(0,0,0,0.3));
}





@media (max-width: 768px) {
    .divHeader {
        height: 140px; /* Altura fija más pequeña en móviles */
    }
    
    .divHeaderLogo {
        padding: 15px 20px;
    }
    
    .divHeaderLogo img {
        max-width: 100px;
    }
}
/* =Contenido Principal
-------------------------------------------------------------- */
.divContenido1 {
    padding: 40px 20px;
    background: linear-gradient(135deg, #f5f5f5 0%, #ffffff 100%);
}

.divContenidoTexto1 h2 {
    font-size: 42px;
    text-align: center;
    color: #1a1a1a;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

/* Grid de Productos - 3 columnas */
.responsive-three-column-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1300px;
    margin: 40px auto 0;
    padding: 0 20px;
}

.colprod {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.colprod:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.colprodimg {
    height: 320px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: flex-end;
    transition: all 0.3s ease;
}

.colprod:hover .colprodimg {
    transform: scale(1.05);
}

.colprodimgtxt {
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    color: white;
    padding: 30px 20px 20px;
    width: 100%;
    text-align: center;
    position: relative;
    z-index: 2;
}

.spanProd {
    font-size: 20px;
    font-weight: bold;
    display: block;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.spanProdDesc {
    font-size: 18px;
    display: block;
    opacity: 0.9;
}

/* =Secci贸n de Industrias
-------------------------------------------------------------- */
.divContenido2 {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 60px 20px;
    color: #fff;
}

.divContenido2 h2 {
    font-size: 38px;
    text-align: center;
    color: #fff;
    font-weight: 600;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.tblRamas {
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
    background: rgba(255,255,255,0.05);
    border-radius: 20px;
    padding: 20px;
}

.tdRamasIcon {
    width: 100px;
    text-align: center;
    padding: 20px;
}

.iconR {
    width: 50px;
    height: auto;
    transition: transform 0.3s ease;
}

.tdRamasIcon:hover .iconR {
    transform: scale(1.1);
}

.tdRamas {
    padding: 20px;
    font-size: 25px;
    font-weight: 500;
    color: #fff;
}

/* =Footer
-------------------------------------------------------------- */
.divFooter {
    background: #0a0a0a;
    color: #fff;
    padding: 40px 20px;
    /*border-top: 3px solid #ff6b35;*/
    border-top: 3px solid #2E7D32; /* Verde oscuro */
}

.g-block-1, .g-block-2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 20px;
}

.block2, .block3, .block4, .block5 {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
}

.iconI {
    width: 24px;
    height: auto;
    filter: brightness(0) invert(1);
}

.link-no-deco {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.link-no-deco:hover {
    color: #ff6b35;
    text-decoration: none;
}

/* =Bot贸n Flotante de Redes Sociales
-------------------------------------------------------------- */
.container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.btn-mas {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    border-radius: 50%;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.btn-mas:hover {
    transform: scale(1.1);
}

.btn-mas .fa-plus {
    font-size: 32px;
    color: white;
    line-height: 60px;
}

.redes {
    position: absolute;
    bottom: 80px;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
}

.redes a {
    display: block;
    width: 50px;
    height: 50px;
    background: #25D366;
    border-radius: 50%;
    text-align: center;
    line-height: 50px;
    color: white;
    text-decoration: none;
    font-size: 24px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.redes a:first-child {
    background: #D44638;
}

.redes a:hover {
    transform: scale(1.1);
}

#btn-mas {
    display: none;
}

#btn-mas:checked ~ .redes {
    visibility: visible;
    opacity: 1;
    bottom: 90px;
}

/* =Responsive Design
-------------------------------------------------------------- */
@media (max-width: 992px) {
    .responsive-three-column-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .divContenido2 h2 {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .divHeader {
        min-height: 300px;
    }
    
    .divHeaderLogo {
        padding: 50px 20px;
    }
    
    .divHeaderLogo img {
        max-width: 180px;
    }
    
    .divContenidoTexto1 h2 {
        font-size: 32px;
    }
    
    .responsive-three-column-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .colprodimg {
        height: 280px;
    }
    
    .divContenido2 h2 {
        font-size: 28px;
        padding: 0 20px;
    }
    
    .tblRamas {
        display: block;
    }
    
    .tblRamas tr {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .tdRamasIcon {
        width: 60px;
        padding: 15px;
    }
    
    .iconR {
        width: 40px;
    }
    
    .tdRamas {
        padding: 15px;
        font-size: 16px;
        min-width: 120px;
    }
    
    .g-block-1, .g-block-2 {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .block2, .block3, .block4, .block5 {
        justify-content: center;
    }
    
    .container {
        bottom: 20px;
        right: 20px;
    }
    
    .btn-mas {
        width: 50px;
        height: 50px;
    }
    
    .btn-mas .fa-plus {
        font-size: 28px;
        line-height: 50px;
    }
}

@media (max-width: 480px) {
    .divContenidoTexto1 h2 {
        font-size: 24px;
    }
    
    .divContenido2 h2 {
        font-size: 22px;
    }
    
    .spanProd {
        font-size: 16px;
    }
    
    .spanProdDesc {
        font-size: 12px;
    }
    
    .tdRamas {
        font-size: 14px;
        padding: 10px;
    }
    
    .tdRamasIcon {
        padding: 10px;
    }
    
    .iconR {
        width: 30px;
    }
}

/* =Utilidades
-------------------------------------------------------------- */
.text-center {
    text-align: center;
}

.mt-2 {
    margin-top: 10px;
}

.mb-4 {
    margin-bottom: 20px;
}

.p-4 {
    padding: 20px;
}


/*-------------------------------------------------------------*/

/* Estilos para la página de contacto */
.divContenido3 {
    padding: 40px 20px;
    background: linear-gradient(135deg, #f5f5f5 0%, #ffffff 100%);
    min-height: 600px;
}

.divContenido3Btn {
    text-align: center;
    margin-bottom: 30px;
}

.divBtnTel {
    background: linear-gradient(135deg, #ff6b35, #ff8c42);
    display: inline-block;
    padding: 20px 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.linkTel3 {
    color: white;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    display: block;
    margin: 5px 0;
}

.linkTel3:hover {
    text-decoration: underline;
}

.divContenido3Form {
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.grupo {
    position: relative;
    margin-bottom: 35px;
}

.grupo input, 
.grupo textarea,
.selectForm {
    width: 100%;
    padding: 10px 0;
    font-size: 16px;
    border: none;
    border-bottom: 2px solid #ddd;
    outline: none;
    background: transparent;
    transition: 0.3s ease;
}

.grupo input:focus,
.grupo textarea:focus {
    border-bottom-color: #ff6b35;
}

.grupo label {
    position: absolute;
    top: 10px;
    left: 0;
    color: #999;
    font-size: 16px;
    pointer-events: none;
    transition: 0.3s ease;
}

.grupo input:focus ~ label,
.grupo input:valid ~ label,
.grupo textarea:focus ~ label,
.grupo textarea:valid ~ label {
    top: -20px;
    font-size: 12px;
    color: #ff6b35;
}

.selectForm {
    background: white;
    cursor: pointer;
}

.grupob {
    margin: 20px 0;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 10px;
}

.tooltip {
    position: relative;
    cursor: pointer;
    color: #ff6b35;
    text-decoration: none;
}

.custom {
    visibility: hidden;
    width: 300px;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 10px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -150px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 12px;
}

.tooltip:hover .custom {
    visibility: visible;
    opacity: 1;
}

button[type="submit"] {
    background: linear-gradient(135deg, #ff6b35, #ff8c42);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255,107,53,0.4);
}

.success-message {
    background: #d4edda;
    color: #155724;
    padding: 10px;
    border-radius: 5px;
    margin-top: 20px;
    text-align: center;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 10px;
    border-radius: 5px;
    margin-top: 20px;
    text-align: center;
}

@media (max-width: 768px) {
    .divContenido3Form {
        padding: 20px;
    }
    
    .custom {
        width: 250px;
        margin-left: -125px;
    }
}

/* =Menú de Navegación
-------------------------------------------------------------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo a {
    display: block;
}

.nav-logo img {
    max-height: 50px;
    width: auto;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
    margin: 0;
    padding: 0;
}

.nav-links li a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    padding: 5px 0;
}

.nav-links li a:hover {
    color: #ff6b35;
}

.nav-links li.active a {
    color: #ff6b35;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #ff6b35;
    transition: width 0.3s ease;
}

.nav-links li a:hover::after,
.nav-links li.active a::after {
    width: 100%;
}

/* Botón hamburguesa para móvil */
.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: 0.3s ease;
}

/* Ajuste para el header con video */
.divHeader {
    margin-top: 80px; /* Espacio para el menú fijo */
}

/* Responsive */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(10px);
        transition: left 0.3s ease;
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-links {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: 100%;
        gap: 30px;
    }
    
    .nav-links li a {
        font-size: 20px;
    }
    
    /* Animación del botón hamburguesa */
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    .divHeader {
        margin-top: 70px;
    }
}


/* Texto de soluciones - Tamaño aumentado */
.solutions-text {
    font-size: 26px !important;
    text-align: center;
    color: #000000 ;
    font-weight: 400;
    margin-top: 15px;
    letter-spacing: 1px;
}

/* Aún más grande para desktop */
@media (min-width: 992px) {
    .solutions-text {
        font-size: 26px !important;
    }
}

/* Ajuste para tablets */
@media (max-width: 768px) {
    .solutions-text {
        font-size: 28px !important;
    }
}

/* Ajuste para móviles */
@media (max-width: 480px) {
    .solutions-text {
        font-size: 18px !important;
    }
}
