/* ===== RESET Y TIPOGRAFÍAS ===== */
@font-face {
    font-family: 'Gotham';
    src: url('../tipo/GOTHAM-BLACK.TTF') format('truetype');
    font-weight: 900;
    font-style: normal;
}

@font-face {
    font-family: 'Futura';
    src: url('../tipo/SansSerifBldFLFCond.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'GothamMedium';
    src: url('../tipo/gotham-extra-narrow-medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'GothamBold';
    src: url('../tipo/GOTHAM-BOLD.TTF') format('truetype');
    font-weight: bold;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-color: #ffffff;
    color: #333;
}

/* ===== HEADER ===== */
header {
    background-color: #28E8D5;
    color: #000000;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    font-size: 2rem;
    font-family: 'Gotham', sans-serif;
    font-weight: 900;
    color: #000;
}

.menu {
    list-style: none;
    display: flex;
    gap: 25px;
    font-family: 'GothamBold', sans-serif;
}

.menu a {
    color: #000000;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
    padding: 8px 12px;
    border-radius: 5px;
}

.menu a:hover,
.menu a.active,
.menu a:focus {
    color: #ffffff;
    background-color: #090b55;
    outline: 2px solid #28E8D5;
}

.menu-toggle {
    display: none;
    font-size: 28px;
    cursor: pointer;
    color: #000;
    background: none;
    border: none;
}

/* ===== BANNER ===== */
.banner {
    background: url('../IMG/portada.jpg') no-repeat center center/cover;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
}

.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
}

.banner-content {
    position: relative;
    z-index: 2;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 40px;
    border-radius: 12px;
    max-width: 600px;
}

.banner h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-family: 'Gotham', sans-serif;
}

.banner p {
    font-size: 1.2rem;
    margin-bottom: 25px;
}

.btn-banner {
    background-color: #fcbf49;
    color: #000;
    padding: 12px 30px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: inline-block;
    font-family: 'GothamBold', sans-serif;
}

.btn-banner:hover {
    background-color: #e0a800;
    transform: translateY(-2px);
}


/* ===== SECCIONES GENERALES ===== */
.bienvenida,
.servicios-section {
    padding: 60px 0;
    text-align: center;
}

.bienvenida {
    background-color: #f8f9fa;
}

.bienvenida h2,
.servicios-section h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: #090b55;
    font-family: 'Gotham', sans-serif;
}

.bienvenida p {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
    color: #666;
}

/* === MENU CATALOGO === */ 
.contentsection{
    flex: 1 1 50%;
    padding: 30px;
}

.breadcrumb {
    font-size: 14px;
    color: #e63946;
    margin-bottom: 10px;
}

.contentsection h1 {
    font-size: 24px;
    color: #090b55;
    margin-bottom: 20px;
    line-height: 1.3;
}

.content-section p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.content-section p strong {
    color: #090b55;
}

.btn-whatsapp {
    display: inline-block;
    background: #090b55;
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 16px;
    transition: background 0.3s;
    margin: 15px;
}

.btn-whatsapp:hover {
    background: #28E8D5;
    color: rgb(0, 0, 0);
}

.image-section{
    width: 500px;
    height: auto;
    margin: 15px;
}

/* ===== SERVICIOS GRID ===== */
.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 40px auto;
    justify-content: center;
    max-width: 1200px;
}

.servicio-card {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    text-align: center;
    margin: 10px;
}

.servicio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.servicio-card img {
    width: 250px;
    height: 250px;
    margin-bottom: 20px;
    object-fit: contain;
}

.servicio-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #090b55;
    font-family: 'GothamBold', sans-serif;
}

.servicio-card p {
    color: #666;
    line-height: 1.6;
}

.btn-servicios {
    padding: 12px 30px;
    background-color: #090b55;
    color: white;
    font-weight: bold;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    margin-top: 20px;
    margin: 10px auto;
    justify-content: center;
}

.btn-servicios:hover {
    background-color: #28E8D5;
    transform: translateY(-2px);
    color: black;
}

/* ===== FEATURES ===== */
.features {
    width: 90%;
    max-width: 1200px;
    margin: 60px auto;
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 40px;
}

.feature.reverse {
    flex-direction: row-reverse;
}

.icon-text {
    flex: 1;
}

.icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    object-fit: contain;
}

.title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
    font-family: 'GothamBold', sans-serif;
}

.title.calidad,
.title.creatividad,
.title.material {
    color: #090b55;
}

