/* Estilos generales */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    text-align: center;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;

    background-image: url('../images/fondoazul1.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.header-image {
    height: 100px;
    margin-right: 20px;
}

.index .welcome-section {
    max-width: 800px;
    margin: 0 auto;
    text-align: justify;
    line-height: 1.5;
    padding: 10px 20px;
    color: white;
}

.index .welcome-section h1 {
    text-align: center;
    margin-bottom: 10px;
    font-size: 30px;
}

.welcome-section p {
    font-size: 18px;
    margin: 0;
}

/* Navegación */
.main-nav {
    display: flex;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 15px;
    margin: 0;
    padding: 0;
}

.main-nav ul li a {
    color: white;
    background: #d06902;
    padding: 10px 15px;
    border-radius: 6px;
    font-weight: bold;
    text-decoration: none;
    transition: background 0.3s ease;
}

.main-nav ul li a:hover {
    background: #01064f;
    transform: scale(1.05);
}

/* Contenedor principal */
main {
    flex: 1;
    padding: 20px;
    min-height: 80vh;
}

/* Botones */
.button-container .btn,
.btn {
    display: inline-block;
    background: #d06902;
    color: white;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    transition: background 0.3s, transform 0.2s;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
    margin-bottom: 10px;
}

.button-container a {
    text-decoration: none;
}

.btn:hover {
    background: #01064f;
    transform: scale(1.05);
}

.text-highlight {
    font-size: 40px;
    font-weight: bold;
    color: black;
    text-align: center;
}

.white-box {
    background: rgba(255, 255, 255, 0.9);
    padding: 5px 10px;
    border-radius: 5px;
    border: 2px solid white;
    margin-bottom: 1px;
}

/* Footer */
footer {
    background: #01064f;
    color: white;
    text-align: center;
    padding: 10px;
    width: 100%;
    position: relative;
    box-sizing: border-box;
    margin-top: auto;
}

/* Grid general para servicios y clientes */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    padding: 20px;
    justify-items: center;
}

