/* =====================================================
   NORMATIVA-STYLES.CSS - Montajes Metálicos Mallo
   ===================================================== */

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

html {
    overflow-x: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #1a1a1a;
    color: #f0f0f0;
    min-height: 100vh;
    position: relative;
    padding-top: 92px;
    padding-left: 0;
    padding-right: 0;
    padding-bottom: 20px;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 50%, #333333 100%);
    z-index: -1;
}

.main-header {
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #ffc107;
    padding: 10px 20px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-logo img {
    height: 50px;
    width: auto;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 25px;
}

.nav-menu li a {
    color: #f0f0f0;
    text-decoration: none;
    font-weight: 700;
    font-size: 1em;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
}

.nav-menu li a:hover {
    background-color: #ffc107;
    color: #1a1a1a;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    color: #ffc107;
    font-size: 2em;
    cursor: pointer;
}

.mobile-menu {
    display: none;
    background-color: rgba(0, 0, 0, 0.95);
    position: fixed;
    top: 72px;
    left: 0;
    width: 100%;
    text-align: center;
    padding: 20px 0;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu ul {
    list-style: none;
}

.mobile-menu ul li {
    margin-bottom: 20px;
}

.mobile-menu ul li a {
    color: #f0f0f0;
    text-decoration: none;
    font-size: 1.5em;
    font-weight: 700;
}

/* ============================
   CONTENEDOR PRINCIPAL
   ============================ */
.normativa-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================
   TÍTULOS DE SECCIÓN
   ============================ */
.section-title {
    font-size: 1.5em;
    color: #ffc107;
    text-align: center;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 2em;
        margin-bottom: 40px;
    }
}

.section-title i {
    margin-right: 10px;
}

/* ============================
   HERO SECTION
   ============================ */
.normativa-hero {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 50%, #333333 100%);
    padding: 40px 20px;
    margin: 0 -20px 30px -20px;
    border-bottom: 3px solid #ffc107;
}

@media (min-width: 768px) {
    .normativa-hero {
        padding: 60px 20px;
        margin: 0 -20px 40px -20px;
    }
}

.hero-overlay {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.normativa-title {
    font-size: 1.6em;
    color: #ffc107;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (min-width: 768px) {
    .normativa-title {
        font-size: 2.5em;
    }
}

.normativa-subtitle {
    font-size: 1em;
    color: #e0e0e0;
    line-height: 1.6;
}

@media (min-width: 768px) {
    .normativa-subtitle {
        font-size: 1.2em;
    }
}

.hero-badge {
    display: inline-block;
    background: rgba(37, 211, 102, 0.15);
    color: #25D366;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85em;
    font-weight: 600;
    margin-bottom: 15px;
    border: 1px solid rgba(37, 211, 102, 0.3);
}

@media (min-width: 768px) {
    .hero-badge {
        font-size: 1em;
        padding: 8px 20px;
    }
}

/* ============================
   INTRODUCCIÓN
   ============================ */
.intro-honesta-section {
    margin: 30px 0;
}

@media (min-width: 768px) {
    .intro-honesta-section {
        margin: 60px 0;
    }
}

.intro-box {
    background: rgba(42, 42, 42, 0.7);
    padding: 25px 20px;
    border-radius: 12px;
    border: 2px solid rgba(255, 193, 7, 0.3);
    text-align: left;
    max-width: 900px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .intro-box {
        padding: 40px 30px;
    }
}

.intro-box h2 {
    color: #ffc107;
    font-size: 1.3em;
    margin-bottom: 20px;
}

@media (min-width: 768px) {
    .intro-box h2 {
        font-size: 1.8em;
    }
}

.intro-box p {
    font-size: 1em;
    line-height: 1.7;
    color: #ddd;
    margin-bottom: 16px;
}

@media (min-width: 768px) {
    .intro-box p {
        font-size: 1.15em;
    }
}

.intro-box strong {
    color: #ffc107;
}

/* Caja de CTE */
.cte-contexto {
    background: rgba(26, 115, 232, 0.1);
    border: 2px solid #1a73e8;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    text-align: left;
}

@media (min-width: 768px) {
    .cte-contexto {
        padding: 30px;
        margin: 30px 0;
    }
}

.cte-contexto i {
    font-size: 2em;
    color: #1a73e8;
    margin-bottom: 12px;
    display: block;
}

@media (min-width: 768px) {
    .cte-contexto i {
        font-size: 2.5em;
    }
}

.cte-contexto h3 {
    color: #1a73e8;
    font-size: 1.2em;
    margin-bottom: 15px;
}

@media (min-width: 768px) {
    .cte-contexto h3 {
        font-size: 1.5em;
    }
}

.cte-contexto p {
    font-size: 1em;
    line-height: 1.7;
    color: #ddd;
    margin-bottom: 12px;
}

.cte-contexto ul {
    padding-left: 20px;
    margin: 12px 0;
}

.cte-contexto ul li {
    font-size: 0.95em;
    line-height: 1.6;
    color: #ccc;
    margin-bottom: 8px;
}

.cte-contexto ul li strong,
.cte-contexto strong {
    color: #ffc107;
}

/* ============================
   DOS TIPOS DE PROYECTOS
   ============================ */
.tipos-proyectos-section {
    margin: 30px 0;
}

@media (min-width: 768px) {
    .tipos-proyectos-section {
        margin: 60px 0;
    }
}

.proyectos-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .proyectos-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 30px;
    }
}

