/* css/style.css */

/* Basic Reset & Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2c3e50; /* Azul oscuro para texto y elementos principales */
    --secondary-color: #0f3a57; /* Azul más claro para acentos y botones */
    --accent-color: #2ecc71; /* Verde para destacar elementos */
    --text-color: #555;
    --light-bg: #f8f8f8;
    --white-color: #ffffff;
    --font-heading: 'Roboto', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-color);
    scroll-behavior: smooth; /* Smooth scrolling para los enlaces ancla */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 20px;
}

h2 {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}
h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 10px auto 0;
}

p {
    margin-bottom: 15px;
}

a {
    text-decoration: none;
    color: var(--secondary-color);
    transition: color 0.3s ease;
}
a:hover {
    color: var(--accent-color);
}

.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: bold;
    text-transform: uppercase;
    transition: background-color 0.3s ease, color 0.3s ease;
    text-align: center;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--white-color);
    border: 2px solid var(--secondary-color);
}
.btn-primary:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}
.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}

section {
    padding: 80px 0;
}



/* Header & Navigation */

/* HERO SECTION */
.hero-section {
  position: relative;
  width: 100%;
height: 10%;
}



/* Navbar */
.navbar {
 position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1rem 2rem;
  background-color: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(6px);
  z-index: 999;
  transition: top 0.3s ease-in-out;
}


.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.logo img {
  height: 50px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-links li a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links li a:hover {
  color: #ffcc00;
}

/* Carousel captions */
.carousel-caption {
  bottom: 20%;
  text-align: left;
  
}

.carousel-caption h1 {
  font-size: 3rem;
  font-weight: bold;
  color: #fff;
  text-shadow: 1px 1px 10px rgba(0, 0, 0, 0.7);
}

.carousel-caption p {
  font-size: 1.2rem;
  color: #f0f0f0;
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.6);
}

