/* S.C. */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #121212;
    color: #FFFFFF;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: #FFFFFF;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.btn-wrapper {
    display: flex;
    justify-content: center;
    padding: 15px 0;
    /* ajusta el espacio a lo que necesita */
}

.btn {
    display: inline-block;
    background-color: #D62828;
    color: #FFFFFF;
    padding: 10px 20px;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.btn:hover {
    background-color: gold;
    transform: translateY(-2px);
}

/* Header */
header {
    background-color: rgba(18, 18, 18, 0.9);
    position: fixed;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    width: 200px;
    height: 100px;
    background-image: url('../img/tes.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: left;
    display: flex;
    justify-content: left;
}

.logo p {

    color: #FFFFFF;
    font-size: 0.7rem;
    margin-top: 80px;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    font-size: 18px;
    margin-left: 25px;
}

nav ul li a {
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

nav ul li a:hover {
    color: gold;
}

nav ul li a.active {
    color: gold;
}

nav ul li a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #F77F00;
}

.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
}


/* Boton Menu Toggle */
.menu-toggle {
    display: none;
    /* no se muestra en desktop por defecto */
    cursor: pointer;
    position: relative;
    z-index: 1001;
    width: 44px;
    height: 44px;
    border-radius: 5px;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    transform: scale(1.05);
}

.menu-toggle i {
    color: white;
    font-size: 1.5rem;
}

@media (max-width: 768px) {

    /* navegacion principal*/
    nav ul {
        display: none;
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: #1E1E1E;
        flex-direction: column;
        padding: 0;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
        z-index: 1000;/*controla oder de apliamiento*/
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s ease-out;
    }

    nav ul.show {
        display: flex;
        max-height: 100vh;
        padding: 15px 0;
        transition: max-height 0.5s ease-in;
    }

    /* items individuales del menu*/
    nav ul li {
        margin: 0;
        text-align: center;
        padding: 12px 0;
        border-bottom: 1px solid #333;
        transition: background-color 0.3s ease;
    }

    nav ul li:last-child {
        border-bottom: none;
    }

    /* links del menu */
    nav ul li a {
        display: block;
        padding: 10px 15px;
        font-size: 1.1rem;
        transition: all 0.3s ease;
    }

    /* links activos */
    nav ul li a.active {
        color: gold;
        background-color: rgba(214, 40, 40, 0.2);
    }

    /* estado hover */
    nav ul li a:hover {
        color: gold;
        background-color: rgba(247, 127, 0, 0.1);
    }

    /* remover el indicador activo en desktop */
    nav ul li a.active::after {
        display: none;
    }
}

/* ajustes para pantallas super pequenas */
@media (max-width: 480px) {
    .menu-toggle {
        width: 40px;
        height: 40px;
    }

    nav ul {
        top: 70px;
        /* ajuste para un header pequeno */
    }

    nav ul li {
        padding: 10px 0;
    }

    nav ul li a {
        font-size: 1rem;
        padding: 8px 10px;
    }
}

.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.902), rgba(0, 0, 0, 0.792)), url('../img/intro.jpg');
    background-size: cover;
    background-position: center;
    height: 80vh;
    display: flex;
    align-items: center;
    text-align: center;
    padding-top: 80px;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: gold;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* About Section */
.about-section {
    padding: 80px 0;
    background-color: #1E1E1E;
}

.about-section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
    color: gold;
}

.about-section p {
    margin-bottom: 20px;
    text-align: justify;
}

/* seccion de razones*/
.reasons {
    padding: 80px 0;
}

.reasons h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2rem;
    color: gold;
}

.reasons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.reason-box {
    background-color: #1E1E1E;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease;
    border-top: 3px solid #c40d0d;
}

.reason-box:hover {
    transform: translateY(-10px);
}

.reason-box i {
    font-size: 2.5rem;
    color: gold;
    margin-bottom: 20px;
}

.reason-box h3 {
    margin-bottom: 15px;
    color: #c40d0d;
}

/* Footer */
footer {
    background-color: #0A0A0A;
    padding: 60px 0 0;
    font-size: 1rem;
    line-height: 1.6;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.footer-section {
    margin-bottom: 30px;
}

.footer-section h3 {
    color: gold;
    margin-bottom: 20px;
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* seccion About */
.footer-section.about {
    position: relative;
    padding-top: 120px;
}

.footer-section.about::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 200px;
    height: 100px;
    background-image: url('../img/tes.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: left top;
}

.footer-section.about p {
    margin-bottom: 20px;
    text-align: left;
}

/* info de contacto */
.contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact span {
    display: flex;
    align-items: center;
}

.contact i {
    margin-right: 10px;
    color: gold;
    min-width: 20px;
    text-align: center;
}

/* seccion de links */
.footer-section.links ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    list-style: none;
    padding-left: 0;
}

.footer-section.links ul li {
    margin-bottom: 8px;
}

.footer-section.links ul li a {
    display: block;
    padding: 8px 0;
    transition: color 0.3s ease;
}

.footer-section.links ul li a:hover {
    color: gold;
}

/* seccion Social */
.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #1E1E1E;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: gold;
    transform: translateY(-3px);
}