.proyecto-card {
    background: rgba(42, 42, 42, 0.7);
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid rgba(255, 193, 7, 0.3);
}

.proyecto-card.particular .proyecto-header {
    background: rgba(37, 211, 102, 0.15);
    border-bottom: 2px solid #25D366;
}

.proyecto-card.publico .proyecto-header {
    background: rgba(26, 115, 232, 0.15);
    border-bottom: 2px solid #1a73e8;
}

.proyecto-header {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

@media (min-width: 768px) {
    .proyecto-header {
        padding: 25px;
    }
}

.proyecto-header i {
    font-size: 2em;
}

.proyecto-card.particular .proyecto-header i {
    color: #25D366;
}

.proyecto-card.publico .proyecto-header i {
    color: #1a73e8;
}

.proyecto-header h3 {
    color: #ffc107;
    font-size: 1.2em;
    margin: 0;
}

@media (min-width: 768px) {
    .proyecto-header h3 {
        font-size: 1.4em;
    }
}

.proyecto-body {
    padding: 20px;
    text-align: left;
}

@media (min-width: 768px) {
    .proyecto-body {
        padding: 25px;
    }
}

.proyecto-body p {
    font-size: 0.95em;
    color: #ddd;
    margin-bottom: 12px;
}

.proyecto-body strong {
    color: #ffc107;
}

.nota-importante {
    background: rgba(255, 193, 7, 0.1);
    border-left: 4px solid #ffc107;
    padding: 12px;
    margin-top: 16px;
    border-radius: 0 8px 8px 0;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.nota-importante i {
    font-size: 1.3em;
    color: #ffc107;
    flex-shrink: 0;
}

.nota-importante p {
    margin: 0;
    font-size: 0.9em;
}

/* ============================
   MATERIALES CERTIFICADOS
   ============================ */
.materiales-cert-section {
    margin: 30px 0;
}

@media (min-width: 768px) {
    .materiales-cert-section {
        margin: 60px 0;
    }
}

.cert-content {
    max-width: 900px;
    margin: 0 auto;
}

.cert-intro {
    font-size: 1em;
    line-height: 1.7;
    color: #ddd;
    margin-bottom: 25px;
    text-align: center;
}

@media (min-width: 768px) {
    .cert-intro {
        font-size: 1.15em;
    }
}

.cert-intro strong {
    color: #ffc107;
}

.cert-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 25px;
}

@media (min-width: 768px) {
    .cert-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 25px;
    }
}

.cert-card {
    background: rgba(42, 42, 42, 0.7);
    padding: 20px 15px;
    border-radius: 12px;
    border: 2px solid rgba(255, 193, 7, 0.3);
    text-align: center;
}

@media (min-width: 768px) {
    .cert-card {
        padding: 30px 20px;
    }
}

.cert-icon {
    font-size: 2em;
    color: #ffc107;
    margin-bottom: 12px;
}

@media (min-width: 768px) {
    .cert-icon {
        font-size: 2.5em;
    }
}

.cert-card h3 {
    color: #ffc107;
    font-size: 1em;
    margin-bottom: 10px;
}

@media (min-width: 768px) {
    .cert-card h3 {
        font-size: 1.2em;
    }
}

.cert-card p {
    font-size: 0.85em;
    line-height: 1.5;
    color: #ccc;
    margin: 0;
}