.service-card,
.client-card {
    width: 100%;
    max-width: 500px;
    text-align: center;
    background: rgba(255, 255, 255, 0.9);
    padding: 10px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.service-card:hover,
.client-card:hover {
    transform: scale(1.02);
}

.service-card img,
.client-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.client-card h3 {
    margin: 0;
    font-size: 18px;
    color: #01064f;
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 10px;
        margin-top: 10px;
    }

    .header-image {
        margin: 0 auto 10px;
    }
}
/* Estilo para mostrar imágenes en dos columnas */
.image-grid {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.image-grid img {
    width: 48%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* En pantallas pequeñas, mostrar una imagen por fila */
@media (max-width: 768px) {
    .image-grid {
        flex-direction: column;
    }

    .image-grid img {
        width: 100%;
    }
}

.image-container {
    width: 48%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 768px) {
    .image-container {
        width: 100%;
    }
}

.image-grid-overlay {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Cuadro flotante estilo botón */
.floating-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #d06902;
    color: white;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
    text-align: center;
    white-space: nowrap;
    z-index: 2;
    transition: background 0.3s ease, transform 0.2s ease;
    cursor: default;
}

/* Efecto hover como los botones de servicios */
.floating-btn:hover {
    background: #01064f;
    transform: translate(-50%, -50%) scale(1.05);
}

/* Estilo base para todos los botones del nav (a y span) */
.nav-link {
    display: inline-block;
    background: #d06902;
    color: white;
    padding: 10px 15px;
    border-radius: 6px;
    font-weight: bold;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.2s ease;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
    min-width: 100px;
    text-align: center;
}

/* Hover solo para los enlaces activos */
.nav-link:hover {
    background: #01064f;
    transform: scale(1.05);
}

/* Botón actual (desactivado visualmente) */
.nav-link.current {
    cursor: default;
    opacity: 0.7;
    transform: none;
}

/* Asegura misma apariencia visual en todos los botones */
.main-nav ul li {
    list-style: none;
}

header h1,
header p {
    color: black;
}

/* Estilo base del nav */
.main-nav {
    width: 100%;
}

/* Contenedor general del header */
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 0 20px;
}

/* Navegación */
.nav-middle {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
}

/* Botones en index, abajo del texto */
.nav-bottom {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

/* Estilo general de los botones (ya deberías tener esto, pero asegúrate) */
.main-nav ul {
    list-style: none;
    display: flex;
    gap: 15px;
    padding: 0;
    margin: 0;
}

/* Logo fijo a la izquierda */
.logo-container {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    padding: 10px 20px;
}

/* Logo fijo a la izquierda */
.logo-container {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

/* Estilo general del header */
header {
    background: white;
    color: black;
    width: 95%;
    margin: 20px auto;
    box-sizing: border-box;
    border-radius: 20px; /* margen redondeado */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* sombra sutil */
    padding: 0;
}

/* Header más compacto para otras páginas */
header.services,
header.contact,
header.clientes,
header.pintura,
header.pisos /* Agrega aquí cualquier otra página */ {
    min-height: 120px;
}

/* Ajustar también el layout cuando no es index */
.centered-layout {
    height: 100%;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* Contenido dinámico del header */
.header-dynamic {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

/* Compacta el contenido si no es index */
.compact-layout {
    padding: 10px;
}

/* Disposición lado a lado para pintura.php */
.image-text-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

/* Imágenes laterales como en services.php */
.side-image {
    width: 100%;
    max-width: 400px;
    height: 280px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Cuadro de texto centrado estilo botón */
.floating-service-button {
    background: #d06902;
    color: white;
    padding: 20px;
    border-radius: 12px;
    font-weight: bold;
    max-width: 400px;
    text-align: center;
    transition: background 0.3s, transform 0.3s;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.floating-service-button:hover {
    background: #01064f;
    transform: scale(1.05);
}

/* Responsive */
@media (max-width: 900px) {
    .image-text-wrapper {
        flex-direction: column;
    }
}

/* Layout en fila (tres columnas) */
.pintura-row-layout {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 30px;
    margin: 40px auto;
    flex-wrap: wrap;
    max-width: 1300px;
}

/* Imágenes laterales, estilo uniforme */
.pintura-img {
    width: 100%;
    max-width: 400px;
    height: 280px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Texto con estilo de botón */
.pintura-info-block {
    background: #d06902;
    color: white;
    padding: 20px;
    border-radius: 10px;
    max-width: 400px;
    flex: 1;
    font-weight: bold;
    text-align: justify;
    box-shadow: 2px 2px 6px rgba(0,0,0,0.3);
    transition: background 0.3s, transform 0.2s;
    display: flex;
    align-items: center;
}

/* Hover efecto botón */
.pintura-info-block:hover {
    background: #01064f;
    transform: scale(1.05);
}

/* Responsive */
@media (max-width: 900px) {
    .pintura-row-layout {
        flex-direction: column;
        align-items: center;
    }

    .pintura-img, .pintura-info-block {
        max-width: 90%;
    }

    .pintura-info-block {
        text-align: justify;
    }
}

.pintura-info-block {
    background: white;
    color: black;
    padding: 20px;
    border: 2px solid black;
    border-radius: 10px;
    max-width: 400px;
    flex: 1;
    font-weight: normal;
    font-size: 18px; /* 🔺 tamaño aumentado */
    text-align: justify;
    box-shadow: 2px 2px 6px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

/* Hover: solo zoom, sin cambiar color */
.pintura-info-block:hover {
    transform: scale(1.02);
    background: white; /* asegura que no cambie el fondo */
    color: black; /* asegura que no cambie el texto */
}

/* Contenedor general con posición relativa */
.servi-layout {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 60px auto;
    height: 500px; /* altura ajustable */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Cuadro de texto centrado */
.servi-text-box {
    background: white;
    color: black;
    border: 2px solid black;
    border-radius: 10px;
    padding: 25px;
    max-width: 600px;
    text-align: justify;
    font-size: 18px;
    font-weight: normal;
    box-shadow: 2px 2px 8px rgba(0,0,0,0.1);
    margin: 40px auto;
    transition: transform 0.3s;
}

.servi-text-box:hover {
    transform: scale(1.03);
}

/* Imágenes en esquinas */
.corner-img {
    position: absolute;
    width: 100%;
    max-width: 400px;
    height: 280px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    z-index: 1;
}

.top-left {
    top: -60px;
    left: -30px;
}

.top-right {
    top: -60px;
    right: -30px;
}

.bottom-left {
    bottom: -60px;
    left: -30px;
}

.bottom-right {
    bottom: -60px;
    right: -30px;
}

/* Responsive */
@media (max-width: 900px) {
    .servi-layout {
        height: auto;
        flex-direction: column;
        padding: 20px;
    }

    .corner-img {
        position: static;
        width: 90%;
        height: auto;
        margin: 10px 0;
    }
}

.servi-text {
    background-color: transparent !important;
    width: 700px;         /* Más ancho para hacerlo más grande */
    margin: 0 auto;
    padding: 15px;
    text-align: justify;
    box-sizing: border-box;
    color: black;
    font-weight: bold; 
    border-radius: 8px;   /* Opcional, para bordes suaves */
    font-size: 24px;      /* Tamaño de texto más grande */
    line-height: 1.5;
}

/* Estilo del cuadro de texto de bienvenida en index.php */
.welcome-text-container {
    display: flex;
    justify-content: center;
    margin: 20px 0 40px 0;  /* Margen arriba y abajo */
}

.welcome-text-box {
    font-weight: bold;      /* Negritas */
    color: black;           /* Color negro */
    background: rgba(255, 255, 255, 0.9);
    padding: 25px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    text-align: justify;
    max-width: 800px;       /* Tamaño original */
}

.welcome-text-box h1 {
    text-align: center;
    margin-bottom: 15px;
}

.welcome-text-box p {
    font-size: 16px;
    line-height: 1.6;
}

/* Header sin fondo, margen ni sombra */
header {
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    box-shadow: none !important;
    height: auto !important;
}

/* Contenedor interno mantiene padding y layout */
header .header-content {
    padding: 10px 20px !important;
    background: transparent !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

/* Botones color naranja normal */
header .main-nav ul li a {
    color: white !important;
    background: #d06902 !important;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.3) !important;
    transition: background 0.3s ease, transform 0.2s ease !important;
}

/* Botones al hover: azul con zoom */
header .main-nav ul li a:hover {
    background: #01064f !important;
    transform: scale(1.05) !important;
    color: white !important;
}

.contact-columns {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.contact-item {
  width: 280px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.contact-header {
  background: #d06902;
  color: white;
  padding: 20px;
  text-align: center;
  cursor: pointer;
}

.contact-header h2 {
  margin: 0;
  font-size: 20px;
  pointer-events: none;
}

.contact-header:hover {
  background: #01064f;
}

.contact-body {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: all 0.4s ease;
}

.contact-item.open .contact-body {
  max-height: 200px;
  opacity: 1;
  padding: 20px;
}

.contact-body p, .contact-body a {
  font-weight: bold;
  color: #333;
  text-align: center;
  margin: 0;
  font-size: 16px;
}


/* Botón de correo dentro de Contacto */
.contact-button {
  display: inline-block;
  background: #d06902;
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  width: 100%;
  text-align: center;
  box-shadow: 2px 2px 6px rgba(0,0,0,0.2);
  transition: background 0.3s ease, transform 0.2s ease;
}

.contact-button:hover {
  background: #01064f;
  transform: scale(1.05);
}

/* Overlay del formulario */
.form-overlay {
  display: none; /* oculto por defecto */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

/* Contenedor del formulario */
.form-container {
  background: white;
  padding: 30px;
  border-radius: 12px;
  width: 90%;
  max-width: 450px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.25);
  text-align: center;
  position: relative;
  animation: fadeIn 0.4s ease;
}

/* Título del formulario */
.form-container h2 {
  margin-bottom: 20px;
  font-size: 22px;
  color: #01064f;
}

/* Inputs */
.form-container input {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 15px;
  transition: border-color 0.3s ease;
}

.form-container input:focus {
  outline: none;
  border-color: #d06902;
}

/* Botón enviar */
.form-container button {
  width: 100%;
  padding: 12px;
  background: #d06902;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 2px 2px 6px rgba(0,0,0,0.2);
  transition: background 0.3s ease, transform 0.2s ease;
}

.form-container button:hover {
  background: #01064f;
  transform: scale(1.05);
}

/* Botón cerrar */
.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
  color: #333;
  transition: color 0.3s ease;
}

.close-btn:hover {
  color: #d06902;
}

/* Animación de aparición */
@keyframes fadeIn {
  from {opacity: 0; transform: scale(0.9);}
  to {opacity: 1; transform: scale(1);}
}