.social-links i {
    font-size: 1.2rem;
}

/* Footer Bottom */
.footer-bottom {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid #333;
    font-size: 0.9rem;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}
@media (max-width: 768px) {
    .footer-content {
        display: flex;
        /* Cambia de grid a flexbox para mejor control */
        flex-direction: column;
        /* Organiza en columna */
        align-items: center;
        /* Centrado horizontal */
        gap: 20px;
        /* Reduce espacio entre secciones (antes gap: 0px) */
        padding: 20px 10px;
        /* Añade padding interno */
        text-align: center;
    }

    .footer-section {
        width: 100%;
        /* Ocupa todo el ancho disponible */
        max-width: 280px;
        /* Limita el ancho para mejor legibilidad */
        text-align: center;
        /* Asegura centrado del texto */
        padding: 0;
        /* Elimina padding lateral (antes 0 10px) */
        margin-bottom: 10px;
    }

    .footer-section.about {
        margin-top: -90px;
        padding-top: 20px;
    }

    .footer-section.about::before {
        position: relative;
        margin: 0 auto 20px;
        left: auto;
    }

    .footer-section.about p {
        display: none;
    }

    .contact {
        align-items: center;
    }

    .contact span {
        display: flex;
        justify-content: center;
        /* Centrado horizontal */
        align-items: center;
        /* Alineación vertical */
        gap: 8px;
    }

    .footer-section.links ul {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        /* Crea 2 columnas */
        gap: 8px 15px;
        /* 8px vertical, 15px horizontal */
        padding: 0;
        list-style: none;
        margin: 0 auto;
        max-width: 280px;
        /* Controla el ancho máximo */
        max-height: 120px;
    }

    .footer-section.links li {
        margin: -12%;
        position: relative;
        padding-left: 2px;
        /* Espacio para el bullet personalizado */
    }

    .footer-section.links li::before {
        content: "•";
        color: gold;
        /* Color dorado para coincidir con el estilo */
        position: absolute;
        left: 5px;
        /* Ajuste fino de posición */
    }

    .social-links {
        justify-content: center;
        /* Centrado de íconos */
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .footer-section.about {
        padding-top: 60px;
        /* Menor espacio para logo */
        background-size: 100px;
        /* Logo más pequeño */
    }

    .footer-section.links ul {
        gap: 6px;
        /* Espacio aún más reducido */
    }
}

.footer-section.about::before {
    width: 150px;
    height: 75px;
}

.footer-section {
    padding: 0 10px;
}

/* Estilos para otras páginas*/
.page-header {
    padding: 120px 0 60px;
    text-align: center;
    background-color: #1E1E1E;
}

.page-header h1 {
    font-size: 2.5rem;
    color: gold;
    margin-bottom: 20px;
}

.page-content {
    padding: 60px 0;
}

/* Media Queries para Responsive */
@media (max-width: 768px) {
    nav ul {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: #1E1E1E;
        flex-direction: column;
        padding: 20px 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    }

    nav ul.show {
        display: flex;
    }

    nav ul li {
        margin: 0;
        text-align: center;
        padding: 10px 0;
    }

    .menu-toggle {
        display: block;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 70vh;
    }

    .hero h2 {
        font-size: 1.8rem;
    }

    .page-header {
        padding: 100px 0 40px;
    }

    .page-header h1 {
        font-size: 2rem;
    }
}

/* Estilos para página Nosotros */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.about-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.perito-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background-color: #1E1E1E;
    padding: 30px 20px 30px 20px;
    border-radius: 8px;
}

.perito-image img {
    width: 90%;
}

.perito-info h2 {
    text-align: center;
    color: gold;
    margin-bottom: 15px;
}

.perito-info h3 {
    text-align: center;
    color: #FFFFFF;
    margin-bottom: 20px;
}

.perito-info ul {
    margin: 20px 0;
    padding-left: 20px;
}

.perito-info ul li {
    margin-bottom: 10px;
}

/* Estilos para página Servicios */
.services-intro {
    margin-bottom: 40px;
    text-align: center;
}

.service-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 60px;
    align-items: center;
}

.service-item.reverse {
    direction: rtl;
}

.service-item.reverse>* {
    direction: ltr;
}

