@charset "UTF-8";

/* ============================================
   MODERN STYLES - DISFRUTA LA PLAYA
   Diseño actualizado y responsive
   ============================================ */

/* Variables CSS */
:root {
    --primary-color: #268CCC;
    --secondary-color: #F20058;
    --accent-color: #34CDF9;
    --black: #000000;
    --text-color: #333333;
    --text-dark: #1a1a1a;
    --light-bg: #F5FAFF;
    --dark-bg: #E0EFFF;
    --border-color: #B3D9FF;
    --success-color: #339900;
    --error-color: #cc0000;
    --white: #FFFFFF;
    --shadow: 0 2px 8px rgba(38, 140, 204, 0.15);
    --shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Reset y Base */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background: url("../images/islas.jpg") repeat-x scroll 0 0 #ebe4e5;
}

.clear {
    clear: both;
}

/* Container Principal */
#contenedor {
    background: var(--white);
    border-left: 1px solid #EBEBEB;
    border-right: 1px solid #EBEBEB;
    margin: 0 auto;
    padding: 20px;
    max-width: 1200px;
    box-shadow: var(--shadow);
}

/* ============================================
   HEADER
   ============================================ */
#cabecerahome {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0px;
    padding: 0;
    margin-bottom: 5px;
}

#cabecerahome h1 {
    display: none;
}

/* Logo en header - izquierda */
#cabecerahome .logo {
    text-align: left;
    margin: 0;
}

#cabecerahome .logo img {
    max-width: 152px;
    height: auto;
}

/* Centro del header */
.header-center {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
}

#cabecerahome p.opina-est {
    background: url("../images/ico-pez-opina.png") no-repeat scroll 0 1px transparent;
    color: var(--secondary-color);
    font-size: 1.1em;
    font-weight: bold;
    padding: 10px 0 8px 40px;
    margin: 0;
    text-align: center;
    position: relative;
}

#cabecerahome #language {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
}

#cabecerahome #language a {
    color: #000;
    text-decoration: none;
    transition: color 0.3s ease;
}

#cabecerahome #language a.select {
    color: var(--primary-color);
    font-weight: bold;
}

#cabecerahome #language a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Logo standalone (si aparece fuera del header) */
.logo:not(#cabecerahome .logo) {
    text-align: center;
    margin: 20px 0;
}

.logo img {
    max-width: 152px;
    height: auto;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

/* Breadcrumb and Tabs Wrapper */
.breadcrumb-tabs-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0 10px 0;
    flex-wrap: wrap;
    gap: 15px;
}

/* Breadcrumb */
#wrap-top-enlace {
    flex: 1;
    min-width: 300px;
}

#wrap-top-enlace ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

#wrap-top-enlace ul li {
    display: flex;
    align-items: center;
    padding: 0 10px;
}

#wrap-top-enlace ul li:not(:last-child)::after {
    content: "→";
    margin-left: 10px;
    color: var(--primary-color);
}

#wrap-top-enlace ul li a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

#wrap-top-enlace ul li a.inicio {
    color: var(--primary-color);
}

#wrap-top-enlace ul li a.usoenactual {
    font-weight: bold;
    color: var(--text-color);
}

#wrap-top-enlace ul li a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Tabs Navigation */
.indentmenu {
    margin: 0;
    flex-shrink: 0;
}

.indentmenu ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 10px;
    align-items: center;
}

.indentmenu ul li a {
    background: var(--light-bg);
    color: var(--text-color);
    padding: 12px 20px;
    border-radius: 8px 8px 0 0;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid var(--border-color);
    border-bottom: none;
}

.indentmenu ul li a.selected {
    background: var(--primary-color);
    color: var(--white);
    font-weight: bold;
    box-shadow: 0 -2px 8px rgba(38, 140, 204, 0.3);
    border-color: var(--primary-color);
}

.indentmenu ul li a:hover {
    background: var(--primary-color);
    color: var(--white);
}

.indentmenu ul li a span.special {
    padding-left: 30px;
}

.indentmenu ul li a img {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
}

/* Main Content */
#petsdivcontainer {
    border-top: 2px solid var(--primary-color);
    padding-top: 15px;
    margin-top: 0;
}

/* Play Header */
.playa-header {
    margin-bottom: 20px;
    margin-top: 0;
}

.playa-title-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
}

/* Título principal con Satisfy */
#contenido-ficha-playa h1 {
    font-family: 'Satisfy', cursive;
    font-size: 3.5em;
    color: #F20058;
    margin: 0;
    font-weight: 400;
    letter-spacing: 1px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3), 
                 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Títulos h2 y h3 sin Satisfy (revertidos) */
#contenido-ficha-playa h2 {
    font-size: 2.2em;
    color: var(--black);
}