@media (min-width: 768px) {
    .cert-card p {
        font-size: 0.95em;
    }
}

.cert-ejemplo {
    background: rgba(37, 211, 102, 0.1);
    border: 2px solid #25D366;
    border-radius: 12px;
    padding: 20px;
    text-align: left;
}

@media (min-width: 768px) {
    .cert-ejemplo {
        padding: 25px;
    }
}

.cert-ejemplo h4 {
    color: #25D366;
    font-size: 1em;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

@media (min-width: 768px) {
    .cert-ejemplo h4 {
        font-size: 1.2em;
    }
}

.cert-ejemplo p {
    font-size: 0.95em;
    line-height: 1.6;
    color: #ddd;
    margin: 0;
}

.cert-ejemplo strong {
    color: #ffc107;
}

/* ============================
   LIMITACIONES NORMATIVAS
   ============================ */
.limitaciones-section {
    margin: 30px 0;
    padding: 30px 0;
    background: rgba(42, 42, 42, 0.4);
    border-radius: 12px;
    border: 1px solid rgba(255, 193, 7, 0.2);
}

@media (min-width: 768px) {
    .limitaciones-section {
        margin: 60px 0;
        padding: 40px 20px;
    }
}

.limitaciones-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 10px;
}

.limitaciones-intro {
    font-size: 1em;
    line-height: 1.7;
    color: #ddd;
    margin-bottom: 30px;
    text-align: center;
}

@media (min-width: 768px) {
    .limitaciones-intro {
        font-size: 1.15em;
    }
}

.limitaciones-intro strong {
    color: #ffc107;
}

.limitaciones-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 768px) {
    .limitaciones-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 25px;
    }
}

.limitacion-card {
    background: rgba(42, 42, 42, 0.7);
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid rgba(255, 193, 7, 0.3);
}

.limitacion-header {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

@media (min-width: 768px) {
    .limitacion-header {
        padding: 15px 20px;
    }
}

.limitacion-header.incorrecto {
    background: rgba(220, 53, 69, 0.15);
    border-bottom: 2px solid #dc3545;
}

.limitacion-header i {
    font-size: 1.5em;
    color: #dc3545;
}

@media (min-width: 768px) {
    .limitacion-header i {
        font-size: 1.8em;
    }
}

.limitacion-header span {
    color: #dc3545;
    font-weight: 700;
    font-size: 0.85em;
    text-transform: uppercase;
}

.limitacion-body {
    padding: 16px;
    text-align: left;
}

@media (min-width: 768px) {
    .limitacion-body {
        padding: 20px;
    }
}

.limitacion-body h4 {
    color: #ffc107;
    font-size: 1em;
    margin-bottom: 10px;
}

@media (min-width: 768px) {
    .limitacion-body h4 {
        font-size: 1.1em;
    }
}

.limitacion-body p {
    font-size: 0.9em;
    line-height: 1.6;
    color: #ccc;
    margin-bottom: 10px;
}

.limitacion-body strong {
    color: #ffc107;
}

.limitacion-body .solucion {
    background: rgba(37, 211, 102, 0.1);
    border-left: 4px solid #25D366;
    padding: 10px 12px;
    margin-top: 12px;
    border-radius: 0 8px 8px 0;
    font-size: 0.9em;
}

.limitacion-body .solucion strong {
    color: #25D366;
}

/* ============================
   RESUMEN PRÁCTICO
   ============================ */
.resumen-section {
    margin: 30px 0;
}

@media (min-width: 768px) {
    .resumen-section {
        margin: 60px 0;
    }
}

.resumen-content {
    max-width: 900px;
    margin: 0 auto;
}

.resumen-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 768px) {
    .resumen-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 25px;
    }
}

.resumen-card {
    background: rgba(42, 42, 42, 0.7);
    padding: 25px 20px;
    border-radius: 12px;
    border: 2px solid rgba(255, 193, 7, 0.3);
    text-align: center;
}

@media (min-width: 768px) {
    .resumen-card {
        padding: 30px 25px;
    }
}

.resumen-card i {
    font-size: 2.5em;
    color: #ffc107;
    margin-bottom: 15px;
}

@media (min-width: 768px) {
    .resumen-card i {
        font-size: 3em;
    }
}

.resumen-card h3 {
    color: #ffc107;
    font-size: 1.1em;
    margin-bottom: 12px;
}

@media (min-width: 768px) {
    .resumen-card h3 {
        font-size: 1.3em;
    }
}