.service-img img {
    margin-left: 15%;
    width: 70%;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.service-desc h3 {
    color: gold;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.service-desc ul {
    margin: 20px 0;
    padding-left: 20px;
}

.service-desc ul li {
    margin-bottom: 8px;
}

.emergency-contact {
    margin-top: 20px;
    font-weight: bold;
    color: #D62828;
}

/* Estilos para página Trabajos */
.projects-intro {
    margin-bottom: 40px;
    text-align: center;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.project {
    background-color: #1E1E1E;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.project:hover {
    transform: translateY(-10px);
}

.project img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-info {
    padding: 20px;
}

.project-info h3 {
    color: gold;
    margin-bottom: 10px;
}

.project-date {
    display: inline-block;
    margin-top: 10px;
    font-size: 0.9rem;
    color: #AAAAAA;
}

.testimonials {
    margin-top: 60px;
}

.testimonials h2 {
    text-align: center;
    margin-bottom: 40px;
    color: gold;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-box {
    background-color: #1E1E1E;
    padding: 30px;
    border-radius: 8px;
    border-top: 3px solid #D62828;
}

.testimonial-author {
    margin-top: 20px;
    font-style: italic;
}

.testimonial-author strong {
    color: gold;
}

/* Estilos para página Contacto */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}
.contact-info h2 {
    color: #D62828;
}

.contact-form h2 {
    color: gold;
}

.contact-info h2,
.contact-form h2 {
    margin-bottom: 30px;
    font-size: 1.5rem;
}
/**/
/* Solución alternativa más simple */
.contact-info {
    font-size: .9rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contact-info > h2 {
    width: 100%;
    margin-bottom: 30px;
    color:#D62828;
}

/* Columnas */
.info-box {
    width: calc(50% - 20px);
    margin: 0 10px 20px;
    text-align: left;
    display: flex;
}

/* Ordenamos los elementos */
.contact-info > h2 { order: 1; }
.contact-info > .info-box:nth-child(2) { order: 2; } /* Dirección */
.contact-info > .info-box:nth-child(3) { order: 4; } /* Teléfono */
.contact-info > .info-box:nth-child(4) { order: 3; } /* Correo */
.contact-info > .info-box:nth-child(5) { order: 5; } /* Horario */
.social-contact { order: 6; width: 100%; margin-top: 20px; }

/* Responsive */
@media (max-width: 768px) {
    .info-box {
        width: 100%;
    }
}  
.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
    
}


 /**/
.info-box {
    display: flex;
    margin-bottom: 30px;
}

.info-box i {
    font-size: 1.5rem;
    color: gold;
    margin-right: 20px;
    margin-top: 5px;
}

.info-box h3 {
    margin-bottom: 10px;
    color: #FFFFFF;
}

@media (max-width: 768px) {
   .contact-info h2{
    text-align: center;
   }
   
   .social-contact{
    padding-right: 30px;
    text-align: center;
   }
   .social-icons{
    padding-right: 0px;
    display: flex;
  justify-content: center; 
  align-items: center;    
   
   }
   .contact-form{
    padding-right: 30px;
     width: 100%;            
  max-width: 400px;       
   }
    
}

.social-contact {
    margin-top: 40px;
}


.social-icons {
    display: flex;
    gap: 55px;
    margin-top: 15px;
}

.social-icons a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: #1E1E1E;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: gold;
    transform: translateY(-3px);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #333;
    border-radius: 5px;
    background-color: #1E1E1E;
    color: #FFFFFF;
    font-family: inherit;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Estilos para página Oficina */
.office-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.office-info h2 {
    color: #D62828;
    margin-bottom: 20px;
}

.office-info h3 {
    color: gold;
    margin: 25px 0 15px;
}

.office-info ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

.office-info ul li {
    margin-bottom: 8px;
}

.note {
    font-style: italic;
    color: #AAAAAA;
    margin-top: 30px;
}
.office-map{
    place-items: center;
    text-align: center;
}
.map-container {
    margin-bottom: 30px;
    overflow: hidden;
}
.map-container iframe{
    width: 400px; 
    height: 400px;      
  border: 3px solid #333; 
  border-radius: 10px;   
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); 
  display: block;      /* asegura que margin: auto funciona */
  margin: 20px auto; 
}

@media (max-width: 768px) {
  .map-container iframe {
    width: 90%;      
    max-width: 400px; /* previene que este demasiado ancho */
    height: 300px;   
  }
}


.transport-options {
    margin-top: 30px;
}

.transport-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.transport-option {
    background-color: #1E1E1E;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.transport-option i {
    font-size: 2rem;
    color: gold;
    margin-bottom: 15px;
}

.transport-option h4 {
    margin-bottom: 10px;
    color: #FFFFFF;
}

/* Media Queries para páginas específicas */
@media (max-width: 900px) {

    .about-content,
    .perito-section,
    .contact-container,
    .office-container {
        grid-template-columns: 1fr;
    }

    .service-item,
    .service-item.reverse {
        grid-template-columns: 1fr;
        direction: ltr;
    }

    .service-img {
        order: -1;
    }
}

@media (max-width: 480px) {

    .project-info,
    .testimonial-box,
    .info-box,
    .transport-option {
        padding: 15px;
    }
}