#contenido-ficha-playa h3 {
    font-size: 1.8em;
    color: var(--black);
}

#contenido-ficha-playa h1::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--secondary-color), var(--primary-color));
    margin-top: 12px;
    border-radius: 2px;
}

/* Badge Recomendada - Estilo Sello Tipo RECOMMENDED */
#recomendada {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #FF8C00;
    color: white;
    font-weight: 700;
    font-size: 0.7em;
    letter-spacing: 1.5px;
    padding: 6px 14px;
    border: 3px solid #FF8C00;
    border-radius: 50px;
    margin-left: 15px;
    vertical-align: middle;
    text-transform: uppercase;
    position: relative;
    height: auto;
    width: auto;
    box-shadow: 0 2px 8px rgba(255, 140, 0, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: rotate(-5deg);
    transition: all 0.3s ease;
}

/* Efecto de sello con líneas decorativas */
#recomendada::before {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 2px dashed rgba(255, 255, 255, 0.4);
    border-radius: 50px;
    pointer-events: none;
    z-index: 0;
}

/* El contenido se inserta con JavaScript */
#recomendada span {
    display: inline-block;
    vertical-align: middle;
}

#recomendada {
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Hover effect - efecto de sello pegado */
#recomendada:hover {
    transform: rotate(-3deg) scale(1.05);
    box-shadow: 0 4px 12px rgba(255, 140, 0, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.playa-location {
    color: var(--text-dark);
    font-size: 1.2em;
    font-weight: 600;
    display: block;
    margin-top: 10px;
}

/* Content Grid - Two Column Layout */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

/* Left Column */
#contenido-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.weather-map-section {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    margin-bottom: 20px;
}

.time {
    flex: 1;
    border: 0px;
    background-color: var(--white);
    padding: 10px;
    border-radius: 8px;
}

.map {
    width: 140px;
    height: 140px;
    overflow: visible;
    flex-shrink: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

.map img {
    width: 140px;
    height: 140px;
    object-fit: none;
    object-position: center;
    display: block;
    background: transparent;
    border: none;
}

.info-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.infor-historia {
    background: var(--light-bg);
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary-color);
}

.infor-historia:hover {
    border-left-color: var(--secondary-color);
    box-shadow: var(--shadow-hover);
}

.infor-historia h4 {
    color: var(--black);
    font-size: 1.3em;
    margin: 0 0 15px 0;
    font-weight: 700;
}

.infor-historia h4.title-blue {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}

.infor-historia p {
    color: var(--text-dark);
    line-height: 1.8;
    margin: 10px 0;
    font-size: 1em;
}

.infor-historia p strong {
    color: var(--primary-color);
    font-weight: 700;
}

/* Right Column */
#contenido-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    background: var(--white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.service-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: var(--light-bg);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.service-item:nth-child(even) {
    background: var(--dark-bg);
}

.service-item:hover {
    background: var(--primary-color);
    box-shadow: var(--shadow-hover);
}

.service-item:hover .service-label {
    color: var(--white);
}

.service-item:hover p.yes {
    color: var(--white);
}

.service-item:hover p.no {
    color: var(--white);
}

.service-item .service-label {
    font-size: 0.95em;
    color: var(--text-color);
    font-weight: 500;
}

.service-item p {
    margin: 0;
    font-weight: bold;
    font-size: 1em;
}

.service-item p.yes {
    color: var(--success-color);
}

.service-item p.no {
    color: var(--error-color);
}

/* Video Container */
.video-container {
    width: 100%;
    background: var(--light-bg);
    padding: 10px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.video-container iframe {
    width: 100%;
    height: 294px;
    border: none;
    border-radius: 6px;
}

.veryoutube {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    justify-content: flex-end;
}

.veryoutube a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.veryoutube a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Gallery Section */
.gallery-section {
    margin: 40px 0;
    padding: 20px 0;
    position: relative;
}

.gallery-title,
#contenido-ficha-playa h2.gallery-title {
    font-family: 'Satisfy', cursive;
    font-size: 2.2em;
    color: #F20058 !important;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 400;
    letter-spacing: 0.5px;
}

/* Pez lila - posicionado encima de la galería */
.pez-lila {
    background: url("../images/img-pez-lila.png") no-repeat scroll 0 0 transparent;
    height: 70px;
    width: 90px;
    position: absolute;
    top: -20px;
    right: 20px;
    z-index: 100;
    pointer-events: auto;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.pez-lila.hidden {
    opacity: 0;
    pointer-events: none;
}

#gallery {
    background: var(--light-bg);
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

/* Hotels and Activities Sections */
.hotels-section,
.activities-section {
    margin: 40px 0;
    padding: 20px;
    background: var(--light-bg);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.hotels-section h4,
.activities-section h4 {
    color: var(--primary-color);
    font-size: 1.5em;
    margin-bottom: 20px;
    font-weight: 700;
}

.title-blue {
    color: var(--primary-color);
}

/* Footer */
#foot {
    margin-top: 50px;
    background: var(--light-bg);
    border-radius: 8px 8px 0 0;
}

#foot #box-top {
    padding: 30px 20px;
    position: relative;
}