.image {
    flex: 1;
}

.image img {
    width: 100%;
    max-width: 300px;
    border-radius: 10px;
    object-fit: cover;
}

/* ===== COTIZACIÓN ===== */
.cotizacion {
    max-width: 600px;
    margin: 40px auto;
    background: white;
    padding: 40px;
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.cotizacion h1 {
    text-align: center;
    font-size: 28px;
    color: #090b55;
    margin-bottom: 10px;
    font-family: 'Gotham', sans-serif;
}

.descripcion {
    text-align: center;
    color: #666;
    font-size: 16px;
    margin-bottom: 30px;
}

.campo {
    margin-bottom: 20px;
}

.campo label {
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-family: 'GothamMedium', sans-serif;
}

.campo input, 
.campo select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e4ea;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    font-family: 'Segoe UI', sans-serif;
}

.campo input:focus, 
.campo select:focus {
    border-color: #28E8D5;
    box-shadow: 0 0 8px rgba(40, 232, 213, 0.3);
    outline: none;
}

.radio-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: normal;
    color: #444;
    cursor: pointer;
}

.radio-group input[type="radio"] {
    width: auto;
    margin: 0;
}

.campo.doble {
    display: flex;
    gap: 15px;
}

.campo.doble div {
    flex: 1;
}

.botones {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

button {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'GothamBold', sans-serif;
    
}

button.primario {
    background: #090b55;
    color: white;
}

button.primario:hover {
    background: #28E8D5;
    color: #090b55;
    transform: translateY(-2px);
}

button.secundario {
    background: #e0e4ea;
    color: #333;
}

button.secundario:hover {
    background: #ccd4e0;
    transform: translateY(-2px);
}

.resultado {
    margin-top: 30px;
    padding: 20px;
    background: #f8fafc;
    border-left: 5px solid #28E8D5;
    border-radius: 8px;
    font-size: 16px;
    color: #333;
    display: none;
}

.resultado p {
    margin-bottom: 10px;
}

.resultado a {
    color: #f8fafc;
    text-decoration: none;
    font-weight: bold;
}

.resultado a:hover {
    color: #090b55;
    text-decoration: none;
}

.error {
    color: #e74c3c;
    font-size: 14px;
    margin-top: 5px;
    display: none;
}

.loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #28E8D5;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== CONTENT SECTION ===== */
.content-section h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-align: center; /* Centered the main heading */
}

.content-section p {
    text-align: center; /* Centered the paragraphs */
    margin: 10px 0; /* Added margin for spacing */
}

.btn-whatsapp {
    background-color: #090b55; /* Changed to match calculate quote button color */
    color: white;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    margin: 10px auto;
    text-align: center;
    transition: background 0.3s;
}

.btn-whatsapp:hover {
    background: #28E8D5;
    color: #090b55;
}

/* ===== CATÁLOGO ===== */
.catalogo {
    padding: 40px 20px;
    background: #f8f9fa;
    min-height: 80vh;
}

.catalogo-titulo {
    text-align: center;
    margin: 40px 0; /* Increased margin for better spacing */
    font-size: 32px;
    font-weight: bold;
    color: #000000;
    font-family: 'Gotham', sans-serif;
}

.producto h4 {
    margin: 10px 0; /* Added margin for spacing */
    text-align: center; /* Centered product titles */
}

.producto p {
    font-size: 16px;
    color: #666;
    margin: 10px 0; /* Added margin for spacing */
    text-align: center; /* Centered product descriptions */
}

