/*
Theme Name: MAAG Child
Theme URI: https://puntosycontrapuntos.mx
Description: Child theme para MAAG
Author: Cecilia Salbuchi
Template: maag
Version: 1.0
*/

/* =========================
   CENTRALIZAR SINGLE ANUNCIANTE
========================= */

/* Asegura que el layout use todo el ancho disponible */
body.single-anunciante .site-content, .single-anunciante,
body.single-anunciante .content-area {
    width: 100% !important;
    max-width: 1366px;      /* ajustá el ancho máximo a tu gusto */
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}


/* Esconde sidebar si el theme lo está dejando aunque vacío */
body.single-anunciante .sidebar {
    display: none !important;
}

/* Si MAAG usa grid o flex para layout, forzar solo una columna */
body.single-anunciante .site-content {
    display: block !important;
}

/* Opcional: separación entre secciones de tu template */
.single-anunciante section {
    margin-bottom: 2rem;
}

.anunciante-banner {
    position: relative;
    width: 100%;
	overflow: hidden; 
}

.anunciante-banner > img {
    width: 100%;
    height: auto;
    display: block;
}

.fondo-transparente {
    position: absolute;
    top: 50%;
    left: -15%;
    transform: translateY(-50%);
	padding: 20% 5% 2% 18%;

    width: 620px;
    height: 620px;
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(6px); /* opcional, queda muy pro */
    
	
    display: flex;
    flex-direction: column;   /* 🔥 CLAVE */
    align-items: left;
    justify-content: left;
    text-align: left;
}

.anunciante-logo {
	width: 100%;
}

.anunciante-logo img {
    max-width: 200px;
    height: auto;
	margin-bottom:10px;
}
.anunciante-titulo {
	width: 100%;
	font-family: inherit;
    color: inherit;
}

.anunciante-titulo * {
	all: revert;
    box-sizing: border-box;
}

.banner-derecho {
    position: absolute;
    bottom: 2%;
    right: 2%;

    width: 520px;
    height: 420px;
    padding: 0 2% 2% 2%;

    display: flex;
    flex-direction: column;

    /* 🔥 contenido alineado abajo y a la derecha */
    justify-content: flex-end;
    align-items: flex-end;
    text-align: right;

    text-shadow: 0 0 2px #4D4D4D;
}

@media (max-width: 768px) {
    .banner-derecho {
        position: static;
        width: 100%;
        height: auto;
        padding: 24px;
        align-items: flex-start;
        text-align: left;
    }
}

.anunciante-principal {
	font-family: inherit;
    color: inherit;
	flex: 1;              /* ocupa todo el espacio restante */
}
.anunciante-principal *{
	all: revert;
    box-sizing: border-box;
}
.anunciante-redes {
  gap: 12px;
  margin-top: 16px;
  width: 200px;
}

.anunciante-redes .red img {
  width: 180px;
  margin: 0 0 10px 20px;
  height: auto;
  display: block;
}

.contenedor {
display: flex;
width: 100%;
}


@media (max-width: 768px) {
  .contenedor {
    flex-direction: column;
  }

  .anunciante-redes {
    width: 100%;
    align-items: center; /* opcional */
  }

  .anunciante-redes .red img {
    width: 200px; /* o 100% si querés full */
  }
}


.anunciante-bloque-flex {
    display: flex;
    width: 100%;
    gap: 24px;
    align-items: stretch; /* 🔑 MISMA ALTURA */
}

.anunciante-video,
.anunciante-texto {
    flex: 0 0 50%;
    max-width: 50%;
}

.anunciante-video iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    display: block;
    border-radius: 12px; /* opcional */
}
.anunciante-media {
    flex: 0 0 50%;
    max-width: 50%;
    display: flex;
}
.anunciante-fachada img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 🔥 */
    display: block;
}

.datos-contacto {
    display: flex;
    width: 100%;
    padding: 0;
    margin: 0;
    list-style: none;
}
.contacto-item {
    flex: 0 0 33.3333%;
    max-width: 33.3333%;

    display: flex;
    align-items: center;
    gap: 16px;

    padding: 24px;
    box-sizing: border-box;

    transition: background-color 0.3s ease, transform 0.3s ease;
}

.contacto-item:hover {
    background-color: #f5f5f5;
    transform: translateY(-4px);
}

.contacto-item:not(:last-child) {
    border-right: 1px solid #ddd;
}
.contacto-item img {
    width: 48px;
    height: 48px;
    padding: 12px;

    border: 2px solid #000;
    border-radius: 50%;

    flex-shrink: 0;
    object-fit: contain;
}
.contacto-item .contenido {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contacto-item .contenido .titulo {
    display: block;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #000;
    opacity: 0.7;
}


.contacto-item .texto,
.contacto-item .texto a {
    font-size: 16px;
    color: inherit;
    text-decoration: none;
}

@media (max-width: 768px) {
    .datos-contacto {
        flex-direction: column;
    }

    .contacto-item {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .contacto-item:not(:last-child) {
        border-right: none;
        border-bottom: 1px solid #ddd;
    }
}


/* FORM Y MAPA */


.anunciante-bloque-form {
    display: flex;
    width: 100%;
    gap: 20px;           /* separación entre form y mapa */
    align-items: stretch;
}

.anunciante-formulario,
.anunciante-mapa {
    flex: 0 0 50%;
    max-width: 50%;
    box-sizing: border-box;
}

.anunciante-formulario .wpcf7,
.anunciante-formulario form {
    width: 100%;
}

.anunciante-mapa iframe {
    width: 100%;
    height: 100%;
    min-height: 350px;
    border: 0;
    display: block;
}

@media (max-width: 768px) {
    .anunciante-bloque-form {
        flex-direction: column;
    }

    .anunciante-formulario,
    .anunciante-mapa {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .anunciante-mapa iframe {
        min-height: 280px;
    }
}




/* PARA LA SIDEBAR EN ANUNCIANTES */

@media (min-width: 992px) {
  body.single-anunciante.cs-sidebar-right .cs-main-content {
    grid-template-columns: 1fr !important;
    max-width: 100% !important;
  }
}

/* FULL WIDTH REAL para single anunciante */
.single-anunciante .cs-site-content {
    grid-template-columns: 1fr !important;
}

/* anula cualquier reserva de sidebar */
.single-anunciante .cs-site-content.cs-sidebar-enabled {
    display: block !important;
}

/* por si usa grid interno */
.single-anunciante .cs-main-content {
    max-width: 100% !important;
    width: 100% !important;
}
/* MAAG: desactivar sidebar REAL */
.single-anunciante .cs-site-content {
    display: block !important;
}

.single-anunciante .cs-main-content {
    max-width: 100% !important;
    width: 100% !important;
}