/* Playas Cercanas Section */
.playas-cercanas-section,
.playas-interes-section {
    margin-bottom: 40px;
    padding: 25px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.section-title {
    font-family: 'Satisfy', cursive;
    color: #F20058;
    font-size: 1.8em;
    font-weight: 400;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--primary-color);
    letter-spacing: 0.5px;
}

.playas-grid-cercanas,
.playas-grid-interes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.playa-item {
    display: flex;
    flex-direction: column;
    padding: 12px;
    background: var(--light-bg);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.playa-item:hover {
    background: var(--light-bg);
    border: 2px solid var(--secondary-color);
    box-shadow: var(--shadow-hover);
}

.playa-item a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05em;
    margin-bottom: 5px;
}

.playa-item a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.playa-distancia {
    color: var(--secondary-color);
    font-size: 0.9em;
    font-style: italic;
    font-weight: 500;
}

#foot #box-bottom {
    background: #EEF6FF;
    border-top: 5px solid #CCE5FF;
    padding: 30px 20px;
}

#foot #box-bottom ul {
    list-style: none;
    padding: 0;
    margin: 0 20px;
    float: left;
}

#foot #box-bottom ul li {
    margin-bottom: 8px;
}

#foot #box-bottom ul li.titulo a {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.1em;
}

#foot #box-bottom ul li a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

#foot #box-bottom ul li a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.foot-enlace {
    cursor: pointer;
    font-size: 0.9em;
    color: var(--text-color);
}

.shark {
    background: url("../images/img-shark.png") no-repeat scroll 0 0 transparent;
    height: 83px;
    width: 103px;
    position: absolute;
    left: 300px;
    top: -20px;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablets */
@media screen and (max-width: 1024px) {
    #contenedor {
        padding: 15px;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .weather-map-section {
        flex-direction: column;
        align-items: center;
    }
    
    .map {
        width: 140px;
        height: 140px;
        margin: 0 auto;
        background: transparent;
        border: none;
        box-shadow: none;
    }
    
    .map img {
        background: transparent;
        border: none;
        width: 140px;
        height: 140px;
        object-fit: none;
        object-position: center;
    }
}

/* Mobile */
@media screen and (max-width: 768px) {
    #contenedor {
        padding: 10px;
    }
    
    body {
        font-size: 14px;
    }
    
    /* Header Mobile */
    #cabecerahome {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 15px;
    }
    
    #cabecerahome .logo {
        text-align: center;
        margin: 0 auto;
    }
    
    .header-center {
        justify-content: center;
    }
    
    /* Ocultar frase en móvil */
    #cabecerahome p.opina-est {
        display: none !important;
    }
    
    /* Ocultar pez lila en móvil */
    .pez-lila {
        display: none !important;
    }
    
    #cabecerahome #language {
        justify-content: center;
        flex-wrap: wrap;
        margin-left: 0;
    }
    
    /* Logo Mobile - Centrado (si hay logo fuera del header) */
    .logo:not(#cabecerahome .logo) {
        text-align: center;
        margin: 15px auto;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    #cabecerahome .logo img {
        max-width: 120px;
    }
    
    /* Breadcrumb and Tabs Mobile */
    .breadcrumb-tabs-wrapper {
        flex-direction: column;
        align-items: stretch;
        margin: 15px 0 5px 0;
    }
    
    #wrap-top-enlace {
        width: 100%;
        margin-bottom: 10px;
    }
    
    #wrap-top-enlace ul {
        justify-content: center;
        font-size: 0.9em;
    }
    
    #wrap-top-enlace ul li {
        padding: 0 5px;
    }
    
    /* Tabs Mobile */
    .indentmenu {
        width: 100%;
    }
    
    .indentmenu ul {
        flex-direction: row;
        justify-content: center;
        gap: 5px;
    }
    
    .indentmenu ul li {
        flex: 1;
    }
    
    .indentmenu ul li a {
        width: 100%;
        text-align: center;
        border-radius: 8px;
        border: 1px solid var(--border-color);
        border-bottom: 1px solid var(--border-color);
        padding: 10px 15px;
        font-size: 0.9em;
    }
    
    .indentmenu ul li a.selected {
        border-radius: 8px;
    }
    
    /* Main Content Mobile */
    #petsdivcontainer {
        margin-top: 0;
        padding-top: 10px;
    }
    
    /* Title Mobile */
    #contenido-ficha-playa h1 {
        font-size: 2.8em;
        text-align: center;
        letter-spacing: 0.5px;
    }
    
    #contenido-ficha-playa h2 {
        font-size: 1.8em;
    }
    
    #contenido-ficha-playa h3 {
        font-size: 1.5em;
    }
    
    .gallery-title,
    #contenido-ficha-playa h2.gallery-title {
        font-size: 1.8em;
        color: #F20058 !important;
    }
    
    .section-title {
        font-size: 1.5em;
    }
    
    #contenido-ficha-playa h1::after {
        margin: 12px auto 0;
    }
    
    .playa-header {
        margin-top: 0;
        margin-bottom: 15px;
    }
    
    .playa-title-wrapper {
        flex-direction: column;
        text-align: center;
    }
    
    /* Services Mobile */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .service-item {
        padding: 10px;
    }
    
    /* Video Mobile */
    .video-container iframe {
        height: 250px;
    }
    
    /* Gallery Mobile */
    .gallery-title {
        font-size: 1.5em;
    }
    
    /* Footer Mobile */
    .playas-cercanas-section,
    .playas-interes-section {
        padding: 20px 15px;
        margin-bottom: 25px;
    }
    
    .section-title {
        font-size: 1.3em;
    }
    
    .playas-grid-cercanas,
    .playas-grid-interes {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .playa-item {
        padding: 10px;
    }
    
    #foot #box-bottom ul {
        width: 100%;
        margin: 15px 0;
        float: none;
    }
    
    .shark {
        display: none;
    }
    
    /* Info Sections Mobile */
    .infor-historia {
        padding: 15px;
    }
    
    .infor-historia h4 {
        font-size: 1.1em;
    }
}