.resumen-card p {
    font-size: 0.9em;
    line-height: 1.6;
    color: #ccc;
    margin: 0;
}

@media (min-width: 768px) {
    .resumen-card p {
        font-size: 1em;
    }
}

/* ============================
   AVISO LEGAL
   ============================ */
.aviso-legal-section {
    margin: 30px 0;
}

@media (min-width: 768px) {
    .aviso-legal-section {
        margin: 60px 0;
    }
}

.aviso-legal-box {
    background: rgba(108, 117, 125, 0.15);
    border: 2px solid #6c757d;
    border-radius: 12px;
    padding: 20px;
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
}

@media (min-width: 768px) {
    .aviso-legal-box {
        padding: 30px;
    }
}

.aviso-legal-box i {
    font-size: 2em;
    color: #6c757d;
    margin-bottom: 12px;
    display: block;
}

@media (min-width: 768px) {
    .aviso-legal-box i {
        font-size: 2.5em;
    }
}

.aviso-legal-box h3 {
    color: #6c757d;
    font-size: 1.2em;
    margin-bottom: 15px;
}

@media (min-width: 768px) {
    .aviso-legal-box h3 {
        font-size: 1.5em;
    }
}

.aviso-legal-box p {
    font-size: 0.95em;
    line-height: 1.7;
    color: #ddd;
    margin-bottom: 12px;
}

.aviso-legal-box strong {
    color: #ffc107;
}

/* ============================
   CTA
   ============================ */
.cta-section {
    margin: 30px 0;
    text-align: center;
}

@media (min-width: 768px) {
    .cta-section {
        margin: 60px 0;
    }
}

.cta-title {
    font-size: 1.3em;
    color: #ffc107;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (min-width: 768px) {
    .cta-title {
        font-size: 1.8em;
    }
}

.cta-subtitle {
    font-size: 1em;
    color: #ddd;
    margin-bottom: 25px;
    line-height: 1.6;
}

@media (min-width: 768px) {
    .cta-subtitle {
        font-size: 1.15em;
    }
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

@media (min-width: 600px) {
    .cta-buttons {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }
}

.cta-buttons a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95em;
    transition: all 0.3s ease;
}

.cta-buttons a:hover {
    transform: translateY(-2px);
}

.btn-llamada {
    background: #ffc107;
    color: #000;
}

.btn-llamada:hover {
    background: #ffdb4d;
}

.btn-whatsapp {
    background: #25D366;
    color: #000;
}

.btn-whatsapp:hover {
    background: #34eb7c;
}

.btn-servicios {
    background: rgba(255, 193, 7, 0.1);
    color: #ffc107;
    border: 2px solid #ffc107;
}

.btn-servicios:hover {
    background: rgba(255, 193, 7, 0.2);
}

/* ============================
   FAQ
   ============================ */
.faq-section {
    margin: 30px 0;
}

@media (min-width: 768px) {
    .faq-section {
        margin: 60px 0;
    }
}

.faq-grid {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

@media (min-width: 768px) {
    .faq-grid {
        gap: 20px;
    }
}

.faq-item {
    background: rgba(42, 42, 42, 0.6);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid rgba(255, 193, 7, 0.2);
    text-align: left;
}

@media (min-width: 768px) {
    .faq-item {
        padding: 25px;
    }
}

.faq-question {
    color: #ffc107;
    font-size: 1em;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

@media (min-width: 768px) {
    .faq-question {
        font-size: 1.1em;
    }
}

.faq-question i {
    color: #25D366;
    flex-shrink: 0;
}

.faq-answer {
    font-size: 0.95em;
    line-height: 1.7;
    color: #ddd;
    margin: 0;
}

.faq-answer strong {
    color: #ffc107;
}

/* ============================
   FOOTER
   ============================ */
.main-footer {
    background-color: rgba(0, 0, 0, 0.85);
    border-top: 1px solid rgba(255, 193, 7, 0.2);
    padding: 30px 20px;
    margin-top: 40px;
    text-align: center;
}

.footer-content a {
    color: #ffc107;
    text-decoration: none;
    font-weight: bold;
    margin: 0 10px;
}

.footer-content a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer-content p {
    margin: 10px 0;
    color: #aaa;
    font-size: 0.9em;
}

/* ============================
   RESPONSIVE MENU
   ============================ */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    .hamburger {
        display: block;
    }
    .main-header {
        padding: 10px 15px;
    }
}