.carousel-caption .btn {
  background-color: #f0c040;
  border: none;
  color: #000;
  font-weight: bold;
  padding: 0.6rem 1.2rem;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.carousel-caption .btn:hover {
  background-color: #d8a830;
}

/* Responsive ajustes */
@media (max-width: 768px) {
  .navbar .container {
    flex-direction: column;
  }

  .nav-links {
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
  }

  .carousel-caption h1 {
    font-size: 2rem;
  }

  .carousel-caption p {
    font-size: 1rem;
  }
}

/* Estilos para el contenedor del logo (el enlace) */
.logoA {
    /* Opcional: Si quieres que el área clicable del logo tenga un tamaño mínimo */
    display: flex; /* Para centrar la imagen si el contenedor es más grande */
    align-items: center;
    justify-content: center;
    height: 100px; /* Un poco más grande para darle espacio al logo si lo deseas, o déjalo a Bootstrap */
    width: auto; /* Permite que el ancho se ajuste al contenido o a la altura del navbar */
}

/* Estilos para la imagen del logo */
.logoA img {
    max-height: 100%; /* La clave: la altura máxima de la imagen es el 100% de su contenedor (.logoA) */
    max-width: 100%;  /* La clave: el ancho máximo de la imagen es el 100% de su contenedor (.logoA) */
    height: auto;     /* Mantiene la proporción de la imagen automáticamente */
    width: auto;      /* Permite que el ancho se ajuste automáticamente */
    object-fit: contain; /* Asegura que la imagen se ajuste dentro del contenedor sin recortarse */
    /* background-color: blue; /* Para depuración: ver el tamaño real de la imagen */
}

/* Si usas Bootstrap y su clase 'navbar-brand' */
.navbar-brand img {
    height: 90px; /* Altura fija para el logo en el navbar, Bootstrap lo maneja bien */
    width: auto; /* Mantiene la proporción */
}


/* About Us Section */
.about-section {
    background-color: var(--white-color);
    text-align: center;
}
.about-section p {
    max-width: 800px;
    margin: 0 auto 15px auto;
    font-size: 1.1em;
}



/* About Us Section Arqcon mision vision */

/* --- Section Title --- */
.about-section {
    padding: 60px 0;
    text-align: center;
}

.section-title {
    font-size: 2.8em;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    color: var(--secondary-color);
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

.section-intro {
    font-size: 1.15em;
    color: #666;
    max-width: 700px;
    margin: 0 auto 50px auto;
}

/* --- Flashcard Grid --- */
.flashcard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    justify-content: center;
    align-items: stretch; /* Para que todas las tarjetas tengan la misma altura */
}

/* --- Flashcard Base --- */
.flashcard {
    background-color: transparent; /* Permite ver el fondo de la sección si hay */
    width: 100%;
    height: 350px; /* Altura fija para todas las tarjetas */
    perspective: 1000px; /* Para el efecto 3D */
    border-radius: 12px;
    overflow: hidden; /* Asegura que el contenido no se desborde con el giro */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.6s ease-in-out, box-shadow 0.3s ease;
}

.flashcard:hover {
    transform: translateY(-8px); /* Efecto de "levantar" al pasar el mouse */
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* --- Flashcard Inner for Flip Effect --- */
.flashcard-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.flashcard:hover .flashcard-inner {
    transform: rotateY(180deg);
}

/* --- Flashcard Front & Back --- */
.flashcard-front, .flashcard-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden; /* Oculta la parte trasera durante el giro */
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    border-radius: 12px;
    background-color: var(--card-bg);
}

.flashcard-front {
    background-image: linear-gradient(135deg, var(--primary-color) 0%, #18363d 100%);
    color: white;
}

.flashcard-front h3 {
    color: white;
    font-size: 1.8em;
    margin-top: 15px;
}

.flashcard-front .icon {
    font-size: 4em;
    margin-bottom: 10px;
    color: white; /* Asegúrate de que el icono sea blanco */
}

.flashcard-back {
    background-color: var(--card-bg);
    color: var(--text-color);
    transform: rotateY(180deg);
    text-align: left; /* Alinea el texto a la izquierda en la parte trasera */
    justify-content: flex-start; /* Alinea el contenido arriba */
    padding-top: 40px; /* Espacio superior para el título */
}

.flashcard-back h4 {
    font-size: 1.5em;
    color: var(--primary-color);
    margin-bottom: 15px;
    text-align: center; /* Centra el título trasero */
}

.flashcard-back p {
    font-size: 0.95em;
    margin-bottom: 10px;
    text-align: justify; /* Justifica el texto */
}

.flashcard-back ul li {
    font-size: 0.9em;
    color: #555;
}

/* Specific card styles for subtle color variations (optional) */
.flashcard.mission .flashcard-front { background-image: linear-gradient(135deg, #053d4e 0%, #041830 100%); } /* Esmeralda */
.flashcard.vision .flashcard-front { background-image: linear-gradient(135deg, #041830 0%, #02338f 100%); } /* Amatista */
.flashcard.values .flashcard-front { background-image: linear-gradient(135deg, #0053b1 0%, #022e5b 100%); } /* Calabaza */
.flashcard.proposal .flashcard-front { background-image: linear-gradient(135deg, #022e5b 0%, #041830 100%); } /* Asfalto mojado */


/* --- Responsive Design --- */
@media (max-width: 768px) {
    .section-title {
        font-size: 2.2em;
    }

    .section-intro {
        font-size: 1em;
        margin-bottom: 30px;
    }

    .flashcard-grid {
        grid-template-columns: 1fr; /* Una columna en pantallas pequeñas */
    }

    .flashcard {
        height: auto; /* Altura automática en móvil para no cortar contenido */
        min-height: 300px; /* Altura mínima */
    }

    .flashcard-back {
        padding-top: 20px; /* Ajuste el padding para móvil */
    }
}

@media (max-width: 480px) {
    .flashcard-back ul li {
        font-size: 0.85em;
    }
}




/* Services Section */
.services-section {
    background-color: var(--light-bg);
}
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    text-align: center;
}
.service-item {
    background-color: var(--white-color);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.12);
}
.service-item i {
    font-size: 3em;
    color: var(--secondary-color);
    margin-bottom: 20px;
}
.service-item h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

/* Projects Section */
.projects-section {
    background-color: var(--white-color);
}
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.project-item {
    background-color: var(--white-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.project-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.12);
}
.project-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}
.project-item h3 {
    padding: 15px 20px 5px;
    font-size: 1.4em;
}
.project-item p {
    padding: 0 20px 20px;
    font-size: 0.95em;
    color: var(--text-color);
}


  /* <!-- Botón Subir -->*/

.scroll-to-top {
  position: fixed;
  bottom: 80px;
  right: 25px;
  width: 45px;
  height: 45px;
  background-color: #0d6efd;
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 18px;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  z-index: 999;
  transition: all 0.3s ease;
}

.scroll-to-top:hover {
  background-color: #084298;
  transform: scale(1.1);
}


/* --- Carousel Navigation Buttons --- */
.carousel-nav {
    position: absolute;
    width: 100%;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    box-sizing: border-box;
    z-index: 10;
}

.nav-button {
    background-color: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    font-size: 1.5em;
    padding: 15px 20px;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    outline: none;
}

.nav-button:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}



/*carousel news*/

#arquitecturaNoticiasGrid .card-title {
  font-size: 1.1rem;
}

#arquitecturaNoticiasGrid .card-text {
  font-size: 0.95rem;
  color: #555;
}

#arquitecturaNoticiasGrid .btn-outline-primary {
  border-radius: 20px;
  font-size: 0.9rem;
}

#arquitecturaNoticiasGrid img {
  object-fit: cover;
  height: 220px;
}

/* btn whatsapp */

.whatsapp-button {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 45px;
  height: 45px;
  background-color: #25D366;
  color: white;
  font-size: 1.5rem;
  padding: 16px;
  border-radius: 50%;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
  z-index: 999;
  transition: all 0.3s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.whatsapp-button:hover {
  background-color: #1ebe5b;
  transform: scale(1.1);
}



/* Contact Section */
.contact-section {
    background-color: var(--light-bg);
}
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: var(--font-body);
    font-size: 1em;
}
.contact-form button {
    width: auto;
    cursor: pointer;
    font-size: 1.1em;
}

.contact-info {
    text-align: left;
}
.contact-info p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1em;
}
.contact-info i {
    color: var(--secondary-color);
    font-size: 1.3em;
}
.social-links {
    margin-top: 20px;
    margin-bottom: 30px;
}
.social-links a {
    display: inline-block;
    color: var(--primary-color);
    font-size: 1.8em;
    margin-right: 15px;
    transition: color 0.3s ease;
}
.social-links a:hover {
    color: var(--secondary-color);
}
.map-container {
    border-radius: 8px;
    overflow: hidden;
    height: 250px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}
.map-container iframe {
    border: 0;
}




/* newsletter */

.newsletter-section {
  background: linear-gradient(to right, #017df8d8, #ffffff);
}

.newsletter-section h2 {
  font-weight: 700;
  color: #333;
}

.newsletter-section p {
  font-size: 1.1rem;
  color: #555;
}

/* RRSS */

.social-links .social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 18px;
  color: #fff;
  transition: transform 0.3s ease, background-color 0.3s ease;
  text-decoration: none;
}

.social-icon.facebook { background-color: #3b5998; }
.social-icon.instagram { background-color: #e4405f; }
.social-icon.linkedin { background-color: #0077b5; }

.social-links .social-icon:hover {
  transform: scale(1.1);
  opacity: 0.9;
}




/* Footer */
.footer {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 30px 0;
text-align: center;
font-size: 0.9em;
}
.footer p {
margin-bottom: 10px;
}
.footer a {
color: var(--accent-color);
}
.footer a:hover {
text-decoration: underline;
}


/* Responsive Design */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        align-items: flex-start;
    }
    .nav-links {
        flex-direction: column;
        width: 100%;
        margin-top: 20px;
        display: none; /* Se mostrará con JavaScript si hay un menú hamburguesa */
        text-align: center;
    }
    .nav-links.active {
        display: flex;
    }
    .nav-links li {
        margin: 10px 0;
    }
    .hero-content h1 {
        font-size: 2.5em;
    }
    .hero-content p {
        font-size: 1em;
    }
    .service-grid,
    .project-grid,
    .contact-grid {
        grid-template-columns: 1fr; /* Una columna para móviles */
    }
    .contact-info {
        text-align: center; /* Centrar información de contacto en móviles */
    }
    .social-links {
        display: flex;
        justify-content: center;
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2em;
    }
    h2 {
        font-size: 2em;
    }
    section {
        padding: 50px 0;
    }
}

/*/ Estilos para el botón de hamburguesa (añadir a style.css)*/
        
        .menu-toggle {
            display: none; /*/ Oculto por defecto en desktop*/
            cursor: pointer;
        }
        .menu-toggle .bar {
            width: 25px;
            height: 3px;
            background-color: var(--white-color);
            margin: 5px 0;
            transition: 0.4s;
        }
        @media (max-width: 768px) {
            .menu-toggle {
                display: block; /*/ Visible en móvil*/
            }
            .nav-links {
                /*/ Ya definido en CSS para+*/ display: none;
            }
        }
        