/* Small Mobile */
@media screen and (max-width: 480px) {
    #contenedor {
        padding: 5px;
    }
    
    .breadcrumb-tabs-wrapper {
        margin: 10px 0 5px 0;
    }
    
    #petsdivcontainer {
        padding-top: 5px;
    }
    
    .playa-header {
        margin-top: 0;
        margin-bottom: 10px;
    }
    
    #contenido-ficha-playa h1 {
        font-size: 2.2em;
        letter-spacing: 0.3px;
    }
    
    #contenido-ficha-playa h2 {
        font-size: 1.5em;
    }
    
    #contenido-ficha-playa h3 {
        font-size: 1.3em;
    }
    
    .gallery-title,
    #contenido-ficha-playa h2.gallery-title {
        font-size: 1.5em;
        color: #F20058 !important;
    }
    
    .section-title {
        font-size: 1.3em;
    }
    
    #contenido-ficha-playa h1::after {
        width: 60px;
        margin: 10px auto 0;
    }
    
    .video-container iframe {
        height: 200px;
    }
    
    .services-grid {
        padding: 15px;
    }
    
    .service-item {
        padding: 8px;
        font-size: 0.9em;
    }
    
    .infor-historia {
        padding: 12px;
    }
    
    .infor-historia h4 {
        font-size: 1em;
    }
    
    .infor-historia p {
        font-size: 0.9em;
    }
    
    /* Gallery mobile adjustments */
    #gallery {
        padding: 10px;
    }
    
    /* Hide decorative elements on small screens */
    .shark {
        display: none !important;
    }
    
    /* Map adjustments for small mobile - mantener tamaño original */
    .map {
        width: 140px;
        height: 140px;
        background: transparent;
        border: none;
        box-shadow: none;
    }
    
    .map img {
        width: 140px;
        background: transparent;
        border: none;
        height: 140px;
        object-fit: none;
    }
    
    /* Improve touch targets */
    .service-item,
    .indentmenu ul li a {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    /* Footer small mobile */
    .playas-cercanas-section,
    .playas-interes-section {
        padding: 15px 10px;
        margin-bottom: 20px;
    }
    
    .section-title {
        font-size: 1.1em;
        margin-bottom: 15px;
    }
    
    .playa-item {
        padding: 8px;
    }
    
    .playa-item a {
        font-size: 1em;
    }
    
    .playa-distancia {
        font-size: 0.85em;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.playa-header,
.content-grid,
.gallery-section,
.hotels-section,
.activities-section {
    animation: fadeIn 0.6s ease-out;
}

/* Smooth Transitions */
a, button, .service-item {
    transition: all 0.3s ease;
}

/* Accessibility Improvements */
a:focus,
button:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Improved Images */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Better iframe responsiveness */
iframe {
    max-width: 100%;
    border: none;
}

/* Print Styles */
@media print {
    #cabecerahome,
    .indentmenu,
    #foot,
    .playa-social,
    .veryoutube {
        display: none;
    }
    
    #contenedor {
        box-shadow: none;
        border: none;
    }
}