.catalogo-container {
    display: flex;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.catalogo-menu {
    width: 250px;
    background: #fff;
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.catalogo-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.catalogo-menu ul li {
    margin-bottom: 8px;
}

.catalogo-menu ul li a {
    display: block;
    padding: 12px 15px;
    background: #e9ecef;
    color: #333;
    text-decoration: none;
    border-radius: 6px;
    font-size: 16px;
    transition: all 0.3s ease;
    font-family: 'GothamMedium', sans-serif;
}

.catalogo-menu ul li a.activo {
    background: #090b55;
    color: #fff;
}

.submenu.activo > a {
    background: #090b55;
    color: #fff;
}

.catalogo-menu ul li a:hover {
    background: #28E8D5;
    color: #fff;
}

/* Submenu styles */
.submenu .submenu-items {
    display: none;
    list-style: none;
    padding: 0;
    margin: 0;
    background: #f8f9fa;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: relative;
    z-index: 10;
}

.submenu:hover .submenu-items {
    display: block;
}

.submenu .submenu-items li {
    margin: 0;
}

.submenu .submenu-items li a {
    padding: 10px 15px;
    display: block;
    background: #e9ecef;
    color: #333;
    text-decoration: none;
    border-radius: 0;
    font-size: 14px;
    transition: all 0.3s ease;
}

.submenu .submenu-items li a:hover {
    background: #28E8D5;
    color: #fff;
    padding-left: 20px;
}

.catalogo-contenido {
    flex: 1;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #ddd;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.catalogo-busqueda {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.catalogo-busqueda input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #e0e4ea;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.catalogo-busqueda input:focus {
    border-color: #28E8D5;
    box-shadow: 0 0 8px rgba(40, 232, 213, 0.3);
    outline: none;
}

.btn-buscar {
    padding: 12px 20px;
    background: #090b55;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'GothamBold', sans-serif;
}

.btn-buscar:hover {
    background: #28E8D5;
    color: #090b55;
    transform: translateY(-2px);
}

.catalogo-productos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

.producto {
    background: #fafafa;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.producto:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: #28E8D5;
}

.producto img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 15px;
}

.producto h4 {
    margin: 0 0 10px;
    font-size: 18px;
    color: #333;
    font-family: 'GothamBold', sans-serif;
}

.producto p {
    font-size: 16px;
    color: #666;
    margin: 0;
}

/* ===== CONTACTO ===== */
.contact-section {
    max-width: 800px;
    margin: 40px auto;
    padding: 40px;
    text-align: center;
}

.contact-info {
    display: flex;
    justify-content: space-around;
    margin: 30px 0;
    flex-wrap: wrap;
    gap: 20px;
}

.contact-info div {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
    min-width: 250px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.contact-form {
    display: flex;
    flex-direction: column;
    text-align: left;
    gap: 15px;
}

.contact-form label {
    margin: 8px 0 4px;
    font-weight: 600;
    color: #333;
    font-family: 'GothamMedium', sans-serif;
}

.contact-form input, 
.contact-form textarea {
    padding: 12px 15px;
    margin-bottom: 15px;
    border: 2px solid #e0e4ea;
    border-radius: 8px;
    font-size: 16px;
    font-family: 'Segoe UI', sans-serif;
    transition: all 0.3s ease;
}

.contact-form input:focus, 
.contact-form textarea:focus {
    border-color: #28E8D5;
    box-shadow: 0 0 8px rgba(40, 232, 213, 0.3);
    outline: none;
}

.contact-form button {
    background: #090b55;
    color: #fff;
    padding: 15px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    font-family: 'GothamBold', sans-serif;
}

.contact-form button:hover {
    background: #28E8D5;
    transform: translateY(-2px);
}

.form-message {
    margin-top: 15px;
    font-weight: bold;
    color: #28E8D5;
    text-align: center;
}

/* ===== PIE DE PÁGINA ===== */
.footer {
    background-color: #090b55;
    color: white;
    padding: 50px 0 20px;
    font-family: 'Segoe UI', sans-serif;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    gap: 40px;
}

.footer-logo img {
    width: 150px;
    height: auto;
}

.footer-about {
    max-width: 350px;
}

.footer-about h3,
.footer-social h3 {
    margin-bottom: 20px;
    font-size: 20px;
    color: #28E8D5;
    font-family: 'GothamBold', sans-serif;
}

.footer-about p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.footer-social {
    text-align: center;
}

.footer-social a {
    display: inline-block;
    color: white;
    border: 2px solid white;
    border-radius: 5px;
    padding: 12px;
    margin: 0 8px;
    font-size: 20px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-social a:hover {
    background: white;
    color: #090b55;
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    border-top: 1px solid #28E8D5;
    padding-top: 20px;
    font-size: 14px;
}

.footer a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #28E8D5;
}

/* ===== MEJORAS RESPONSIVE ===== */
/* Imágenes responsivas */
img {
    max-width: 100%;
    height: auto;
}

/* Ajustes para tablets */
@media (max-width: 1200px) {
    .container {
        flex-direction: column;
        gap: 20px;
    }
    
    .menu {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .servicios-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .feature {
        gap: 30px;
    }
    
    .image img {
        max-width: 350px;
    }
}

@media (max-width: 1024px) {
    .container {
        flex-direction: column;
        gap: 20px;
    }
    
    .menu {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .catalogo-container {
        flex-direction: column;
    }
    
    .catalogo-menu {
        width: 100%;
        margin-bottom: 20px;
    }
    
    .banner {
        height: 60vh;
    }
    
    .banner h2 {
        font-size: 2.2rem;
    }
    
    .bienvenida h2,
    .servicios-section h2 {
        font-size: 2rem;
    }
}

/* Ajustes para tablets pequeñas y móviles grandes */
@media (max-width: 768px) {
    .menu {
        display: none;
        flex-direction: column;
        background-color: #28E8D5;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        padding: 20px;
        z-index: 999;
    }
    
    .menu.active {
        display: flex;
    }
    
    .menu li {
        margin: 10px 0;
        text-align: center;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .banner {
        height: 50vh;
    }
    
    .banner h2 {
        font-size: 1.8rem;
    }
    
    .banner p {
        font-size: 1rem;
    }
    
    .servicios-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .servicio-card {
        padding: 20px;
        margin: 0;
    }
    
    .feature {
        flex-direction: column;
        text-align: center;
        gap: 25px;
    }
    
    .feature.reverse {
        flex-direction: column;
    }
    
    .image img {
        max-width: 100%;
    }
    
    .contact-info {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .contact-info div {
        min-width: auto;
        width: 100%;
    }
    
    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    
    .footer-about,
    .footer-social {
        margin: 0 auto;
    }
    
    .campo.doble {
        flex-direction: column;
        gap: 15px;
    }
    
    .catalogo-busqueda {
        flex-direction: column;
    }
    
    .catalogo-productos {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
    }
}

/* Ajustes para móviles pequeños */
@media (max-width: 576px) {
    body {
        font-size: 14px;
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    .banner {
        height: 40vh;
    }
    
    .banner-content {
        padding: 15px;
        margin: 0 10px;
    }
    
    .banner h2 {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }
    
    .banner p {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }
    
    .btn-banner {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .bienvenida,
    .servicios-section {
        padding: 40px 0;
    }
    
    .bienvenida h2,
    .servicios-section h2 {
        font-size: 1.8rem;
    }
    
    .bienvenida p {
        font-size: 1rem;
    }
    
    .servicio-card {
        padding: 15px;
    }
    
    .servicio-card h3 {
        font-size: 1.2rem;
    }
    
    .cotizacion {
        padding: 15px;
        margin: 15px;
    }
    
    .cotizacion h1 {
        font-size: 1.5rem;
    }
    
    .botones {
        flex-direction: column;
        gap: 10px;
    }
    
    button {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .footer {
        padding: 30px 0 15px;
    }
    
    .footer-social a {
        margin: 3px;
        padding: 8px;
        font-size: 16px;
    }
    
    .contact-section {
        padding: 20px;
        margin: 20px auto;
    }
    
    .contact-form input, 
    .contact-form textarea {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .catalogo {
        padding: 20px 15px;
    }
    
    .catalogo-titulo {
        font-size: 1.5rem;
        margin: 20px 0;
    }
    
    .producto {
        padding: 15px;
    }
    
    .producto img {
        height: 150px;
    }
}

/* Ajustes para móviles muy pequeños */
@media (max-width: 375px) {
    .banner h2 {
        font-size: 1.3rem;
    }
    
    .banner p {
        font-size: 0.8rem;
    }
    
    .logo {
        font-size: 1.3rem;
    }
    
    .menu-toggle {
        font-size: 24px;
    }
    
    .servicio-card img {
        width: 60px;
        height: 60px;
    }
    
    .btn-servicios {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .footer-social a {
        margin: 2px;
        padding: 6px;
        font-size: 14px;
    }
}

/* Utilidades */
.text-center {
    text-align: center;
}

.mb-20 {
    margin-bottom: 20px;
}

.mt-20 {
    margin-top: 20px;
}

.hidden {
    display: none;
}

.visible {
    display: block;
}

/*Whatsapp Flotante*/
.btn-wsp {
    position: fixed;
    width: 55px;
    height: 55px;
    line-height: 55px;
    bottom: 30px;
    right: 30px;
    background: #4FCE5D;
    color: #ffffff;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0px 1px 10px rgba(0, 0, 0, 0.3);
    z-index: 100;
    transition: background 0.3s, color 0.3s; /* para animar el cambio */
}

.btn-wsp:hover {
    background: #ffffff;
    color: #4FCE5D;
}